detail.vue 20 KB

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