detail.vue 22 KB

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