detail.vue 22 KB

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