detail.vue 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955
  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')&&isRefund()" @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. return true
  454. }else if(this.info.goodsList[0].verifyModel && (new Date().getTime() < (this.info.goodsList[0].verifyModel.checkTime + 1000*60*60*48))){// 已核销 并且没超过48小时
  455. return true
  456. }else{
  457. return false
  458. }
  459. },
  460. finish(){
  461. this.isNotTime = true
  462. this.payDetails(this.info.orderNo)
  463. },
  464. refundDetail(){
  465. uni.navigateTo({
  466. url:`/my/order/scenic/refundDetail?id=${this.info.orderNo}`
  467. })
  468. },
  469. handleCall(){
  470. uni.makePhoneCall({
  471. phoneNumber: '4000016553'//仅为示例
  472. });
  473. },
  474. apply(){
  475. let that = this
  476. uni.navigateTo({
  477. url:'./refund',
  478. success: function(res) {
  479. // 通过eventChannel向被打开页面传送数据
  480. res.eventChannel.emit('orderInfo', that.info)
  481. }
  482. })
  483. },
  484. // 获取订单详情
  485. payDetails(orderNo){
  486. payDetails(orderNo).then(res=>{
  487. this.pageLoading = false
  488. this.info = res.content
  489. this.getTicketDetail(res.content.goodsList[0].goodsInfo.productId)
  490. })
  491. },
  492. // 取消支付
  493. cancel(){
  494. uni.showLoading({
  495. title: '取消中'
  496. })
  497. let obj = {
  498. orderId:this.info.orderNo,
  499. remark:'退款',
  500. }
  501. cancelOrder(obj).then(res=>{
  502. if(res.state == 'Success'){
  503. uni.showToast({
  504. title: '取消成功',
  505. icon: 'success'
  506. })
  507. this.payDetails(this.info.orderNo)
  508. }
  509. })
  510. },
  511. // 支付
  512. pay(){
  513. let that = this
  514. if (this.btnLoading) return
  515. this.btnLoading = true
  516. uni.showLoading({
  517. title: '支付中'
  518. })
  519. let miniPayRequest = JSON.parse(this.info.payment.miniPayRequest)
  520. uni.requestPayment({
  521. "provider": "wxpay",
  522. "orderInfo": miniPayRequest,
  523. "appid": miniPayRequest.appId, // 微信开放平台 - 应用 - AppId,注意和微信小程序、公众号 AppId 可能不一致
  524. "paySign": miniPayRequest.paySign,
  525. "nonceStr": miniPayRequest.nonceStr, // 随机字符串
  526. "package": miniPayRequest.package, // 固定值
  527. // "prepayid": miniPayRequest.package, // 统一下单订单号
  528. "timeStamp": miniPayRequest.timeStamp, // 时间戳(单位:秒)
  529. "signType": miniPayRequest.signType, //签名算法
  530. success(msg) {
  531. console.log('msg', msg);
  532. queryPayOrder(that.info.orderNo).then(res1 => {
  533. if (res1.state == 'Success') {
  534. uni.hideLoading()
  535. uni.showToast({
  536. title: '支付成功',
  537. icon: 'success'
  538. })
  539. that.btnLoading = false
  540. that.payDetails(that.info.orderNo)
  541. }
  542. })
  543. },
  544. fail(e) {
  545. that.btnLoading = false
  546. uni.hideLoading()
  547. uni.showToast({
  548. title: '取消支付',
  549. icon: 'fail'
  550. })
  551. // 取消支付后,获取支付信息以备再次支付
  552. that.payDetails(that.info.orderNo)
  553. console.log('err', e,this);
  554. }
  555. })
  556. },
  557. // 取消退款申请
  558. cancelReply(){
  559. if (this.btnLoading) return
  560. this.btnLoading = true
  561. uni.showLoading({
  562. title: '取消中'
  563. })
  564. unRefund({id:this.info.goodsList[0].id}).then(res=>{
  565. this.btnLoading = false
  566. uni.hideLoading()
  567. if (res.state == 'Success') {
  568. this.payDetails(this.info.orderNo)
  569. uni.showToast({
  570. title:'取消成功',
  571. icon:'success'
  572. })
  573. }
  574. })
  575. },
  576. getTicketDetail(productId){
  577. getTicketDetail({productId}).then(res=>{
  578. if(res.state == 'Success'){
  579. this.ticketInfo = res.content.data
  580. this.ticketInfo.mpLossInfo = this.ticketInfo.mpLossInfo.replace(/\n/g, "<br>")
  581. this.ticketInfo.info = this.ticketInfo.info.replace(/\n/g, "<br>")
  582. this.ticketInfo.bookNotice = this.ticketInfo.bookNotice.replace(/\n/g, "<br>")
  583. }
  584. })
  585. },
  586. },
  587. onReady() {
  588. },
  589. onLoad(options) {
  590. this.info.orderNo = options.id
  591. },
  592. onShow() {
  593. this.pageLoading = true
  594. this.payDetails(this.info.orderNo)
  595. },
  596. created() {
  597. // this.info = JSON.parse(uni.getStorageSync('order'))
  598. }
  599. }
  600. </script>
  601. <style lang="scss">
  602. .scenic-order-detail{
  603. background: #F9F9F9;
  604. min-height: 100vh;
  605. padding-bottom: 150rpx;
  606. .status-box{
  607. padding: 24rpx 24rpx 4rpx;
  608. display: flex;
  609. justify-content: space-between;
  610. .text-box{
  611. color: #181818;
  612. .status{
  613. font-weight: bold;
  614. font-size: 32rpx;
  615. display: flex;
  616. .u-count-down__text{
  617. color: $uni-color-primary!important;
  618. }
  619. }
  620. .notice{
  621. font-size: 24rpx;
  622. margin-top: 20rpx;
  623. }
  624. }
  625. }
  626. .ticket-info{
  627. .title{
  628. font-weight: 600;
  629. font-size: 36rpx;
  630. color: #222222;
  631. width: 100%;
  632. white-space: nowrap;
  633. overflow: hidden;
  634. text-overflow: ellipsis;
  635. margin-top: 10rpx;
  636. }
  637. .notice{
  638. display: flex;
  639. align-items: center;
  640. font-size: 24rpx;
  641. color: #AAAAAA;
  642. margin-top: 20rpx;
  643. .jiantou{
  644. width: 48rpx;
  645. height: 48rpx;
  646. }
  647. }
  648. }
  649. .progress{
  650. .progress-title{
  651. font-weight: 600;
  652. font-size: 32rpx;
  653. color: #181818;
  654. }
  655. .progress-desc{
  656. font-weight: 300;
  657. font-size: 24rpx;
  658. color: #AAAAAA;
  659. margin-top: 15rpx;
  660. }
  661. }
  662. .black{
  663. color: #222222!important;
  664. }
  665. .red{
  666. color: red!important;
  667. }
  668. .fs28{
  669. font-size: 28rpx!important;
  670. font-weight: bold;
  671. }
  672. .code-box{
  673. display: flex;
  674. align-items: center;
  675. justify-content: space-between;
  676. .left{
  677. .title{
  678. font-weight: 500;
  679. font-size: 28rpx;
  680. color: #222222;
  681. }
  682. .codeNum{
  683. font-weight: 300;
  684. font-size: 24rpx;
  685. color: #AAAAAA;
  686. margin-top: 15rpx;
  687. }
  688. }
  689. .code-btn{
  690. display: flex;
  691. align-items: center;
  692. font-weight: 300;
  693. font-size: 24rpx;
  694. color: #AAAAAA;
  695. .jiantou{
  696. width: 24rpx;
  697. height: 24rpx;
  698. }
  699. }
  700. }
  701. .input-box{
  702. margin: 20rpx 30rpx;
  703. padding: 28rpx 24rpx;
  704. background: #FFFFFF;
  705. border-radius: 16rpx 16rpx 16rpx 16rpx;
  706. display: flex;
  707. align-items: center;
  708. justify-content: space-between;
  709. .label {
  710. color: #222;
  711. font-size: 28rpx;
  712. }
  713. .value {
  714. font-size: 28rpx;
  715. color: #AAAAAA;
  716. }
  717. }
  718. .content{
  719. margin: 20rpx 30rpx;
  720. padding: 28rpx 24rpx;
  721. border-radius: 16rpx;
  722. background: #fff;
  723. .title{
  724. font-weight: 600;
  725. font-size: 28rpx;
  726. color: #222222;
  727. }
  728. .item{
  729. display: flex;
  730. align-items: center;
  731. justify-content: space-between;
  732. margin-top: 28rpx;
  733. .label{
  734. font-size: 28rpx;
  735. color: #AAAAAA;
  736. }
  737. .value{
  738. font-size: 28rpx;
  739. color: #222222;
  740. }
  741. }
  742. }
  743. .pay-btn{
  744. background: $uni-color-primary;
  745. width: 688rpx;
  746. height: 80rpx;
  747. line-height: 80rpx;
  748. border-radius: 46rpx;
  749. color: #fff;
  750. margin-top: 50rpx;
  751. }
  752. .refund-box{
  753. .refund-msg{
  754. font-weight: 300;
  755. font-size: 24rpx;
  756. color: #222222;
  757. margin-top: 15rpx;
  758. line-height: 40rpx;
  759. }
  760. }
  761. .apply-box{
  762. position: relative;
  763. .label{
  764. font-weight: 600;
  765. font-size: 28rpx;
  766. color: #222222;
  767. }
  768. .value{
  769. color: #999999;
  770. font-size: 24rpx;
  771. margin-top: 15rpx;
  772. }
  773. .jiantou{
  774. position: absolute;
  775. top: 50%;
  776. right: 24rpx;
  777. transform: translateY(-50%);
  778. width: 24rpx;
  779. height: 24rpx;
  780. }
  781. }
  782. .btn-box {
  783. position: fixed;
  784. bottom: 0%;
  785. left: 0%;
  786. width: 100%;
  787. display: flex;
  788. align-items: center;
  789. justify-content: flex-end;
  790. box-sizing: border-box;
  791. padding: 10rpx 24rpx env(safe-area-inset-bottom);
  792. background: #fff;
  793. border-top: 1rpx solid #EEEEEE;
  794. .cancel-btn{
  795. width: 240rpx;
  796. height: 80rpx;
  797. line-height: 80rpx;
  798. text-align: center;
  799. border-radius: 40rpx;
  800. border: 2rpx solid #EE4320;
  801. font-weight: 600;
  802. font-size: 28rpx;
  803. color: #EE4320;
  804. margin: 0;
  805. }
  806. .btn {
  807. width: 240rpx;
  808. height: 80rpx;
  809. line-height: 80rpx;
  810. text-align: center;
  811. background: $uni-color-primary;
  812. border-radius: 40rpx;
  813. font-weight: 600;
  814. font-size: 28rpx;
  815. color: #FFFFFF;
  816. margin: 0;
  817. margin-left: 20rpx;
  818. }
  819. }
  820. .info{
  821. .order-info{
  822. display: flex;
  823. .icon{
  824. width: 164rpx;
  825. height: 164rpx;
  826. border-radius: 16rpx;
  827. flex-shrink: 0;
  828. }
  829. .shop-info{
  830. display: flex;
  831. flex-direction: column;
  832. justify-content: space-between;
  833. padding-left: 24rpx;
  834. flex: 1;
  835. box-sizing: border-box;
  836. .title{
  837. color: #181818;
  838. font-size: 28rpx;
  839. width: 450rpx;
  840. white-space: nowrap;
  841. overflow: hidden;
  842. text-overflow: ellipsis;
  843. }
  844. .price-box{
  845. display: flex;
  846. align-items: center;
  847. justify-content: space-between;
  848. .price{
  849. color: #181818;
  850. font-size: 32rpx;
  851. font-weight: bold;
  852. }
  853. }
  854. .start-time,.goods-desc{
  855. font-size: 24rpx;
  856. color: #AAAAAA;
  857. width: 450rpx;
  858. white-space: nowrap;
  859. overflow: hidden;
  860. text-overflow: ellipsis;
  861. }
  862. }
  863. }
  864. }
  865. .wrap{
  866. display: flex;
  867. justify-content: center;
  868. align-items: center;
  869. height: 100vh;
  870. overflow: hidden;
  871. }
  872. .border-top+.border-top{
  873. border-top: 1rpx solid #F0F0F0;
  874. margin-top: 28rpx;
  875. }
  876. .u-popup__content{
  877. padding: 0 24rpx 28rpx;
  878. position: relative;
  879. .popup-title{
  880. font-weight: 600;
  881. font-size: 32rpx;
  882. color: #222222;
  883. padding: 28rpx 0;
  884. border-bottom: 1rpx solid #F0F0F0;
  885. }
  886. .box{
  887. max-height: 70vh;
  888. overflow: auto;
  889. .sub-title{
  890. font-weight: 600;
  891. font-size: 28rpx;
  892. color: #222222;
  893. margin: 20rpx 0;
  894. }
  895. .intro{
  896. font-weight: 300;
  897. font-size: 24rpx;
  898. color: #AAAAAA;
  899. line-height: 40rpx;
  900. padding-bottom: 24rpx;
  901. }
  902. .border-bottom{
  903. border-bottom: 1rpx solid #F0F0F0!important;
  904. }
  905. }
  906. }
  907. }
  908. </style>