ticketlist.vue 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783
  1. <template>
  2. <view class="pages">
  3. <view class="navbar-box">
  4. <u-navbar title="订单详情" :safeAreaInsetTop="true" @leftClick="leftClick" :titleStyle="{color:'#fff'}" leftIconColor="#fff" bgColor="transparent"></u-navbar>
  5. </view>
  6. <view class="banner">
  7. <!-- <image class="img" :src="staticUrl+'/img/bookticket-banner.png'" alt=""> -->
  8. <image class="img" :src="theatre.showImg" alt="">
  9. <view class="content">
  10. <view class="share" @click="openShare(item)">
  11. <image class="icon" :src="staticUrl+'/img/share-ico.png'" ></image>
  12. </view>
  13. </view>
  14. </view>
  15. <view class="base-info">
  16. <view class="inner">
  17. <view class="name">{{theatre.name}}</view>
  18. <view class="addr u-flex u-row-between">
  19. <view class="text">演出地址:{{theatre.address}}</view>
  20. <view class="menu u-flex">
  21. <view class="item" @click="goMap">
  22. <image class="icon" :src="staticUrl+'/img/map-ico.png'" ></image>
  23. <text>导航</text>
  24. </view>
  25. <view class="item" @click="phoneCall">
  26. <image class="icon" :src="staticUrl+'/img/phone-call-ico.png'" ></image>
  27. <text>电话</text>
  28. </view>
  29. <!-- <u-icon name="arrow-right" color="#ffffff" size="36rpx" @click="goMap"></u-icon>
  30. <u-icon name="arrow-right" color="#ffffff" size="36rpx" @click="goMap"></u-icon> -->
  31. </view>
  32. </view>
  33. </view>
  34. </view>
  35. <view class="tabs-wrap">
  36. <view class="inner">
  37. <u-tabs
  38. :list="tabsArr"
  39. @click="tabsClick"
  40. lineColor="#ED0000"
  41. lineWidth="82rpx"
  42. :activeStyle="{color: '#2D2D2D',fontWeight: 'bold'}"
  43. itemStyle="width:33%; height: 46px;box-sizing:border-box"
  44. >
  45. </u-tabs>
  46. </view>
  47. </view>
  48. <view class="page-wrap">
  49. <view class="ticket" v-if="tabsIndex==0">
  50. <view class="date-block auditorium">
  51. <view class="title">演出厅</view>
  52. <view class="date-list u-flex u-flex-wrap">
  53. <view class="date-item" :class="{active:auditoriumIndex==index}" @click="auditoriumClick(index)" v-for="(date,index) in auditoriumList" :key="index">
  54. <view class="name">{{ date.name }}</view>
  55. </view>
  56. </view>
  57. </view>
  58. <view class="date-block">
  59. <view class="title">演出日期</view>
  60. <view class="date-list u-flex">
  61. <view class="date-item" :class="{active:dateIndex==index}" @click="dateClick(index)" v-for="(date,index) in dateList" :key="index">
  62. <view class="name">{{ date.name || ' ' }}</view>
  63. <view class="date">{{ date.month }} - {{ date.day }}</view>
  64. </view>
  65. <view class="date-item more-date u-flex u-row-center" @click="calendarShow = true">
  66. <view class="text">
  67. <view class="">更多</view>
  68. <view class="">日期</view>
  69. </view>
  70. <u-icon name="arrow-right" color="#7F7F7F" size="24rpx"></u-icon>
  71. </view>
  72. </view>
  73. </view>
  74. <view class="date-block session-wrap">
  75. <view class="title">演出场次</view>
  76. <view class="session">
  77. <view class="session-item" :class="{active:sessionIndex==index}" @click="sessionClick(index)" v-for="(date,index) in sessionList" :key="index">
  78. {{ date.performTimeStart}} - {{date.performTimeEnd}}
  79. </view>
  80. </view>
  81. <view class="empty" v-if="auditoriumList.length>=1&&sessionList.length<1">
  82. 当前日期暂无演出场次,请重新选择
  83. </view>
  84. </view>
  85. <view class="date-block ticket-type">
  86. <view class="title">门票</view>
  87. <view class="type-item" :class="{active:sessionIndex==index}" v-for="(item,index) in ticketTypeList" :key="index">
  88. <view class="name-price u-flex u-row-between">
  89. <view class="name">{{item.goodsName}}</view>
  90. <view class="prices">¥ {{item.salePrice}} 起</view>
  91. </view>
  92. <!-- <view class="ishave">
  93. <text class="text">{{(item.quantity>0&&sessionList.length>=1)?'有票':'无票'}}</text>
  94. </view> -->
  95. <view class="bottom u-flex u-row-between">
  96. <view class="left u-flex">
  97. <!-- 购票须知
  98. <u-icon name="arrow-right" color="#7F7F7F" size="24rpx"></u-icon> -->
  99. {{item.goodsSnapshot||''}}
  100. </view>
  101. <view class="btn" @click="book(item)" v-if="item.quantity>0&&sessionList.length>=1">预定</view>
  102. <view class="btn disabled" v-else>无票</view>
  103. </view>
  104. </view>
  105. </view>
  106. </view>
  107. <!-- ticket end -->
  108. <view class="details" v-if="tabsIndex==1">
  109. <view class="details-block">
  110. <view class="title">剧情简介</view>
  111. <view class="intro">
  112. <u-parse :content="performInfo.performSnapshot"></u-parse>
  113. </view>
  114. </view>
  115. <view class="details-block actors">
  116. <view class="title u-flex u-row-between">
  117. 演职人员
  118. <view class="right u-flex" @click="$u.route('pages/actors',{performId:performId})">
  119. <text>更多</text>
  120. <u-icon name="arrow-right" color="#7F7F7F" size="24rpx"></u-icon>
  121. </view>
  122. </view>
  123. <view class="actor-list">
  124. <u-scroll-list :indicator="false">
  125. <view class="item" v-for="(item, index) in actorsArr" :key="index">
  126. <image class="img" :src="item.performerHead||staticUrl+'/img/actors.png'"></image>
  127. <view class="text">
  128. <view class="name">{{item.performerName}}</view>
  129. <view class="role u-line-1">{{item.performerRole}}</view>
  130. </view>
  131. </view>
  132. </u-scroll-list>
  133. <u-empty text="暂无" v-if="actorsArr.length<1"></u-empty>
  134. </view>
  135. </view>
  136. </view>
  137. <view class="viewingTips" v-if="tabsIndex==2">
  138. <u-parse :content="formerNotice"></u-parse>
  139. </view>
  140. </view>
  141. <u-calendar
  142. ref="calendar"
  143. :formatter="formatter"
  144. :maxDate="maxDate"
  145. :show="calendarShow"
  146. color="#EF1010"
  147. :closeOnClickOverlay="true"
  148. @close="closeCalendar"
  149. @confirm="confirmCalendar">
  150. </u-calendar>
  151. <!-- 分享选择弹出内容 -->
  152. <view class="share-option" :class="{shareShow:shareShow}">
  153. <view class="overlay" v-if="shareShow" @click="shareShow=false"></view>
  154. <button class="share-option-item wx-share" data-name="shareBtn" open-type="share">
  155. 发送给朋友
  156. </button>
  157. <view class="share-option-item" @click="getPoster">生成海报</view>
  158. <view class="share-option-item" @click="shareShow=false">取消</view>
  159. </view>
  160. <u-popup :show="posterShow" @close="posterShow=false" ref="uni-popup">
  161. <view class="poster-wrap u-flex u-col-center">
  162. <view class="poster-inner">
  163. <view class="close-wrap" @click="posterShow=false">
  164. <u-icon name="close-circle" color="#fff" size="56rpx"></u-icon>
  165. </view>
  166. <view class="poster" id="poster" ref="poster" >
  167. <u--image :showLoading="true" :src="posterSrc" width="100%" height="65vh" mode="aspectFit"></u--image>
  168. </view>
  169. <!-- savePoster -->
  170. <view class="poster-btn" @click="saveImage">保存图片</view>
  171. </view>
  172. </view>
  173. </u-popup>
  174. <canvas canvas-id="canvas" class="canvas" style="width: 670px; height: 900px;"></canvas>
  175. </view>
  176. </template>
  177. <script>
  178. import { systemInfo } from "@/mixin.js";
  179. // 日历
  180. const d = new Date()
  181. const year = d.getFullYear()
  182. let month = d.getMonth() + 1
  183. month = month < 10 ? `0${month}` : month
  184. const date = d.getDate()
  185. // 日历
  186. let parentThis= null;
  187. export default {
  188. mixins:[systemInfo],
  189. data() {
  190. return {
  191. performId:'',
  192. staticUrl:this.$commonConfig.staticUrl,
  193. tabsArr:[
  194. {name:'票务购买'},
  195. {name:'演出详情'},
  196. {name:'观影须知'}
  197. ],
  198. theatre:{},
  199. tabsIndex:0,
  200. dateList:[],
  201. dateIndex:0,
  202. calendarShow:false,//日历
  203. maxDate:`${year}-${month}-${date + 30}`,
  204. auditoriumList:[],//演艺厅
  205. auditoriumIndex:0,
  206. sessionList:[],//演出场次
  207. sessionIndex:0,
  208. ticketTypeList:[],//门票
  209. actorsArr:[],
  210. shareShow:false,
  211. posterShow:false,
  212. posterSrc:'',
  213. posterSrcType:null,
  214. performInfo:{},//节目详情
  215. formerNotice:{},//节目观影须知
  216. performDateList:[],//有票的日期
  217. }
  218. },
  219. onShow() {
  220. },
  221. onLoad(page) {
  222. parentThis = this;
  223. console.log('page',page);
  224. this.performId = page.id;
  225. this.getPerformData();
  226. // this.getSystemInfo();
  227. let today = new Date();
  228. this.setDate(today);
  229. this.getPerformInfo();
  230. this.getPerformerNotice();
  231. },
  232. onReady() {
  233. // 如果需要兼容微信小程序的话,需要用此写法
  234. this.$refs.calendar.setFormatter(this.formatter);
  235. },
  236. methods: {
  237. leftClick(e){
  238. let pages = getCurrentPages();
  239. if(pages.length==1){
  240. uni.$u.route('/pages/index/index')
  241. }else{
  242. uni.navigateBack()
  243. };
  244. },
  245. getPerformData(){
  246. this.$u.api.performSell({performId:this.performId}).then(res=>{
  247. // console.log('getPerformData',res.data);
  248. this.theatre = res.data.theatreList[0];
  249. this.auditoriumList = res.data.theatreList[0].auditoriumList;
  250. this.ticketTypeList = res.data.goodsList;
  251. this.performDateList = this.auditoriumList[this.auditoriumIndex].performDateList;
  252. this.getTimes()
  253. // console.log('auditoriumList',this.auditoriumList);
  254. }).catch(err=>{
  255. console.log('getPoster',err);
  256. })
  257. },
  258. getPerformInfo(){
  259. this.$u.api.performInfo({id:this.performId}).then(res=>{
  260. // console.log('getPerformInfo',res.data);
  261. this.performInfo = res.data;
  262. this.actorsArr = res.data.performerList;
  263. }).catch(err=>{
  264. console.log('getPerformInfo',err);
  265. })
  266. },
  267. getPerformerNotice(){
  268. this.$u.api.performerNotice({performId:this.performId}).then(res=>{
  269. // console.log('getPerformerNotice',res.data);
  270. this.formerNotice = res.data.performNotice;
  271. }).catch(err=>{
  272. console.log('getPerformerNotice',err);
  273. })
  274. },
  275. getTimes(){
  276. let auditoriumId= this.auditoriumList[this.auditoriumIndex]?.id;
  277. if(!auditoriumId){return}
  278. let dateOBJ = this.dateList[this.dateIndex];
  279. let param = {
  280. auditoriumId:auditoriumId,//演艺厅ID(演艺厅列表)
  281. performId:this.performId,
  282. date:`${dateOBJ.year}-${dateOBJ.month}-${dateOBJ.day}`
  283. };
  284. // console.log('param',param);
  285. this.$u.api.getAuditoriumTimes(param).then(res=>{
  286. // console.log('getTimes',res.data);
  287. this.sessionList = res.data.list.map(item=>{
  288. item.performTimeStart = item.performTimeStart;
  289. item.performTimeEnd = item.performTimeEnd;
  290. return item
  291. });
  292. }).catch(err=>{
  293. console.log('getPoster',err);
  294. })
  295. },
  296. formatter: (day) => {
  297. // console.log('day',day);
  298. // console.log('thisthisthisthisthisthisthisthisthis',parentThis);
  299. // console.log('==================================',day.date.toISOString().split('T')[0]);
  300. let ticket = parentThis.performDateList.find(item => item.performDate === day.date.toISOString().split('T')[0]);
  301. if(ticket){
  302. day.dot = true
  303. }
  304. // if(ticket&&ticket.ishave){
  305. // day.bottomInfo = '有票'
  306. // day.dot = true
  307. // }else if(ticket){
  308. // day.dot = true
  309. // }
  310. return day
  311. },
  312. setDate(firstDay,isSelect){
  313. if(this.performDateList[0]&&!isSelect){
  314. firstDay = new Date(this.performDateList[0].day);
  315. }
  316. // console.log('this.dateListthis.dateListthis.dateListthis.dateList',this.dateList);
  317. // 前端写演出日期(今天,明天,后天)
  318. let today = firstDay;
  319. let tomorrow = new Date();
  320. tomorrow.setDate(today.getDate() + 1);
  321. let afterTomorrow = new Date();
  322. afterTomorrow.setDate(today.getDate() + 2);
  323. this.dateList = [
  324. { year: today.getFullYear(), month: today.getMonth() + 1, day: today.getDate(),name:'日期' },
  325. { year: tomorrow.getFullYear(), month: tomorrow.getMonth() + 1, day: tomorrow.getDate() ,name:'日期'},
  326. { year: afterTomorrow.getFullYear(), month: afterTomorrow.getMonth() + 1, day: afterTomorrow.getDate(),name:'日期' }
  327. ];
  328. this.getTimes()
  329. },
  330. dateClick(index){
  331. this.dateIndex = index;
  332. this.getTimes()
  333. },
  334. auditoriumClick(index){
  335. this.auditoriumIndex = index;
  336. },
  337. confirmCalendar(e){
  338. // console.log('confirmCalendar',e);
  339. this.setDate( new Date(e),true );
  340. this.dateIndex = 0;
  341. // console.log('maxDate',this.maxDate);
  342. // console.log('dateList',this.dateList);
  343. this.calendarShow = false;
  344. },
  345. closeCalendar(){
  346. this.calendarShow = false;
  347. },
  348. tabsClick(e){
  349. // console.log('tabsClick',e);
  350. this.tabsIndex = e.index;
  351. },
  352. sessionClick(index){
  353. this.sessionIndex = index;
  354. },
  355. book(item){
  356. // console.log('book',item);
  357. // console.log('performInfo',this.performInfo);
  358. let session = this.sessionList[this.sessionIndex];
  359. // console.log('session',session);
  360. let performTimeStart = session.performTimeStart;
  361. let performTimeEnd = session.performTimeEnd;
  362. let dateOBJ = this.dateList[this.dateIndex];
  363. uni.$u.route('pages/chosenposition',{
  364. goodsId:item.id,
  365. performId:this.performId,
  366. performName:this.performInfo.name,
  367. day:`${dateOBJ.year}-${dateOBJ.month}-${dateOBJ.day}`,
  368. performTimeStart:session.performTimeStart,
  369. performTimeEnd:session.performTimeEnd,
  370. performTimeId:session.id,
  371. auditoriumId:this.auditoriumList[this.auditoriumIndex].id
  372. })
  373. },
  374. openShare(){
  375. this.shareShow = true;
  376. // 前端生成海报开始
  377. let that = this;
  378. const ctx = uni.createCanvasContext('canvas', this);
  379. // 加载海报背景图
  380. uni.getImageInfo({
  381. src: this.performInfo.posterImg,
  382. success: res1 => {
  383. const img1 = res1.path;
  384. // 加载海报二维码
  385. uni.getImageInfo({
  386. src: this.performInfo.appletQrcode,
  387. success: res2 => {
  388. const img2 = res2.path;
  389. // 绘制海报背景图
  390. ctx.drawImage(img1, 0, 0, 670, 900);
  391. // 绘制海报二维码
  392. ctx.drawImage(img2, 468, 724, 188, 166);
  393. // 绘制完成后导出图片并显示
  394. ctx.draw(false, () => {
  395. uni.canvasToTempFilePath({
  396. canvasId: 'canvas',
  397. success: res3 => {
  398. this.posterSrc = res3.tempFilePath;
  399. this.posterSrcType = 'local';
  400. },
  401. fail: err => {
  402. console.error(err);
  403. },
  404. }, this);
  405. });
  406. },
  407. fail: err2 => {
  408. console.error(err2);
  409. },
  410. });
  411. },
  412. fail: err1 => {
  413. console.error(err1);
  414. },
  415. });
  416. // 前端生成海报结束
  417. },
  418. // 海报相关开始
  419. getPoster(item){
  420. this.posterShow = true;
  421. this.shareShow = false;
  422. // 后端生成海报
  423. // this.$u.api.performQrcode({performId:this.performId}).then(res=>{
  424. // this.posterSrc = res.data.imageUrl;
  425. // // console.log('getPoster',res.data);
  426. // }).catch(err=>{
  427. // console.log('getPoster',err);
  428. // })
  429. },
  430. saveImage() {
  431. let that = this;
  432. uni.showLoading({
  433. title: '保存中'
  434. });
  435. if(this.posterSrcType == 'local'){
  436. let params = {
  437. tempFilePath:that.posterSrc
  438. }
  439. that.saveImageToPhotosAlbum(params);
  440. return
  441. }
  442. uni.downloadFile({
  443. url: this.posterSrc,
  444. success(res) {
  445. if (res.statusCode === 200) {
  446. that.saveImageToPhotosAlbum(res)
  447. } else {
  448. uni.showToast({
  449. title: '下载图片失败',
  450. icon: 'none'
  451. });
  452. }
  453. },
  454. fail(e) {
  455. console.log('下载图片失败', e);
  456. console.log('posterSrc',that.posterSrc);
  457. uni.showToast({
  458. title: '下载图片失败',
  459. icon: 'none'
  460. });
  461. }
  462. });
  463. },
  464. saveImageToPhotosAlbum(res){
  465. let that = this;
  466. uni.saveImageToPhotosAlbum({
  467. filePath: res.tempFilePath,
  468. success() {
  469. uni.showToast({
  470. title: '保存到相册成功',
  471. icon: 'success'
  472. });
  473. },
  474. fail(err) {
  475. console.log('保存图片失败',err);
  476. if (err.errMsg === 'saveImageToPhotosAlbum:fail auth deny') {
  477. uni.getSetting({
  478. success(res) {
  479. if (!res.authSetting['scope.writePhotosAlbum']) {
  480. uni.showModal({
  481. title: '提示',
  482. content: '您还没有授权访问相册,请前往设置页面打开权限。',
  483. confirmText: '去设置',
  484. success(res) {
  485. if (res.confirm) {
  486. uni.openSetting();
  487. }
  488. }
  489. });
  490. } else {
  491. uni.showToast({
  492. title: '保存图片失败',
  493. icon: 'none'
  494. });
  495. }
  496. }
  497. });
  498. } else {
  499. uni.showToast({
  500. title: '保存图片失败',
  501. icon: 'none'
  502. });
  503. }
  504. },
  505. complete() {
  506. uni.hideLoading();
  507. that.posterShow = false;
  508. }
  509. });
  510. },
  511. // 海报相关结束
  512. goMap(){
  513. uni.openLocation({
  514. latitude:Number(this.theatre.latitude), //维度
  515. longitude: Number(this.theatre.longitude), //经度
  516. name: this.theatre.name, //目的地定位名称
  517. scale: 15, //缩放比例
  518. address: this.theatre.address //导航详细地址
  519. })
  520. },
  521. phoneCall(){
  522. // console.log('this.theatre',this.theatre);
  523. uni.makePhoneCall({
  524. phoneNumber: this.theatre.contactMobile,
  525. success() {
  526. console.log('success');
  527. },
  528. fail() {
  529. console.log('fail');
  530. }
  531. });
  532. }
  533. }
  534. }
  535. </script>
  536. <style lang="scss" scoped>
  537. .banner{
  538. position: relative;
  539. .img{
  540. width: 750rpx;
  541. height: 554rpx;
  542. display: block;
  543. }
  544. .content{
  545. position: absolute;
  546. width: 100%;
  547. box-sizing: border-box;
  548. padding: 0 32rpx;
  549. left: 0;
  550. bottom: 200rpx;
  551. }
  552. .share{
  553. overflow: hidden;
  554. margin-bottom: 100rpx;
  555. .icon{
  556. float: right;
  557. display: block;
  558. width: 32rpx;
  559. height: 32rpx;
  560. padding: 10rpx;
  561. border-radius: 50%;
  562. background-color: rgba(0,0,0,0.4);
  563. }
  564. }
  565. }
  566. .base-info{
  567. position: relative;
  568. // margin-bottom: 54rpx;
  569. .inner{
  570. position: relative;
  571. padding: 50rpx 38rpx 58rpx 40rpx;
  572. background-color: #FFFFFF;
  573. border-radius: 32rpx 32rpx 0rpx 0rpx;
  574. margin-top: -30px;
  575. border-bottom: 12rpx solid #F7F8F9;
  576. }
  577. .name{
  578. font-size: 40rpx;
  579. font-weight: 800;
  580. color: #2D2D2D;
  581. margin-bottom: 26rpx;
  582. }
  583. .addr{
  584. font-size: 26rpx;
  585. font-weight: 400;
  586. color: #606060;
  587. }
  588. .menu{
  589. .item{
  590. margin-left: 18rpx;
  591. font-size: 18rpx;
  592. font-weight: 400;
  593. color: #999999;
  594. text-align: center;
  595. }
  596. .icon{
  597. width: 62rpx;
  598. height: 64rpx;
  599. display: block;
  600. margin-bottom: 4rpx;
  601. }
  602. }
  603. }
  604. .tabs-wrap{
  605. position: relative;
  606. margin-bottom: 54rpx;
  607. &::after{
  608. content: '';
  609. width: 100%;
  610. height: 1px;
  611. background-color: #eee;
  612. position: absolute;
  613. left: 0;
  614. right: 0;
  615. bottom: -46rpx;
  616. }
  617. .inner{
  618. position: relative;
  619. padding-top: 48rpx;
  620. background-color: #FFFFFF;
  621. // border-radius: 32rpx 32rpx 0rpx 0rpx;
  622. height: 46rpx;
  623. // margin-top: -30px;
  624. }
  625. }
  626. .date-block{
  627. margin-bottom: 64rpx;
  628. }
  629. .title{
  630. font-size: 32rpx;
  631. font-weight: bold;
  632. color: #2D2D2D;
  633. line-height: 48rpx;
  634. margin-bottom: 38rpx;
  635. }
  636. .session-wrap{
  637. .empty{
  638. background-color: #636363;
  639. color: #979797;
  640. border-radius: 8rpx;
  641. padding: 24rpx;
  642. text-align: center;
  643. }
  644. }
  645. .session{
  646. display: grid;
  647. grid-template-columns: repeat(3, 1fr);
  648. gap: 20rpx;
  649. .session-item{
  650. height: 80rpx;
  651. line-height: 80rpx;
  652. border-radius: 12rpx;
  653. border: 2rpx solid #636363;
  654. text-align: center;
  655. font-size: 24rpx;
  656. font-weight: 400;
  657. color: #636363;
  658. &.active{
  659. color: #ED0000;
  660. border-color: #ED0000;
  661. }
  662. }
  663. }
  664. .ticket-type{
  665. .type-item{
  666. background: #FFFFFF;
  667. box-shadow: 0rpx 2rpx 12rpx 0rpx rgba(180,180,180,0.5);
  668. border-radius: 20rpx;
  669. margin-bottom: 20rpx;
  670. padding: 38rpx 40rpx;
  671. .name-price{
  672. margin-bottom: 26rpx;
  673. }
  674. .name{
  675. font-size: 28rpx;
  676. font-weight: 500;
  677. color: #363636;
  678. }
  679. .prices{
  680. font-size: 36rpx;
  681. font-weight: bold;
  682. color: #ED0000;
  683. }
  684. .ishave{
  685. margin-bottom: 26rpx;
  686. .text{
  687. height: 30rpx;
  688. line-height: 30rpx;
  689. padding: 0 22rpx;
  690. background: #FFC8C8;
  691. border-radius: 20rpx;
  692. font-size: 20rpx;
  693. font-weight: 400;
  694. color: #ED0000;
  695. }
  696. }
  697. .bottom{
  698. font-size: 22rpx;
  699. font-weight: 400;
  700. color: #7F7F7F;
  701. .btn{
  702. height: 60rpx;
  703. line-height: 60rpx;
  704. background: linear-gradient(90deg, #FF7979 0%, #ED0000 100%);
  705. border-radius: 30rpx;
  706. padding: 0 36rpx;
  707. font-size: 28rpx;
  708. font-weight: 500;
  709. color: #FFFFFF;
  710. &.disabled{
  711. background: #979797;
  712. }
  713. }
  714. }
  715. }
  716. }
  717. .details{
  718. .title{}
  719. .details-block{
  720. background: #FFFFFF;
  721. box-shadow: 0rpx 2rpx 12rpx 2rpx rgba(221,221,221,0.5);
  722. border-radius: 20rpx;
  723. margin-bottom: 24rpx;
  724. padding: 36rpx;
  725. &.actors{
  726. .title{
  727. .right{
  728. font-size: 24rpx;
  729. font-weight: 400;
  730. color: #7F7F7F;
  731. }
  732. }
  733. }
  734. }
  735. .intro{
  736. font-size: 26rpx;
  737. font-weight: 400;
  738. color: #4E4E4E;
  739. line-height: 40rpx;
  740. }
  741. .actor-list{
  742. .item{
  743. flex-shrink: 0;
  744. width: 160rpx;
  745. text-align: center;
  746. margin-right: 24rpx;
  747. }
  748. .img{
  749. display: block;
  750. width: 100%;
  751. height: 200rpx;
  752. margin-bottom: 16rpx;
  753. }
  754. .name{
  755. font-size: 28rpx;
  756. font-weight: 500;
  757. color: #2D2D2D;
  758. line-height: 42rpx;
  759. margin-bottom: 4rpx;
  760. }
  761. .role{
  762. font-size: 24rpx;
  763. font-weight: 400;
  764. color: #7F7F7F;
  765. line-height: 36rpx;
  766. }
  767. }
  768. }
  769. .canvas{
  770. position: absolute;
  771. left: -99999px;
  772. }
  773. </style>