bookticket.vue 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690
  1. <template>
  2. <view class="pages">
  3. <view class="" :style="{height: navHeight+'px' }"></view>
  4. <view class="navbar-box">
  5. <u-navbar title="订单详情" :safeAreaInsetTop="true" @leftClick="leftClick" :titleStyle="{color:'#fff'}" leftIconColor="#fff" bgColor="transparent"></u-navbar>
  6. </view>
  7. <view class="page-wrap">
  8. <view class="base-info">
  9. <view class="up u-flex">
  10. <image class="img" :src="pageContent.performImg" alt="">
  11. <view class="text">
  12. <view class="name text-item">{{pageContent.performName}}-{{pageContent.goodsName}}</view>
  13. <view class="time text-item">日期 {{pageContent.timeDate}}({{pageContent.timeWeek}})</view>
  14. <view class="time text-item">场次 {{pageContent.performTimeStart}} - {{pageContent.performTimeEnd}}</view>
  15. <view class="num text-item">{{pageContent.goodsName}} / {{pageContent.seatTypeName}}</view>
  16. <view class=" text-item">{{pageContent.auditoriumName}}</view>
  17. <!-- <view class="position text-item">{{performInfo.name}}</view> -->
  18. <!-- <view class="addr u-flex u-row-between">
  19. <view class="u-line-1">地址:遵义市《伟大转折》演艺中心</view>
  20. <u-icon name="arrow-right" color="#2D2D2D" size="36rpx"></u-icon>
  21. </view> -->
  22. </view>
  23. </view>
  24. <view class="down">
  25. <view class="num-wrap u-flex u-row-between">
  26. <view class="title">选购数量</view>
  27. <view class="num">{{totalVisitor}}</view>
  28. </view>
  29. </view>
  30. </view>
  31. <view class="block-wrap purchaser">
  32. <view class="block-title u-flex">
  33. <view class="name">购票人信息</view>
  34. <!-- <text>用于入园身份验证</text> -->
  35. </view>
  36. <view class="" v-if="pageContent.purchaser.idcard">
  37. <view class="item">姓名:{{pageContent.purchaser.name}}</view>
  38. <view class="item">手机号:{{pageContent.purchaser.mobile|hidePhoneNumber}}</view>
  39. <view class="item">身份证:{{pageContent.purchaser.idcard|maskID}}</view>
  40. </view>
  41. <view class="un-auth" v-else @click="$u.route('center/factorauth',{from:'bookticket'})">
  42. 请先<text style="color: #ED0000;">实名认证</text>
  43. </view>
  44. </view>
  45. <view class="block-wrap visitors">
  46. <view class="block-title u-flex">
  47. <view class="name">观影人信息</view>
  48. <!-- <text>用于入园身份验证</text> -->
  49. </view>
  50. <view class="people-list u-flex u-flex-wrap">
  51. <view class="people btn" v-if="visitors.length>0" v-for="(visitor,index) in visitors" :key="index">
  52. {{visitor.name}}
  53. </view>
  54. <view class="btn u-flex u-row-center" @click="visitorShow = true">
  55. <u-icon name="plus-circle" color="#2D2D2D" size="32rpx"></u-icon>
  56. <text class="text">新增/更换</text>
  57. </view>
  58. </view>
  59. <!-- <view class="no-people u-flex" v-if="!visitors.length>0">
  60. <text>游客</text>
  61. <text class="right" @click="visitorShow = true">点击选择游客</text>
  62. </view> -->
  63. <view class="peoples" v-if="visitors.length>0">
  64. <view class="peoples-item u-flex u-row-between" v-for="(visitor,index) in visitors" :key="index">
  65. <view class="left u-flex">
  66. <u-icon @click="delVisitor(visitor)" name="close-circle" color="#2D2D2D" size="32rpx"></u-icon>
  67. <text style="margin-left: 8rpx;">观影人{{ index + 1 }}</text>
  68. <text class="name">{{visitor.name}}</text>
  69. <!-- <text class="people-id">{{ visitor.idcard | maskID }}</text> -->
  70. </view>
  71. <view class="right" @click="editVisitor(visitor)">编辑</view>
  72. </view>
  73. </view>
  74. </view>
  75. <view class="coupon">
  76. <view class="title u-flex u-row-between u-border-bottom">
  77. <text>本单可享优惠</text>
  78. </view>
  79. <view class="single-til u-flex u-row-between">
  80. <view class="text">优惠券</view>
  81. <view class="more-text u-flex">
  82. <text>未使用</text>
  83. <u-icon name="arrow-right" color="#E6E6E6" size="24rpx"></u-icon>
  84. </view>
  85. </view>
  86. <view class="no-coupon">
  87. 您暂无可使用优惠券~
  88. </view>
  89. </view>
  90. <view class="notice">
  91. <view class="title u-flex u-row-between u-border-bottom">
  92. <text>购票须知</text>
  93. </view>
  94. <view class="notice-item">
  95. <u-parse :content="pageContent.ticketNotice"></u-parse>
  96. </view>
  97. <!-- <view class="notice-item">
  98. 1.由于设备故障等不可抗力因素,存在少量场次取消的情况,会
  99. 进行退票退款
  100. </view>
  101. <view class="notice-item">
  102. 2.由于影院系统不稳定等因素,存在出票失败的情况,会进行退款
  103. </view>
  104. <view class="notice-item">
  105. 3.取票码可以在“我的-订单页”中查看
  106. </view> -->
  107. </view>
  108. </view>
  109. <u-popup :show="visitorShow">
  110. <view class="people-show-content">
  111. <view class="title">
  112. <view class="cancel" @click="visitorShow=false">取消</view>
  113. 选择观影人
  114. </view>
  115. <view class="add-btn u-flex u-row-center" @click="addVisitor">
  116. <!-- <image class="img" :src="staticUrl+'/img/car.png'" ></image> -->
  117. 添加观影人信息
  118. </view>
  119. <view class="list">
  120. <u-checkbox-group
  121. v-model="selectedVisitor"
  122. iconPlacement="left">
  123. <view class="people u-flex u-row-between" v-for="(item,index) in visitorList" :key="index">
  124. <u-checkbox activeColor="#ED0303" :label="item.name" :name="item.id"></u-checkbox>
  125. <u-icon name="edit-pen-fill" color="#7F7F7F" size="32rpx" @click="editVisitor(item)"></u-icon>
  126. </view>
  127. </u-checkbox-group>
  128. </view>
  129. <view class="full-btn" @click="confirmVisitor">确定</view>
  130. </view>
  131. </u-popup>
  132. <view class="page-bottom">
  133. <view class="inner u-flex u-row-between">
  134. <view class="left u-flex">
  135. <text>应付金额:</text>
  136. <view class="total-price">
  137. {{totalPrice}}
  138. </view>
  139. </view>
  140. <view class="right">
  141. <view class="btn active" v-if="totalPrice>0&&cansubmit&&vuex_member_info.isAuth" @click="submitorder">立即支付</view>
  142. <view class="btn" v-else>立即支付</view>
  143. </view>
  144. </view>
  145. </view>
  146. </view>
  147. </template>
  148. <script>
  149. import { systemInfo } from "@/mixin.js";
  150. export default {
  151. mixins:[systemInfo],
  152. data() {
  153. return {
  154. performId:'',
  155. performInfo:{},
  156. pageData:{},//上个页面传过来的数据
  157. pageContent:{purchaser:{},ticketNotice:'',viewerList:[]},//页面信息
  158. ticketNotice:'aaa',
  159. cansubmit:true,
  160. staticUrl:this.$commonConfig.staticUrl,
  161. visitors:[],//游客
  162. visitorShow:false,//游客弹层
  163. visitorList:[],//游客列表
  164. selectedVisitor:[],//选中的游客
  165. params:{},//要提交的数据
  166. orderId:'',//订单提交获取
  167. payResult:{},//gotoPay结果
  168. paysuccess:false,//支付结果
  169. }
  170. },
  171. computed: {
  172. totalPrice() {
  173. let that = this;
  174. return this.visitors.reduce((total, item) => {
  175. let price = null;
  176. price = Number(that.pageData.salePrice);
  177. total += price;
  178. return total;
  179. }, 0).toFixed(2);
  180. },
  181. totalVisitor() {
  182. let that = this;
  183. return this.visitors.reduce((total, item) => {
  184. total += 1;
  185. return total;
  186. },0);
  187. },
  188. },
  189. onShow() {
  190. this.getMemberAll();
  191. },
  192. onLoad(page) {
  193. console.log('page',page);
  194. this.pageData = page;
  195. this.performId = page.performId;
  196. this.pageData.performTimeId = page.performTimeId;
  197. this.pageData.seatTypeId = page.seatTypeId
  198. this.getSystemInfo();
  199. this.getSettlement();
  200. },
  201. methods: {
  202. leftClick(e){
  203. let pages = getCurrentPages();
  204. if(pages.length==1){
  205. uni.$u.route('/pages/index/index')
  206. }else{
  207. uni.navigateBack()
  208. };
  209. },
  210. getSettlement(){
  211. this.$u.api.getSettlement(this.pageData).then(res=>{
  212. // console.log('getSettlement',res.data);
  213. this.pageContent = res.data;
  214. }).catch(err=>{
  215. console.log('getSettlement',err);
  216. })
  217. },
  218. getMemberAll(){
  219. let that = this;
  220. // const userId = this.vuex_member_info.id;
  221. const userId = this.pageContent.viewerList[0]?.id;
  222. this.$u.api.selectMemberAll({userid:userId}).then(res=>{
  223. // console.log('getMemberAll',res.data);
  224. this.visitorList = res.data.list;
  225. console.log('this.visitorList',this.visitorList);
  226. // this.visitors = this.visitorList.filter(obj => obj.memberId==userId);
  227. this.visitors = this.visitorList.filter(obj => that.selectedVisitor.includes(obj.id));
  228. console.log('this.visitors',this.visitors);
  229. }).catch(err=>{
  230. console.log('getMemberAll',err);
  231. })
  232. },
  233. confirmVisitor(){
  234. let that = this;
  235. // console.log('selectedVisitor',this.selectedVisitor);
  236. this.visitorShow = false;
  237. this.visitors = this.visitorList.filter(obj => that.selectedVisitor.includes(obj.id)).map(item=>{
  238. return {name:item.name,mobile:item.mobile,idcard:item.idcard}
  239. });
  240. // console.log('this.visitors',this.visitors);
  241. },
  242. delVisitor(visitor){
  243. // console.log('delVisitor',visitor);
  244. this.visitors = this.visitors.filter(obj => obj.id!=visitor.id );
  245. },
  246. addVisitor(){
  247. uni.$u.route('/center/people', {
  248. type: 'addVisitor',
  249. fromPage:'bookticket'
  250. });
  251. },
  252. editVisitor(item){
  253. uni.$u.route('/center/people', {
  254. type: 'editVisitor',
  255. fromPage:'bookticket',
  256. id:item.id,
  257. name:item.name,
  258. mobile:item.mobile,
  259. idcard:item.idcard,
  260. });
  261. },
  262. submitorder(){
  263. let params = {
  264. performId:this.pageContent.performId,
  265. goodsList:[
  266. {
  267. goodsId:this.pageContent.goodsId,
  268. salePeice:this.pageContent.salePrice,
  269. saleNum:1
  270. }
  271. ],
  272. auditoriumId:this.pageContent.auditoriumId,
  273. performTimeId:this.pageContent.performTimeId,
  274. seatTypeId:this.pageContent.seatTypeId,
  275. purchaser: {
  276. name: this.pageContent.purchaser.name,
  277. mobile: this.pageContent.purchaser.mobile,
  278. idcard: this.pageContent.purchaser.idcard
  279. },
  280. viewerList:this.visitors
  281. }
  282. this.cansubmit = false;
  283. console.log('pageData',this.pageData);
  284. console.log('visitors',this.visitors);
  285. console.log('params',params);
  286. this.$u.api.submitOrder(params).then(res=>{
  287. console.log('submitOrder',res.data);
  288. this.orderId = res.data.orderId;
  289. this.gotoPay();
  290. }).catch(err=>{
  291. console.log('submitOrder',err);
  292. })
  293. },
  294. gotoPay(){
  295. this.$u.api.gotoPay({orderId:this.orderId,openid:''}).then(res=>{
  296. this.payResult = res.data.payInfo;
  297. this.payResult.package = res.data.payInfo.packageValue;
  298. this.wxPay()
  299. // if(this.params.paymentMode==1||this.params.paymentMode==4){
  300. // this.wxPay()
  301. // }else{
  302. // uni.$u.route('/shopping/paysuccess');
  303. // }
  304. console.log('gotoPayres',res.data);
  305. }).catch(err=>{
  306. this.paypass = '';
  307. this.checkPassShow = false;
  308. console.log('gotoPay',err);
  309. })
  310. },
  311. wxPay(){
  312. let that = this;
  313. uni.requestPayment({
  314. ... this.payResult,
  315. "provider": "wxpay",
  316. "orderInfo": {
  317. // "appid": "wx499********7c70e", // 微信开放平台 - 应用 - AppId,注意和微信小程序、公众号 AppId 可能不一致
  318. // "noncestr": "c5sEwbaNPiXAF3iv", // 随机字符串
  319. // "package": "Sign=WXPay", // 固定值
  320. // "partnerid": "148*****52", // 微信支付商户号
  321. // "prepayid": "wx202254********************fbe90000", // 统一下单订单号
  322. // "timestamp": 1597935292, // 时间戳(单位:秒)
  323. // "sign": "A842B45937F6EFF60DEC7A2EAA52D5A0" // 签名,这里用的 MD5/RSA 签名
  324. },
  325. success(res) {
  326. that.payQuery();
  327. },
  328. fail(e) {
  329. console.log('wxPayfail',e);
  330. },
  331. complete(){
  332. this.cansubmit = true;
  333. }
  334. })
  335. },
  336. payQuery(){
  337. let that = this;
  338. let retryCount = 0;
  339. let maxRetryCount = 5; // 设置最大重试次数
  340. let interval = 2000; // 设置间隔时间为2秒
  341. let timeout = 10000; // 设置超时时间为10秒
  342. let timer;
  343. uni.showLoading({
  344. title:'支付结果查询中'
  345. })
  346. timer = setInterval(() => {
  347. retryCount++;
  348. if (retryCount > maxRetryCount || retryCount * interval > timeout) {
  349. clearInterval(timer);
  350. uni.hideLoading();
  351. console.log("支付查询超时或达到最大重试次数");
  352. // 在这里添加超时或达到最大重试次数的处理逻辑
  353. uni.$u.route('/center/order');
  354. } else {
  355. console.log("第" + retryCount + "次查询");
  356. // 调用查询支付状态的方法
  357. // 如果支付状态为成功,则清除定时器并处理成功的逻辑
  358. // 如果支付状态为失败,则清除定时器并处理失败的逻辑
  359. this.$u.api.payQuery({orderId:this.orderId}).then(res=>{
  360. // 0-未支付 1-已支付 2-支付中 3-支付失败 4-支付退款
  361. let payStatus = res.data.payStatus;
  362. if(payStatus===1){
  363. uni.$u.route('/center/paysuccess');
  364. }else if(payStatus===0||payStatus===2){
  365. this.payQuery()
  366. }else if(payStatus===3){
  367. uni.toast('支付失败')
  368. }
  369. clearInterval(timer);
  370. }).catch(err=>{
  371. console.log('payQuery',err);
  372. }).finally(()=>{
  373. uni.hideLoading()
  374. })
  375. }
  376. }, interval);
  377. },
  378. }
  379. }
  380. </script>
  381. <style>
  382. page{
  383. background: linear-gradient(180deg, #ED0000 0%, #F9FBFD 50%,#fff 100%);
  384. background-repeat: no-repeat;
  385. }
  386. </style>
  387. <style lang="scss" scoped>
  388. .base-info{
  389. border-radius: 30rpx;
  390. overflow: hidden;
  391. background: radial-gradient(circle at -26rpx 294rpx, transparent 8%, #fff 4%) left, radial-gradient(circle at calc( 100% + 26rpx ) 294rpx, transparent 8%, #fff 4%) right;
  392. background-size: 50% 100%;
  393. background-repeat: no-repeat;
  394. padding: 34rpx 36rpx;
  395. box-sizing: border-box;
  396. margin: 30rpx 0 40rpx;
  397. .up{
  398. margin-bottom: 36rpx;
  399. .img{
  400. display: block;
  401. width: 172rpx;
  402. height: 230rpx;
  403. border-radius: 20rpx;
  404. margin-right: 32rpx;
  405. }
  406. .text{
  407. font-size: 22rpx;
  408. font-weight: 400;
  409. color: #606060;
  410. line-height: 1;
  411. }
  412. .text-item{
  413. margin-bottom: 18rpx;
  414. }
  415. .name{
  416. font-size: 32rpx;
  417. font-weight: bold;
  418. color: #2D2D2D;
  419. }
  420. .addr{
  421. font-size: 24rpx;
  422. font-weight: 500;
  423. color: #2D2D2D;
  424. }
  425. }
  426. .down{
  427. position: relative;
  428. &:before{
  429. content: '';
  430. width: calc( 100% + 26rpx );
  431. height: 1px;
  432. position: absolute;
  433. left: -13rpx;
  434. top: -2rpx;
  435. border-top: 4rpx dashed #F39FA0;
  436. }
  437. .num-wrap{
  438. padding-top: 36rpx;
  439. }
  440. }
  441. }
  442. .block-wrap{
  443. background: #FFFFFF;
  444. box-shadow: 0rpx 0rpx 20rpx 2rpx rgba(221,221,221,0.5);
  445. border-radius: 20rpx;
  446. margin-bottom: 28rpx;
  447. padding: 32rpx 30rpx 34rpx;
  448. .block-title{
  449. // padding-left: 16rpx;
  450. position: relative;
  451. margin-bottom: 22rpx;
  452. font-size: 24rpx;
  453. font-weight: 500;
  454. color: #CACACA;
  455. // &:before{
  456. // content: '';
  457. // width: 6rpx;
  458. // height: 32rpx;
  459. // background: #1677FF;
  460. // border-radius: 4rpx;
  461. // position: absolute;
  462. // left: 0;
  463. // top: 50%;
  464. // margin-top: -16rpx;
  465. // }
  466. .name{
  467. font-size: 32rpx;
  468. font-weight: bold;
  469. color: #2D2D2D;
  470. margin-right: 20rpx;
  471. }
  472. }
  473. .no-people{
  474. font-size: 28rpx;
  475. font-weight: 400;
  476. color: #7F7F7F;
  477. .right{
  478. margin-left: 20rpx;
  479. color: #1677FF;
  480. }
  481. }
  482. .peoples{
  483. font-size: 28rpx;
  484. font-weight: 400;
  485. color: #7F7F7F;
  486. margin-bottom: 24rpx;
  487. .peoples-item{
  488. margin-bottom: 10rpx;
  489. }
  490. .name{
  491. margin-left: 20rpx;
  492. margin-right: 28rpx;
  493. font-size: 28rpx;
  494. font-weight: bold;
  495. color: #363636;
  496. }
  497. .people-id{
  498. font-size: 20rpx;
  499. font-weight: 400;
  500. color: #606060;
  501. }
  502. .right{
  503. font-size: 28rpx;
  504. font-weight: 400;
  505. color: #ED0303;
  506. }
  507. }
  508. }
  509. .people-list{
  510. margin-bottom: 20rpx;
  511. .btn{
  512. width: 185rpx;
  513. height: 60rpx;
  514. line-height: 60rpx;
  515. font-size: 24rpx;
  516. font-weight: 500;
  517. color: #2D2D2D;
  518. background-color: #F1F1F1;
  519. border: 1px solid #F1F1F1;
  520. border-radius: 8rpx;
  521. margin-bottom: 12rpx;
  522. .text{
  523. margin-left: 16rpx;
  524. }
  525. &.people{
  526. margin-right: 16rpx;
  527. text-align: center;
  528. background-color: #FFF2F2;
  529. border-color: #ED0303;
  530. }
  531. }
  532. }
  533. .visitors{
  534. margin-bottom: 20rpx;
  535. }
  536. .people-show-content{
  537. background: #FFFFFF;
  538. border-radius: 40rpx 40rpx 0rpx 0rpx;
  539. padding: 30rpx 40rpx;
  540. .title{
  541. position: relative;
  542. font-size: 32rpx;
  543. font-weight: 500;
  544. color: #606060;
  545. margin-bottom: 46rpx;
  546. text-align: center;
  547. .cancel{
  548. position: absolute;
  549. left: 0;
  550. top: 0;
  551. }
  552. }
  553. .add-btn{
  554. margin-bottom: 28rpx;
  555. background: #E5F0FF;
  556. border-radius: 44rpx;
  557. padding: 26rpx;
  558. font-size: 24rpx;
  559. font-weight: 400;
  560. color: #1677FF;
  561. .img{
  562. width: 28rpx;
  563. height: 36rpx;
  564. margin-right: 36rpx;
  565. }
  566. }
  567. .list{
  568. /deep/ .u-radio-group{
  569. flex-wrap: wrap;
  570. }
  571. /deep/ .u-checkbox-group{
  572. flex-wrap: wrap;
  573. }
  574. overflow-y: auto;
  575. height: 40vh;
  576. .people{
  577. width: 100%;
  578. margin-bottom: 24rpx;
  579. }
  580. }
  581. .btn{}
  582. }
  583. .coupon{
  584. background: #FFFFFF;
  585. box-shadow: 0rpx 0rpx 16rpx 2rpx rgba(232,232,232,0.5);
  586. border-radius: 16rpx;
  587. padding: 44rpx 36rpx;
  588. margin-bottom: 24rpx;
  589. .title{
  590. font-size: 28rpx;
  591. font-weight: bold;
  592. color: #2D2D2D;
  593. padding-bottom: 20rpx;
  594. margin-bottom: 26rpx;
  595. border-bottom-style:dashed;
  596. }
  597. .single-til{
  598. margin-bottom: 28rpx;
  599. .text{
  600. font-weight: 400;
  601. }
  602. }
  603. .no-coupon{
  604. height: 116rpx;
  605. line-height: 116rpx;
  606. text-align: center;
  607. background: #F9FAFD;
  608. border-radius: 8rpx;
  609. font-size: 24rpx;
  610. font-weight: 400;
  611. color: #C0C0C0;
  612. }
  613. }
  614. .notice{
  615. background: #FFFFFF;
  616. box-shadow: 0rpx 0rpx 16rpx 2rpx rgba(232,232,232,0.5);
  617. border-radius: 16rpx;
  618. padding: 44rpx 36rpx;
  619. margin-bottom: 24rpx;
  620. .title{
  621. font-size: 28rpx;
  622. font-weight: bold;
  623. color: #2D2D2D;
  624. padding-bottom: 20rpx;
  625. margin-bottom: 26rpx;
  626. border-bottom-style:dashed;
  627. }
  628. .notice-item{
  629. font-size: 24rpx;
  630. font-weight: 400;
  631. color: #7F7F7F;
  632. line-height: 36rpx;
  633. margin-bottom: 8rpx;
  634. }
  635. }
  636. .page-bottom{
  637. position: relative;
  638. z-index: 1001;
  639. height: 98rpx;
  640. padding: 24rpx 20rpx 50rpx;
  641. .inner{
  642. position: fixed;
  643. background-color: #fff;
  644. height: 98rpx;
  645. left: 0;
  646. right: 0;
  647. bottom: 0;
  648. padding: 24rpx 20rpx 50rpx;
  649. box-shadow: 0rpx -4rpx 12rpx 0rpx rgba(215,215,215,0.5);
  650. .total-price{
  651. font-size: 40rpx;
  652. font-weight: bold;
  653. color: #ED0000;
  654. }
  655. .btn{
  656. font-size: 28rpx;
  657. height: 80rpx;
  658. line-height: 80rpx;
  659. border-radius: 50rpx;
  660. padding: 0 50rpx;
  661. background-color: #eee;
  662. color: #333;
  663. text-align: center;
  664. &.active{
  665. background: linear-gradient(90deg, #FF7979 0%, #ED0000 100%);
  666. color: #fff;
  667. }
  668. }
  669. }
  670. }
  671. .purchaser{
  672. .item{
  673. margin-bottom: 10rpx;
  674. font-size: 26rpx;
  675. color: #333;
  676. }
  677. .un-auth{
  678. padding: 26rpx;
  679. background-color: #eee;
  680. color: #333;
  681. text-align: center;
  682. border-radius: 8rpx;
  683. }
  684. }
  685. </style>