detail.vue 23 KB

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