detail.vue 21 KB

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