detail.vue 20 KB

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