detail.vue 22 KB

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