detail.vue 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834
  1. <template>
  2. <view class="movie-order-detail">
  3. <zs-skeleton type="orderDetail" :loading="pageLoading"></zs-skeleton>
  4. <view class="status-box">
  5. <view class="text-box">
  6. <view class="status" v-if="info.goodsList[0].goodsState == 'WAIT_PAYMENT'&&!isNotTime">
  7. 等待支付,剩余<u-count-down :time="closeTime" format="mm:ss" @finish="finish"></u-count-down>
  8. </view>
  9. <view class="status" v-else>
  10. {{info.goodsList[0] | filterType}}
  11. </view>
  12. </view>
  13. </view>
  14. <view class="content shop-box">
  15. <view class="shop-name">
  16. {{info.shopInfo.shopName}}
  17. </view>
  18. <view class="address">
  19. {{info.goodsList[0].goodsInfo.cinemaAddress}}
  20. </view>
  21. </view>
  22. <view class="content info">
  23. <view class="order-info">
  24. <image class="icon" :src="info.goodsList[0].goodsInfo.goodsPath" mode=""></image>
  25. <view class="shop-info">
  26. <view class="title">
  27. {{info.goodsList[0].goodsInfo.goodsName}}
  28. </view>
  29. <view class="goods-desc" >
  30. {{ $u.timeFormat(info.goodsList[0].goodsInfo.sessionBeginTime,'yyyy-mm-dd hh:MM')}}
  31. </view>
  32. <view class="goods-desc" >
  33. {{info.goodsList[0].goodsInfo.hallName}} {{info.goodsList[0].goodsInfo.seatNames}}
  34. </view>
  35. <view class="price-box">
  36. <view class="price">
  37. ¥{{info.goodsList[0].payAmount}}
  38. </view>
  39. <view class="num">
  40. {{`(${info.goodsList[0].goodsInfo.seatNames.split(',').length}张电影票)`}}
  41. </view>
  42. </view>
  43. </view>
  44. </view>
  45. </view>
  46. <view class="content code-box" v-if="info.goodsList[0].goodsState == 'USED'">
  47. <view class="title">
  48. 券码信息
  49. </view>
  50. <!-- <view class="code-btn" @click="checkCode">
  51. 查看券码 <image class="jiantou" src="../../static/jiantou-icon.png" mode=""></image>
  52. </view> -->
  53. <uqrcode class="qrcode" ref="uqrcode" type="2d" auto canvas-id="qrcode" :value="codeData" :loading="loading" :options="{ margin: 20 }">
  54. <template v-slot:loading>
  55. <text style="color: black;">拼命加载中...</text>
  56. </template>
  57. </uqrcode>
  58. <view class="code">
  59. {{codeData}}
  60. </view>
  61. </view>
  62. <view class="content">
  63. <view class="title">
  64. 订单信息
  65. </view>
  66. <view class="item">
  67. <view class="label">
  68. 订单编号
  69. </view>
  70. <view class="value">
  71. {{info.orderNo}}
  72. </view>
  73. </view>
  74. <view class="item">
  75. <view class="label">
  76. 付款方式
  77. </view>
  78. <view class="value">
  79. {{info.payment | filterPay}}
  80. </view>
  81. </view>
  82. <view class="item">
  83. <view class="label">
  84. 下单时间
  85. </view>
  86. <view class="value">
  87. {{$u.timeFormat(info.createTime,'yyyy-mm-dd hh:MM:ss')}}
  88. </view>
  89. </view>
  90. <view class="item" v-if="info.goodsList[0].goodsState != 'WAIT_PAYMENT' && info.goodsList[0].goodsState != 'CLOSE'">
  91. <view class="label">
  92. 支付时间
  93. </view>
  94. <view class="value" >
  95. {{payTime}}
  96. </view>
  97. </view>
  98. </view>
  99. <view class="content" v-if="info.goodsList[0].jobFlowMap == 'XiaoJu'">
  100. <view class="title">
  101. 交易信息
  102. </view>
  103. <view class="item">
  104. <view class="label">
  105. 订单金额
  106. </view>
  107. <view class="value">
  108. ¥{{info.totalAmount}}
  109. </view>
  110. </view>
  111. <view class="item">
  112. <view class="label">
  113. 服务费
  114. </view>
  115. <view class="value">
  116. ¥{{(info.goodsList[0].goodsInfo.serviceFee/100).toFixed(2)}}
  117. </view>
  118. </view>
  119. <view class="item" >
  120. <view class="label">
  121. 优惠减免金额
  122. </view>
  123. <view class="value ">
  124. -¥{{info.discountAmount}}
  125. </view>
  126. </view>
  127. <view class="item">
  128. <view class="label">
  129. 支付金额
  130. </view>
  131. <view class="value">
  132. ¥{{info.payAmount}}
  133. </view>
  134. </view>
  135. </view>
  136. <view class="content" v-else>
  137. <view class="title">
  138. 交易信息
  139. </view>
  140. <view class="item">
  141. <view class="label">
  142. 商品金额
  143. </view>
  144. <view class="value black">
  145. ¥{{info.totalAmount}}
  146. </view>
  147. </view>
  148. <view class="item" >
  149. <view class="label">
  150. 优惠券
  151. </view>
  152. <view class="value red">
  153. -¥{{info.discountAmount}}
  154. </view>
  155. </view>
  156. <view class="item">
  157. <view class="label">
  158. 合计
  159. </view>
  160. <view class="value">
  161. <text class="red fs28">¥{{info.payAmount}}</text>
  162. </view>
  163. </view>
  164. </view>
  165. <!-- <template>
  166. <view class="content refund-box" v-if="info.goodsList[0].goodsState == 'APPLY_REFUND'||(info.goodsList[0].refundLog&&info.goodsList[0].refundLog.remark)">
  167. <view class="title">
  168. 退款原因
  169. </view>
  170. <view class="refund-msg">
  171. {{info.goodsList[0].refundLog.remark}}
  172. </view>
  173. </view>
  174. <button type="default" :loading="btnLoading" v-if="info.goodsList[0].goodsState == 'APPLY_REFUND'" class="pay-btn" @click="cancelReply" >取消退款</button>
  175. </template> -->
  176. <view class="btn-box" v-if="info.goodsList[0].goodsState == 'WAIT_PAYMENT'">
  177. <!-- <button class="cancel-btn" @click="cancel" :loading="btnLoading">
  178. 取消订单
  179. </button> -->
  180. <button class="btn" @click="pay" :loading="btnLoading">
  181. 立即支付
  182. </button>
  183. </view>
  184. <!-- <button type="default" :loading="btnLoading" class="pay-btn" v-if="info.goodsList[0].goodsState == 'WAIT_PAYMENT'&&info.goodsList[0].jobFlowMap !== 'XiaoJu'" @click="pay" >立即支付</button>
  185. <view class="content apply-box" v-else-if="(info.goodsList[0].goodsState == 'WAIT_USE'||info.goodsList[0].goodsState == 'USED')&&isRefund()&&info.goodsList[0].jobFlowMap !== 'XiaoJu'" @click="apply">
  186. <view class="label">
  187. 退款申请
  188. </view>
  189. <view class="value">
  190. 如引发商品争议,可申请平台介入处理
  191. </view>
  192. <image class="jiantou" src="../../static/jiantou-icon.png" mode=""></image>
  193. </view>
  194. <view class="content apply-box" v-if="info.goodsList[0].refundLog&&info.goodsList[0].refundLog.refund == 'REFUSAL_REFUND'">
  195. <view class="title">
  196. 已拒绝
  197. </view>
  198. <view class="value">
  199. 拒绝理由:{{info.goodsList[0].refundLog.conclusion}}
  200. </view>
  201. </view>
  202. <button type="default" :loading="btnLoading1" v-if="info.goodsList[0].refundLog&&!info.goodsList[0].refundLog.platInter" class="pay-btn" @click="refundIntervene" >申请介入处理</button> -->
  203. <!-- 二维码 -->
  204. <u-overlay :show="show" v-if="show" :opacity="0.6">
  205. <view class="wrap" @click.stop="close">
  206. <uqrcode ref="uqrcode" type="2d" auto canvas-id="qrcode" :value="codeData" :loading="loading" :options="{ margin: 20 }">
  207. <template v-slot:loading>
  208. <text style="color: black;">拼命加载中...</text>
  209. </template>
  210. </uqrcode>
  211. </view>
  212. </u-overlay>
  213. </view>
  214. </template>
  215. <script>
  216. import {qrCode} from '@/api/order.js'
  217. import {payDetails,queryPayOrder,unRefund,refundIntervene} from '@/api/payment.js';
  218. // import {cancelOrder} from '@/api/refuel.js'
  219. export default {
  220. data() {
  221. return {
  222. isVisual:false,//是否是虚拟商品
  223. codeData:'123',
  224. show:false,
  225. loading:false,
  226. pageLoading:true,
  227. btnLoading:false,
  228. btnLoading1:false,
  229. oldBright:0,
  230. info:{
  231. goodsList:[{goodsState:'CLOSE'}]
  232. },
  233. isNotTime:false
  234. }
  235. },
  236. watch: {
  237. // isNotTime(val) {
  238. // if(this.isNotTime){
  239. // this.payDetails(this.info.orderNo)
  240. // }
  241. // }
  242. },
  243. filters: {
  244. filterType: function(val) {
  245. if(val.refundLog&&val.refundLog.refund == 'REFUSAL_REFUND'){
  246. return '拒绝退款'
  247. }
  248. else if(val.goodsState == 'APPLY_REFUND'){
  249. return '退款审核中'
  250. }else if(val.goodsState == 'CLOSE'){
  251. return '关闭订单'
  252. }else if(val.goodsState == 'REFUNDED'){
  253. return '已退款'
  254. }else if(val.goodsState == 'APPLY_REFUNDING'){
  255. return '退款中'
  256. }else if(val.goodsState == 'REFUSAL_REFUND'){
  257. return '拒绝退款'
  258. }else if(val.goodsState == 'USED'){
  259. return '订单已完成'
  260. }else if(val.goodsState == 'WAIT_PAYMENT'){
  261. return '待付款'
  262. }else if(val.goodsState == 'WAIT_USE'){
  263. return '待使用'
  264. }
  265. },
  266. filterPay(val){
  267. if(val.paymentWay == 'wx.unifiedOrder'){
  268. return '微信支付'
  269. }else if(val.paymentWay == 'trade.create'){
  270. return '支付宝支付'
  271. }else if(val.paymentWay == 'uac.miniOrder'){
  272. return '云闪付支付'
  273. }else{
  274. return '-'
  275. }
  276. }
  277. },
  278. computed: {
  279. closeTime() {
  280. // return (this.info.createTime + 1000*60*30) - new Date().getTime()
  281. return (this.info.createTime + 1000*60*10) - new Date().getTime()
  282. },
  283. payTime(){
  284. if(this.info.payment && this.info.payment.paymentTime){
  285. return uni.$u.timeFormat(this.info.payment.paymentTime,'yyyy-mm-dd hh:MM:ss')
  286. }else{
  287. return '-'
  288. }
  289. }
  290. },
  291. methods: {
  292. // 申请客服介入
  293. refundIntervene(){
  294. let that = this
  295. uni.showModal({
  296. title: '提示',
  297. content: '确认申请客服介入吗?',
  298. success: function (res) {
  299. if (res.confirm) {
  300. that.btnLoading1 = true
  301. refundIntervene(that.info.goodsList[0].id).then(res=>{
  302. that.btnLoading1 = false
  303. if(res.state == 'Success'){
  304. that.payDetails(that.info.orderNo)
  305. }
  306. })
  307. } else if (res.cancel) {
  308. console.log('用户点击取消');
  309. }
  310. }
  311. });
  312. },
  313. isRefund(){
  314. if(!this.info.goodsList[0].verifyModel){//没核销
  315. return true
  316. }else if(this.info.goodsList[0].verifyModel && (new Date().getTime() < (this.info.goodsList[0].verifyModel.checkTime + 1000*60*60*48))){// 已核销 并且没超过48小时
  317. return true
  318. }else{
  319. return false
  320. }
  321. },
  322. finish(){
  323. this.isNotTime = true
  324. this.payDetails(this.info.orderNo)
  325. },
  326. refundDetail(){
  327. uni.navigateTo({
  328. url:`/my/order/refundDetail?id=${this.info.orderNo}`
  329. })
  330. },
  331. checkCode() {
  332. this.codeData = ''
  333. this.$nextTick(()=>{
  334. this.show = true
  335. this.loading = true
  336. let that = this
  337. // uni.getScreenBrightness({
  338. // success(res) {
  339. // // 获取用户手机亮度 保存起来
  340. // that.oldBright = res.value
  341. // setTimeout(()=>{
  342. // uni.setScreenBrightness({
  343. // value:1
  344. // })
  345. // },200)
  346. // }
  347. // })
  348. qrCode(this.info.goodsList[0].id).then(res=>{
  349. this.loading = false
  350. if(res.state == 'Success'){
  351. this.codeData = res.content
  352. }
  353. })
  354. })
  355. },
  356. close(){
  357. this.show = false
  358. // uni.setScreenBrightness({
  359. // value:this.oldBright
  360. // })
  361. },
  362. handleCall(){
  363. uni.makePhoneCall({
  364. phoneNumber: '4000016553'//仅为示例
  365. });
  366. },
  367. apply(){
  368. let that = this
  369. if(this.info.goodsList[0].jobFlowMap == 'XiaoJu'){
  370. uni.navigateTo({
  371. url:'./webView'
  372. })
  373. }else{
  374. uni.navigateTo({
  375. url:'./refund',
  376. success: function(res) {
  377. // 通过eventChannel向被打开页面传送数据
  378. res.eventChannel.emit('orderInfo', that.info)
  379. }
  380. })
  381. }
  382. },
  383. // 获取订单详情
  384. payDetails(orderNo){
  385. payDetails(orderNo).then(res=>{
  386. this.pageLoading = false
  387. this.info = res.content
  388. this.codeData = JSON.parse(this.info.goodsList[0].extend).sync.ticketCode
  389. if(this.info.goodsList[0].jobFlowMap == 'P802'){
  390. this.isVisual = true
  391. }
  392. // try{
  393. // let extend = JSON.parse(this.info.goodsList[0].extend)
  394. // if(extend.account){
  395. // this.isVisual = true
  396. // }
  397. // }catch(e){
  398. // //TODO handle the exception
  399. // }
  400. })
  401. },
  402. // 取消支付
  403. cancel(){
  404. uni.showLoading({
  405. title: '取消中'
  406. })
  407. let obj = JSON.parse(this.info.goodsList[0].extend)
  408. cancelOrder(obj).then(res=>{
  409. if(res.state == 'Success'){
  410. uni.showToast({
  411. title: '取消成功',
  412. icon: 'success'
  413. })
  414. this.payDetails(this.info.orderNo)
  415. }
  416. })
  417. },
  418. // 支付
  419. pay(){
  420. let that = this
  421. if(this.info.goodsList[0].jobFlowMap == 'XiaoJu'){
  422. let {xjOrderId,tradeId} = JSON.parse(this.info.goodsList[0].extend)
  423. uni.navigateToMiniProgram({
  424. appId:"wx0d252f6ed9755862", // 滴滴加油小程序appId
  425. path: `packageA/pages/open-energy-pay/index?orderId=${xjOrderId}&tradeId=${tradeId}`, // 滴滴加油收银台页面地址,需要拼接orderId和tradeId
  426. envVersion: 'release', // 固定release
  427. })
  428. }else{
  429. if (this.btnLoading) return
  430. this.btnLoading = true
  431. uni.showLoading({
  432. title: '支付中'
  433. })
  434. let miniPayRequest = JSON.parse(this.info.payment.miniPayRequest)
  435. uni.requestPayment({
  436. "provider": "wxpay",
  437. "orderInfo": miniPayRequest,
  438. "appid": miniPayRequest.appId, // 微信开放平台 - 应用 - AppId,注意和微信小程序、公众号 AppId 可能不一致
  439. "paySign": miniPayRequest.paySign,
  440. "nonceStr": miniPayRequest.nonceStr, // 随机字符串
  441. "package": miniPayRequest.package, // 固定值
  442. // "prepayid": miniPayRequest.package, // 统一下单订单号
  443. "timeStamp": miniPayRequest.timeStamp, // 时间戳(单位:秒)
  444. "signType": miniPayRequest.signType, //签名算法
  445. success(msg) {
  446. console.log('msg', msg);
  447. queryPayOrder(that.info.orderNo).then(res1 => {
  448. if (res1.state == 'Success') {
  449. uni.hideLoading()
  450. uni.showToast({
  451. title: '支付成功',
  452. icon: 'success'
  453. })
  454. that.btnLoading = false
  455. that.payDetails(that.info.orderNo)
  456. }
  457. })
  458. },
  459. fail(e) {
  460. that.btnLoading = false
  461. uni.hideLoading()
  462. uni.showToast({
  463. title: '取消支付',
  464. icon: 'fail'
  465. })
  466. // 取消支付后,获取支付信息以备再次支付
  467. that.payDetails(that.info.orderNo)
  468. console.log('err', e,this);
  469. }
  470. })
  471. }
  472. },
  473. // 取消退款申请
  474. cancelReply(){
  475. if (this.btnLoading) return
  476. this.btnLoading = true
  477. uni.showLoading({
  478. title: '取消中'
  479. })
  480. unRefund({id:this.info.goodsList[0].id}).then(res=>{
  481. this.btnLoading = false
  482. uni.hideLoading()
  483. if (res.state == 'Success') {
  484. this.payDetails(this.info.orderNo)
  485. uni.showToast({
  486. title:'取消成功',
  487. icon:'success'
  488. })
  489. }
  490. })
  491. }
  492. },
  493. onReady() {
  494. },
  495. onLoad(options) {
  496. this.info.orderNo = options.id
  497. },
  498. onShow() {
  499. this.pageLoading = true
  500. this.payDetails(this.info.orderNo)
  501. },
  502. created() {
  503. // this.info = JSON.parse(uni.getStorageSync('order'))
  504. }
  505. }
  506. </script>
  507. <style lang="scss">
  508. .movie-order-detail{
  509. background: #F9F9F9;
  510. min-height: 100vh;
  511. padding-bottom: 100rpx;
  512. .status-box{
  513. padding: 24rpx 24rpx 4rpx;
  514. display: flex;
  515. justify-content: space-between;
  516. .text-box{
  517. color: #181818;
  518. .status{
  519. font-weight: bold;
  520. font-size: 32rpx;
  521. display: flex;
  522. .u-count-down__text{
  523. color: $uni-color-primary!important;
  524. }
  525. }
  526. .notice{
  527. font-size: 24rpx;
  528. margin-top: 20rpx;
  529. }
  530. }
  531. }
  532. .progress{
  533. .progress-title{
  534. font-weight: 600;
  535. font-size: 32rpx;
  536. color: #181818;
  537. }
  538. .progress-desc{
  539. font-weight: 300;
  540. font-size: 24rpx;
  541. color: #AAAAAA;
  542. margin-top: 15rpx;
  543. }
  544. }
  545. .shop-box{
  546. width: 690rpx;
  547. // margin: 0 30rpx;
  548. // padding: 24rpx 24rpx 30rpx;
  549. background: #fff;
  550. border-radius: 16rpx;
  551. margin-top: -30rpx;
  552. box-sizing: border-box;
  553. .shop-name{
  554. font-weight: 600;
  555. font-size: 32rpx;
  556. color: #181818;
  557. width: 100%;
  558. white-space: nowrap;
  559. overflow: hidden;
  560. text-overflow: ellipsis;
  561. }
  562. .address{
  563. font-weight: 300;
  564. font-size: 24rpx;
  565. color: #AAAAAA;
  566. margin-top: 20rpx;
  567. width: 100%;
  568. white-space: nowrap;
  569. overflow: hidden;
  570. text-overflow: ellipsis;
  571. }
  572. }
  573. .black{
  574. color: #222222!important;
  575. }
  576. .red{
  577. color: red!important;
  578. }
  579. .fs28{
  580. font-size: 28rpx!important;
  581. font-weight: bold;
  582. }
  583. .code-box{
  584. .qrcode{
  585. display: flex;
  586. align-items: center;
  587. justify-content: center;
  588. margin-top: 20rpx;
  589. }
  590. .code-btn{
  591. display: flex;
  592. align-items: center;
  593. font-weight: 300;
  594. font-size: 24rpx;
  595. color: #AAAAAA;
  596. .jiantou{
  597. width: 24rpx;
  598. height: 24rpx;
  599. }
  600. }
  601. .code{
  602. font-size: 28rpx;
  603. color: #222222;
  604. text-align: center;
  605. }
  606. }
  607. .input-box{
  608. margin: 20rpx 30rpx;
  609. padding: 28rpx 24rpx;
  610. background: #FFFFFF;
  611. border-radius: 16rpx 16rpx 16rpx 16rpx;
  612. display: flex;
  613. align-items: center;
  614. justify-content: space-between;
  615. .label {
  616. color: #222;
  617. font-size: 28rpx;
  618. }
  619. .value {
  620. font-size: 28rpx;
  621. color: #AAAAAA;
  622. }
  623. }
  624. .content{
  625. margin: 20rpx 30rpx;
  626. padding: 28rpx 24rpx;
  627. border-radius: 16rpx;
  628. background: #fff;
  629. .title{
  630. font-weight: 600;
  631. font-size: 28rpx;
  632. color: #222222;
  633. }
  634. .item{
  635. display: flex;
  636. align-items: center;
  637. justify-content: space-between;
  638. margin-top: 28rpx;
  639. .label{
  640. font-size: 28rpx;
  641. color: #AAAAAA;
  642. }
  643. .value{
  644. font-size: 28rpx;
  645. color: #222222;
  646. }
  647. }
  648. }
  649. .pay-btn{
  650. background: $uni-color-primary;
  651. width: 688rpx;
  652. height: 80rpx;
  653. line-height: 80rpx;
  654. border-radius: 46rpx;
  655. color: #fff;
  656. margin-top: 50rpx;
  657. }
  658. .refund-box{
  659. .refund-msg{
  660. font-weight: 300;
  661. font-size: 24rpx;
  662. color: #222222;
  663. margin-top: 15rpx;
  664. line-height: 40rpx;
  665. }
  666. }
  667. .apply-box{
  668. position: relative;
  669. .label{
  670. font-weight: 600;
  671. font-size: 28rpx;
  672. color: #222222;
  673. }
  674. .value{
  675. color: #999999;
  676. font-size: 24rpx;
  677. margin-top: 15rpx;
  678. }
  679. .jiantou{
  680. position: absolute;
  681. top: 50%;
  682. right: 24rpx;
  683. transform: translateY(-50%);
  684. width: 24rpx;
  685. height: 24rpx;
  686. }
  687. }
  688. .btn-box {
  689. position: fixed;
  690. bottom: 0%;
  691. left: 0%;
  692. width: 100%;
  693. display: flex;
  694. align-items: center;
  695. justify-content: flex-end;
  696. box-sizing: border-box;
  697. padding: 10rpx 24rpx env(safe-area-inset-bottom);
  698. background: #fff;
  699. border-top: 1rpx solid #EEEEEE;
  700. .cancel-btn{
  701. width: 240rpx;
  702. height: 80rpx;
  703. line-height: 80rpx;
  704. text-align: center;
  705. border-radius: 40rpx;
  706. border: 2rpx solid #EE4320;
  707. font-weight: 600;
  708. font-size: 28rpx;
  709. color: #EE4320;
  710. margin: 0;
  711. }
  712. .btn {
  713. width: 240rpx;
  714. height: 80rpx;
  715. line-height: 80rpx;
  716. text-align: center;
  717. background: $uni-color-primary;
  718. border-radius: 40rpx;
  719. font-weight: 600;
  720. font-size: 28rpx;
  721. color: #FFFFFF;
  722. margin: 0;
  723. margin-left: 20rpx;
  724. }
  725. }
  726. .info{
  727. .order-info{
  728. display: flex;
  729. .icon{
  730. width: 164rpx;
  731. height: 164rpx;
  732. border-radius: 16rpx;
  733. flex-shrink: 0;
  734. }
  735. .shop-info{
  736. display: flex;
  737. flex-direction: column;
  738. justify-content: space-between;
  739. padding-left: 24rpx;
  740. flex: 1;
  741. box-sizing: border-box;
  742. .title{
  743. color: #181818;
  744. font-size: 28rpx;
  745. width: 450rpx;
  746. white-space: nowrap;
  747. overflow: hidden;
  748. text-overflow: ellipsis;
  749. }
  750. .price-box{
  751. display: flex;
  752. align-items: center;
  753. .price{
  754. font-size: 24rpx;
  755. color: #FF4D3A;
  756. }
  757. .num{
  758. font-size: 24rpx;
  759. color: #AAAAAA;
  760. margin-left: 10rpx;
  761. }
  762. }
  763. .start-time,.goods-desc{
  764. font-size: 24rpx;
  765. color: #AAAAAA;
  766. width: 450rpx;
  767. white-space: nowrap;
  768. overflow: hidden;
  769. text-overflow: ellipsis;
  770. }
  771. }
  772. }
  773. }
  774. .wrap{
  775. display: flex;
  776. justify-content: center;
  777. align-items: center;
  778. height: 100vh;
  779. overflow: hidden;
  780. }
  781. }
  782. </style>