ticketlist.vue 21 KB

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