orderdetails.vue 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782
  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. <u-loading-page :loading="loadingPage"></u-loading-page>
  8. <view class="page-wrap">
  9. <view class="status-content">
  10. <view class="status-item" v-if="orderDetails.status==0">
  11. <view class="text"><text v-if="countdown!='支付超期'"> 请尽快完成付款,还剩 </text>{{countdown}}</view>
  12. <view class="btn-wrap u-flex u-row-center" v-if="countdown!='支付超期'">
  13. <view class="btn cancel" @click="cancelOrder">取消订单</view>
  14. <view class="btn" @click="gotoPay(orderDetails.id)">立即支付</view>
  15. </view>
  16. </view>
  17. <view class="status-item" v-else-if="orderDetails.status==3">
  18. <view class="text"><text v-if="countdown!='演出已开始'">距离演出开始,还剩 </text>{{countdown}}</view>
  19. </view>
  20. <view class="status-item" v-else>
  21. <view class="text">{{orderDetails.status|filterOrderState}}</view>
  22. </view>
  23. </view>
  24. <view class="base-info">
  25. <view class="top u-flex u-row-between">
  26. <view class="name">{{orderDetails.theatreName}}</view>
  27. <!-- <view class="icon-wrap u-flex">
  28. <u-icon name="phone-fill" color="#999999" size="42rpx"></u-icon>
  29. <u-icon name="map-fill" color="#999999" size="42rpx"></u-icon>
  30. </view> -->
  31. </view>
  32. <view class="info u-flex u-row-between">
  33. <image class="img" :src="orderDetails.performImg"></image>
  34. <view class="text">
  35. <view class="name u-flex u-row-between">
  36. {{orderDetails.performName}}
  37. <!-- <text class="status">{{orderDetails.status|filterOrderState}}</text> -->
  38. </view>
  39. <view class="time">{{orderDetails.performDate}} {{orderDetails.performTimeStart}}</view>
  40. <view class="position u-flex u-row-between">
  41. <view class="">{{orderDetails.goodsName}}/{{orderDetails.seatTypeName}}</view>
  42. <view class="">X {{orderDetails.viewerNum}}</view>
  43. </view>
  44. </view>
  45. </view>
  46. </view>
  47. <view class="box qr-wrap" v-if="orderDetails.status==3">
  48. <view class="title">二维码</view>
  49. <view class="qr-content">
  50. <view class="img-wrap">
  51. <!-- <image class="img" :src="orderDetails.performImg"></image> -->
  52. <view class="ayQrcode" @click="refreshCode">
  53. <ayQrcode v-show="!showSingleQR" ref="qrcode" :modal="modal_qr" :url="qrContent" @hideQrcode="hideQrcode" :height="180" :width="180" />
  54. </view>
  55. <image v-if="orderDetails.status==4" class="refund-ico" :src="staticUrl+'/img/refund-ico.png'"></image>
  56. </view>
  57. <!-- <view class="">{{orderDetails.viewersList.length}}张演出票</view> -->
  58. <!-- order-num del-line -->
  59. <view class="order-num">取票号:{{orderDetails.parentQrcodeNo}}</view>
  60. </view>
  61. </view>
  62. <view class="box viewers-list">
  63. <view class="title">观影人员</view>
  64. <view class="item u-flex u-row-around" v-for="(item,index) in orderDetails.viewersList" :key="index">
  65. <text>观影人员{{index + 1}}</text>
  66. <text>{{item.name}}</text>
  67. <text>{{item.idcard|maskID}}</text>
  68. <text v-if="orderDetails.status==3" @click="singleQR(item,index)" class="qrbtn">查看二维码</text>
  69. </view>
  70. </view>
  71. <view class="box order-info">
  72. <view class="title u-flex u-row-between">
  73. 订单信息
  74. <text class="btn" v-if="orderDetails.status==3" @click="refund">申请退款</text>
  75. </view>
  76. <view class="order-info-item" v-for="(item,index) in orderInfo[orderDetails.status]" :key="index">
  77. <text class="til">{{item.name}}</text>
  78. <text class="con">
  79. <text v-if="item.key=='payType'">{{orderDetails[item.key]|filterPayType}}</text>
  80. <text v-else-if="item.key=='realPrice'"> ¥ {{orderDetails[item.key]}}</text>
  81. <text v-else>{{orderDetails[item.key]}}</text>
  82. <text class="copy-btn" @click="copyOrderNum(orderDetails[item.key])" v-if="item.key=='orderNum'">复制</text>
  83. </text>
  84. </view>
  85. </view>
  86. <view class="box tips">
  87. <view class="title">观影须知</view>
  88. <u-parse :content="formerNotice"></u-parse>
  89. <!-- <view class="tips-item" v-for="(item,index) in tipsArr" :key="index">
  90. {{item}}
  91. </view> -->
  92. </view>
  93. </view>
  94. <u-popup :show="showSingleQR" @close="closeSingleQR" @open="openSingleQR" @touchmove.stop.prevent="handleMoveQrcode" :round="10" mode="center">
  95. <view class="singleQR-wrap">
  96. <view class="title">
  97. 二维码
  98. <!-- <u-icon class="close" @click="closeSingleQR" name="close" color="#333" size="36rpx"></u-icon> -->
  99. </view>
  100. <view class="single-info">
  101. <view class="item">姓名:{{singleInfo.name}}</view>
  102. <view class="item">身份证号码:{{singleInfo.idcard|maskID}}</view>
  103. <view class="item">座位:{{singleInfo.seatName}}</view>
  104. <view class="item">状态:{{singleInfo.status|filterSingleState}}</view>
  105. </view>
  106. <view class="singleQrcode">
  107. <ayQrcode ref="singleqrcode" :modal="singleModalQr" :url="singleQrContent" @hideQrcode="hideSingleQrcode" :height="180" :width="180" />
  108. </view>
  109. <view class="order-num">取票号:{{singleInfo.qrcodeNo}}</view>
  110. </view>
  111. </u-popup>
  112. <u-toast ref="uToast"></u-toast>
  113. </view>
  114. </template>
  115. <script>
  116. import { systemInfo } from "@/mixin.js";
  117. import ayQrcode from "@/components/ay-qrcode/ay-qrcode.vue"
  118. export default {
  119. mixins:[systemInfo],
  120. components:{
  121. ayQrcode
  122. },
  123. data() {
  124. return {
  125. timer: null,
  126. modal_qr: false,
  127. qrContent: {}, // 要生成的二维码值
  128. id:'',
  129. loadingPage:true,
  130. staticUrl:this.$commonConfig.staticUrl,
  131. orderDetails:{},
  132. deadline: null, // 设置截止时间为某个日期的时间戳
  133. countdown: '', // 用于显示倒计时时间
  134. // 状态(0待支付,2超时取消,3支付完成,待使用,4退款中,5己退款,6退款失败,7己使用,8己超期)
  135. orderInfo:{
  136. 0:[{name:'需付金额',key:'realPrice'},{name:'订单编号',key:'orderNum'},{name:'下单时间',key:'createTime'}],
  137. 1:[{name:'订单编号',key:'orderNum'},{name:'下单时间',key:'createTime'},{name:'支付方式',key:'payWay'},{name:'支付时间',key:'payTime'}],
  138. 2:[{name:'订单编号',key:'orderNum'},{name:'下单时间',key:'createTime'},{name:'支付方式',key:'payWay'},{name:'支付时间',key:'payTime'}],
  139. 3:[{name:'订单金额',key:'realPrice'},{name:'订单编号',key:'orderNum'},{name:'下单时间',key:'createTime'},{name:'支付方式',key:'payWay'},{name:'支付时间',key:'payTime'}],
  140. 4:[{name:'订单编号',key:'orderNum'},{name:'下单时间',key:'createTime'},{name:'支付方式',key:'payWay'},{name:'支付时间',key:'payTime'}],
  141. 5:[{name:'订单编号',key:'orderNum'},{name:'下单时间',key:'createTime'},{name:'支付方式',key:'payWay'},{name:'支付时间',key:'payTime'},{name:'备注信息',key:'remark'}],
  142. 6:[{name:'订单编号',key:'orderNum'},{name:'下单时间',key:'createTime'},{name:'支付方式',key:'payWay'},{name:'支付时间',key:'payTime'},{name:'备注信息',key:'remark'}],
  143. 7:[{name:'订单编号',key:'orderNum'},{name:'下单时间',key:'createTime'},{name:'支付方式',key:'payWay'},{name:'支付时间',key:'payTime'}],
  144. 8:[{name:'订单金额',key:'realPrice'},{name:'订单编号',key:'orderNum'},{name:'下单时间',key:'createTime'},{name:'备注信息',key:'remark'}],
  145. 9:[{name:'订单金额',key:'realPrice'},{name:'订单编号',key:'orderNum'},{name:'下单时间',key:'createTime'},{name:'备注信息',key:'remark'}],
  146. },
  147. tipsArr:[
  148. '1.请提前到达影院现场,找到自助取票机,打印纸质电影票,完成取票',
  149. '2.如现场自助取票机无法打印电影票,请联系影院工作人员处理',
  150. '3.凭打印好的纸质电影票、检票入场观影',
  151. '4.如果订单使用了兑换券,或购买了特殊场次,暂不支持退票和改签'
  152. ],
  153. params:{
  154. },
  155. singleInfo:{idcard:''},//观影人信息
  156. showSingleQR:false,//显示单人二维码
  157. singleModalQr:false,
  158. singleQrContent:{},
  159. formerNotice:'',
  160. countdownTimer:null,//订单倒计时
  161. templateIdList:[],//微信小程序订阅消息
  162. }
  163. },
  164. onShow() {
  165. this.getOrderDetails(this.id);
  166. },
  167. onLoad(page) {
  168. console.log('page',page);
  169. this.id = page.id;
  170. this.getSystemInfo();
  171. this.getTemplateIdList();//获取模板列表
  172. },
  173. onUnload() {
  174. // 页面离开时停止计时器
  175. // clearInterval(this.timer)
  176. clearInterval(this.countdownTimer)
  177. },
  178. mounted() {
  179. // 每秒更新倒计时时间
  180. this.countdownTimer = setInterval(() => {
  181. const now = new Date().getTime();
  182. const distance = this.deadline - now;
  183. // console.log('distance',distance);
  184. if(this.orderDetails.status==0 && distance<0){
  185. this.countdown = '支付超期';
  186. return
  187. }else if(this.orderDetails.status==3 && distance<0){
  188. this.countdown = '演出已开始';
  189. return
  190. }
  191. // 计算倒计时时间,可以根据需求自定义显示方式
  192. const days = Math.floor(distance / (1000 * 60 * 60 * 24));
  193. const hours = Math.floor((distance % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60));
  194. const minutes = Math.floor((distance % (1000 * 60 * 60)) / (1000 * 60));
  195. const seconds = Math.floor((distance % (1000 * 60)) / 1000);
  196. // 更新倒计时时间
  197. this.countdown = `${days}天 ${hours}小时 ${minutes}分钟 ${seconds}秒`;
  198. }, 1000);
  199. },
  200. methods: {
  201. leftClick(e){
  202. let pages = getCurrentPages();
  203. if(pages.length==1){
  204. uni.$u.route('/pages/index/index')
  205. }else{
  206. uni.navigateBack()
  207. };
  208. },
  209. getTemplateIdList(){
  210. this.$u.api.templateIdList({templateLabel:'order_pay'}).then(res=>{
  211. console.log('getTemplateIdList',res.data);
  212. this.templateIdList = res.data.list.map(item=>{
  213. return item.templateId
  214. });
  215. // if(this.templateIdList.length>0){
  216. // this.templateEven();
  217. // }
  218. }).catch(err=>{
  219. console.log('getTemplateIdList',err);
  220. })
  221. },
  222. // 展示二维码
  223. showQrcode() {
  224. let _this = this;
  225. this.modal_qr = true;
  226. // uni.showLoading()
  227. setTimeout(function() {
  228. // uni.hideLoading()
  229. _this.$refs.qrcode.crtQrCode()
  230. }, 50)
  231. },
  232. //传入组件的方法
  233. hideQrcode() {
  234. this.modal_qr = false;
  235. },
  236. refreshCode(){
  237. this.qrContent = {};
  238. this.qrContent.qrcode = this.orderDetails.parentQrcodeNo;
  239. this.qrContent.time = Date.now();
  240. this.qrContent = JSON.stringify(this.qrContent);
  241. this.showQrcode()
  242. },
  243. hideSingleQrcode(){
  244. this.singleModalQr = false;
  245. },
  246. getOrderDetails(id){
  247. this.$u.api.orderDetails({id:id}).then(res=>{
  248. this.loadingPage = false;
  249. this.orderDetails = res.data
  250. if(res.data.status==0){//待支付
  251. this.deadline = new Date(`${res.data.cancelDateTime}`).getTime();
  252. }else if(res.data.status==3){//待使用
  253. this.deadline = new Date(`${res.data.performDateTime}`).getTime();
  254. }
  255. if(res.data.status==3){
  256. this.qrContent = {};
  257. this.qrContent.qrcode = res.data.parentQrcodeNo;
  258. this.qrContent.time = Date.now();
  259. this.qrContent = JSON.stringify(this.qrContent);
  260. let that = this;
  261. that.showQrcode();//一加载生成二维码
  262. // this.refreshCode()
  263. }
  264. this.getPerformerNotice();
  265. // console.log('this.deadline',this.deadline);
  266. // console.log('orderDetails',JSON.parse(JSON.stringify(res.data)));
  267. }).catch(err=>{
  268. uni.$u.toast('获取数据失败,!请重试')
  269. uni.navigateBack();
  270. console.log('getOrderDetails',err);
  271. })
  272. },
  273. singleQR(item,index){
  274. let that = this;
  275. console.log('singleQR',item);
  276. this.showSingleQR = true;
  277. this.singleInfo = item;
  278. this.singleQrContent = {};
  279. this.singleQrContent.qrcode = item.qrcodeNo;
  280. this.singleQrContent.time = Date.now();
  281. this.singleQrContent = JSON.stringify(this.singleQrContent);
  282. that.showSingleQrcode();//一加载生成二维码
  283. },
  284. // 展示二维码
  285. showSingleQrcode() {
  286. let _this = this;
  287. this.singleModalQr = true;
  288. // uni.showLoading()
  289. setTimeout(function() {
  290. // uni.hideLoading()
  291. _this.$refs.singleqrcode.crtQrCode()
  292. }, 50)
  293. },
  294. closeSingleQR(){
  295. this.showSingleQR = false;
  296. },
  297. openSingleQR(){
  298. },
  299. clickEven(fun,item){
  300. // console.log('fun',fun);
  301. let funObj = {
  302. pay: this.pay,
  303. logistics:this.logistics,
  304. evaluate:this.evaluate,
  305. refund:this.refund,
  306. cancelOrder:this.cancelOrder,
  307. viewRefund:this.viewRefund,
  308. confirmReceipt:this.confirmReceipt
  309. };
  310. // console.log('funObj[fun]',funObj[fun]);
  311. if (fun in funObj) {
  312. funObj[fun](item);
  313. }
  314. },
  315. pay(item){
  316. // this.gotoPay(this.orderDetails.id);
  317. this.setTemplate(this.orderDetails.id);
  318. // console.log('pay',item);
  319. // uni.$u.route('/center/pay', {
  320. // orderId: item.id,
  321. // // openid: that.vuex_wechatOpenid,
  322. // payAmount:item.orderPrice
  323. // });
  324. },
  325. logistics(item){
  326. // console.log('logistics',item);
  327. uni.$u.route('/center/distribution', {
  328. orderId: item.id
  329. });
  330. },
  331. evaluate(item){
  332. // console.log('logistics',item);
  333. uni.$u.route('/shopping/evaluate', {
  334. id: item.id
  335. });
  336. },
  337. refund(item){
  338. console.log('this.orderDetails',this.orderDetails);
  339. uni.$u.route('/center/refund', {
  340. id: this.orderDetails.id,
  341. realPrice:this.orderDetails.realPrice
  342. });
  343. },
  344. cancelOrder(item){
  345. let that = this;
  346. uni.showModal({
  347. title: '提示',
  348. content: '确认取消吗!',
  349. success: res => {
  350. if (res.confirm) {
  351. this.$u.api.cancelOrder({orderId:that.orderDetails.id}).then(res=>{
  352. this.$refs.uToast.show({
  353. message:res.msg,
  354. complete() {
  355. that.getOrderDetails(that.orderDetails.id);
  356. }
  357. });
  358. // uni.$u.toast(res.msg);
  359. console.log('res',res.data);
  360. }).catch(err=>{
  361. console.log('cancelOrder',err);
  362. })
  363. }
  364. }
  365. });
  366. // console.log('logistics',item);
  367. },
  368. confirmReceipt(item){
  369. let that = this;
  370. uni.showModal({
  371. title: '提示',
  372. content: '确认收货吗!',
  373. success: res => {
  374. if (res.confirm) {
  375. this.$u.api.confirmReceipt({orderId:item.id}).then(res=>{
  376. uni.showToast({
  377. title:res.msg,
  378. duration:2000,
  379. complete() {
  380. that.evaluate(item)
  381. that.getOrderDetails(that.id);
  382. }
  383. });
  384. console.log('res',res.data);
  385. }).catch(err=>{
  386. console.log('confirmReceipt',err);
  387. })
  388. }
  389. }
  390. })
  391. },
  392. goMap(){
  393. uni.openLocation({
  394. latitude: Number(this.pickupInfo.pickupLatitude), //维度
  395. longitude: Number(this.pickupInfo.pickupLongitude), //经度
  396. name: "商行地址", //目的地定位名称
  397. scale: 15, //缩放比例
  398. address: this.pickupInfo.pickupAddress //导航详细地址
  399. })
  400. },
  401. copyOrderNum(orderNum){
  402. // console.log('copyOrderNum',orderNum);
  403. uni.setClipboardData({
  404. data: orderNum,
  405. success: function () {
  406. uni.showToast({
  407. title: '复制成功'
  408. });
  409. },
  410. fail(e) {
  411. // console.log('copyOrderNumfail',e);
  412. uni.showToast({
  413. title: '复制失败',
  414. icon:"error"
  415. });
  416. }
  417. });
  418. },
  419. // 设置小程序订阅消息
  420. setTemplate(orderId) {
  421. let that = this;
  422. console.log('templateIdList',this.templateIdList);
  423. uni.requestSubscribeMessage({
  424. tmplIds: that.templateIdList,
  425. success (res) {
  426. // that.gotoPay();
  427. console.log("success:",res);
  428. },
  429. fail (res) {
  430. console.log("fail:",res);
  431. },
  432. complete (res) {
  433. that.gotoPay(orderId);
  434. console.log("complete:",res);
  435. }
  436. })
  437. },
  438. gotoPay(orderId){
  439. this.$u.api.gotoPay({orderId:orderId,openid:''}).then(res=>{
  440. this.payResult = res.data.payInfo;
  441. this.payResult.package = res.data.payInfo.packageValue;
  442. this.wxPay()
  443. // if(this.params.paymentMode==1||this.params.paymentMode==4){
  444. // this.wxPay()
  445. // }else{
  446. // uni.$u.route('/shopping/paysuccess');
  447. // }
  448. console.log('gotoPayres',res.data);
  449. }).catch(err=>{
  450. this.paypass = '';
  451. this.checkPassShow = false;
  452. console.log('gotoPay',err);
  453. })
  454. },
  455. wxPay(){
  456. let that = this;
  457. uni.requestPayment({
  458. ... this.payResult,
  459. "provider": "wxpay",
  460. "orderInfo": {
  461. // "appid": "wx499********7c70e", // 微信开放平台 - 应用 - AppId,注意和微信小程序、公众号 AppId 可能不一致
  462. // "noncestr": "c5sEwbaNPiXAF3iv", // 随机字符串
  463. // "package": "Sign=WXPay", // 固定值
  464. // "partnerid": "148*****52", // 微信支付商户号
  465. // "prepayid": "wx202254********************fbe90000", // 统一下单订单号
  466. // "timestamp": 1597935292, // 时间戳(单位:秒)
  467. // "sign": "A842B45937F6EFF60DEC7A2EAA52D5A0" // 签名,这里用的 MD5/RSA 签名
  468. },
  469. success(res) {
  470. that.payQuery();
  471. },
  472. fail(e) {
  473. console.log('wxPayfail',e);
  474. }
  475. })
  476. },
  477. payQuery(){
  478. let that = this;
  479. let retryCount = 0;
  480. let maxRetryCount = 5; // 设置最大重试次数
  481. let interval = 2000; // 设置间隔时间为2秒
  482. let timeout = 10000; // 设置超时时间为10秒
  483. let timer;
  484. uni.showLoading({
  485. title:'支付结果查询中'
  486. })
  487. timer = setInterval(() => {
  488. retryCount++;
  489. if (retryCount > maxRetryCount || retryCount * interval > timeout) {
  490. clearInterval(timer);
  491. uni.hideLoading();
  492. console.log("支付查询超时或达到最大重试次数");
  493. // 在这里添加超时或达到最大重试次数的处理逻辑
  494. this.reloadList()
  495. } else {
  496. console.log("第" + retryCount + "次查询");
  497. // 调用查询支付状态的方法
  498. // 如果支付状态为成功,则清除定时器并处理成功的逻辑
  499. // 如果支付状态为失败,则清除定时器并处理失败的逻辑
  500. this.$u.api.payQuery({orderId:this.orderId}).then(res=>{
  501. // 0-未支付 1-已支付 2-支付中 3-支付失败 4-支付退款
  502. let payStatus = res.data.payStatus;
  503. if(payStatus===1){
  504. uni.$u.route('/center/paysuccess');
  505. }else if(payStatus===0||payStatus===2){
  506. this.payQuery()
  507. }else if(payStatus===3){
  508. uni.toast('支付失败')
  509. }
  510. clearInterval(timer);
  511. }).catch(err=>{
  512. console.log('payQuery',err);
  513. }).finally(()=>{
  514. uni.hideLoading()
  515. })
  516. }
  517. }, interval);
  518. },
  519. getPerformerNotice(){
  520. this.$u.api.performerNotice({performId:this.orderDetails.performId}).then(res=>{
  521. // console.log('getPerformerNotice',res.data);
  522. this.formerNotice = res.data.performNotice;
  523. }).catch(err=>{
  524. console.log('getPerformerNotice',err);
  525. })
  526. },
  527. handleMoveQrcode(){
  528. console.log('handleMoveQrcode');
  529. return false
  530. }
  531. }
  532. }
  533. </script>
  534. <style>
  535. page{
  536. background: linear-gradient(180deg, #ED0000 0%, #F9FBFD 50%,#F9FBFD 100%);
  537. background-repeat: no-repeat;
  538. }
  539. </style>
  540. <style lang="scss" scoped>
  541. .status-content{
  542. text-align: center;
  543. padding-top: 30rpx;
  544. margin-bottom: 52rpx;
  545. .text{
  546. font-size: 32rpx;
  547. font-weight: 400;
  548. color: #FFFFFF;
  549. margin-bottom: 52rpx;
  550. }
  551. .btn-wrap{
  552. margin-bottom: 40rpx;
  553. .btn{
  554. height: 64rpx;
  555. line-height: 64rpx;
  556. padding: 0 28rpx;
  557. border-radius: 8rpx;
  558. border: 2rpx solid #FFFFFF;
  559. font-size: 24rpx;
  560. font-weight: 500;
  561. color: #FFFFFF;
  562. &.cancel{
  563. border-color: #F9B4B4;
  564. color: #F9B4B4;
  565. }
  566. &:not(:last-of-type){
  567. margin-right: 100rpx;
  568. }
  569. }
  570. }
  571. }
  572. .base-info{
  573. background: #FFFFFF;
  574. box-shadow: 0rpx 2rpx 12rpx 0rpx rgba(221,221,221,0.5);
  575. border-radius: 20rpx;
  576. overflow: hidden;
  577. margin-bottom: 24rpx;
  578. .top{
  579. padding: 36rpx 24rpx;
  580. background: #F9FAFD;
  581. font-size: 24rpx;
  582. font-weight: 400;
  583. color: #7F7F7F;
  584. }
  585. .info{
  586. padding: 28rpx 20rpx 30rpx 24rpx;
  587. .img{
  588. width: 180rpx;
  589. height: 160rpx;
  590. }
  591. .text{
  592. font-size: 24rpx;
  593. font-weight: 400;
  594. color: #7F7F7F;
  595. padding-left: 26rpx;
  596. flex: 1;
  597. .name{
  598. font-size: 28rpx;
  599. font-weight: bold;
  600. color: #363636;
  601. margin-bottom: 20rpx;
  602. }
  603. .time{
  604. margin-bottom: 20rpx;
  605. }
  606. .position{
  607. margin-bottom: 20rpx;
  608. }
  609. .status{
  610. font-size: 24rpx;
  611. font-weight: 400;
  612. color: #EE0606;
  613. }
  614. }
  615. }
  616. }
  617. .box{
  618. margin-bottom: 24rpx;
  619. background: #FFFFFF;
  620. box-shadow: 0rpx 0rpx 20rpx 2rpx rgba(221,221,221,0.5);
  621. border-radius: 20rpx;
  622. padding: 36rpx 24rpx;
  623. .title{
  624. font-size: 28rpx;
  625. font-weight: bold;
  626. color: #2D2D2D;
  627. padding-bottom: 20rpx;
  628. margin-bottom: 24rpx;
  629. border-bottom: 1px solid #F4F4F4;
  630. .btn{
  631. height: 40rpx;
  632. line-height: 40rpx;
  633. padding: 0 20rpx;
  634. border-radius: 8rpx;
  635. border: 2rpx solid #606060;
  636. font-size: 24rpx;
  637. font-weight: 400;
  638. color: #606060;
  639. cursor: pointer;
  640. }
  641. }
  642. }
  643. .order-info{
  644. .order-info-item{
  645. font-size: 30rpx;
  646. font-weight: 400;
  647. color: #333333;
  648. padding: 10rpx 0;
  649. // &:not(:last-child){
  650. // border-bottom: 0.5px solid #eee;
  651. // }
  652. .til{
  653. font-size: 24rpx;
  654. font-weight: 400;
  655. color: #999999;
  656. margin-right: 40rpx;
  657. }
  658. .copy-btn{
  659. margin-left: 32rpx;
  660. height: 30rpx;
  661. line-height: 30rpx;
  662. padding: 0 14rpx;
  663. border-radius: 8rpx;
  664. font-size: 20rpx;
  665. font-weight: 400;
  666. color: #999999;
  667. background: #EDEDED;
  668. }
  669. }
  670. }
  671. .tips{
  672. .tips-item{
  673. font-size: 24rpx;
  674. font-weight: 400;
  675. color: #7F7F7F;
  676. line-height: 36rpx;
  677. margin-bottom: 20rpx;
  678. }
  679. }
  680. .qr-wrap{
  681. .qr-content{
  682. text-align: center;
  683. font-size: 24rpx;
  684. font-weight: 400;
  685. color: #7F7F7F;
  686. }
  687. .img-wrap{
  688. position: relative;
  689. }
  690. .ayQrcode,.img{
  691. width: 180px;
  692. height: 180px;
  693. display: block;
  694. margin: 0 auto 20rpx;
  695. }
  696. .refund-ico{
  697. width: 200rpx;
  698. height: 152rpx;
  699. position: absolute;
  700. bottom: -10rpx;
  701. right: 60rpx;
  702. }
  703. }
  704. .order-num{
  705. position: relative;
  706. margin: 30rpx auto 0;
  707. font-size: 24rpx;
  708. font-weight: 400;
  709. color: #363636;
  710. border: 1px solid #363636;
  711. padding: 5rpx 20rpx;
  712. border-radius: 8rpx;
  713. width: fit-content;
  714. &.del-line{
  715. color: #BCBCBC;
  716. border: 1px solid #BCBCBC;
  717. }
  718. &.del-line::after{
  719. content: '';
  720. width: 110%;
  721. height: 1px;
  722. background-color: #BCBCBC;
  723. position: absolute;
  724. top: 50%;
  725. left: -5%;
  726. }
  727. }
  728. .viewers-list{
  729. .item{
  730. font-size: 24rpx;
  731. color: #999;
  732. margin-bottom: 10px;
  733. .qrbtn{
  734. color: #EE0606;
  735. }
  736. }
  737. }
  738. .singleQR-wrap{
  739. padding: 0 24rpx 50rpx;
  740. box-sizing: border-box;
  741. min-width: 80vw;
  742. .title{
  743. text-align: center;
  744. height: 94rpx;
  745. line-height: 94rpx;
  746. font-size: 28rpx;
  747. font-weight: bold;
  748. color: #2D2D2D;
  749. border-bottom: 2rpx solid #F4F4F4;
  750. margin-bottom: 24rpx;
  751. }
  752. .single-info{
  753. margin-bottom: 24rpx;
  754. .item{
  755. font-size: 24rpx;
  756. font-weight: 400;
  757. color: #363636;
  758. margin-bottom: 10rpx;
  759. }
  760. }
  761. .singleQrcode{
  762. width: 160px;
  763. height: 160px;
  764. margin: 24rpx auto 54rpx;
  765. }
  766. }
  767. </style>