detail.vue 19 KB

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