ticketlist.vue 19 KB

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