detail.vue 21 KB

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