confirmOrder.vue 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769
  1. <template>
  2. <view>
  3. <view class="top">
  4. <!-- #ifdef MP-WEIXIN -->
  5. <NavigateBar :title="title" control="home" bgcolor="#a09cc4"></NavigateBar>
  6. <!-- #endif -->
  7. <!-- #ifdef MP-ALIPAY -->
  8. <NavigateBar :title="title" bgcolor="#a09cc4"></NavigateBar>
  9. <!-- #endif -->
  10. </view>
  11. <view class="room-type-item">
  12. <view class="room-type-item-left">
  13. <u-image :src="roomPicPath" width="200rpx" height="200rpx" radius="10"></u-image>
  14. </view>
  15. <view class="room-type-item-middle">
  16. <view class="room-type-item-middle-text">
  17. <text>{{roomTypeName ? roomTypeName : ""}}</text>
  18. </view>
  19. <view class="room-type-item-middle-text">
  20. <text>{{order.room ? order.room : ""}}</text>
  21. </view>
  22. </view>
  23. <view class="room-type-item-right">
  24. <view class="room-type-item-right-text">
  25. <text>¥{{unitPrice ? unitPrice : 0}}</text>
  26. </view>
  27. </view>
  28. </view>
  29. <view class="checkin-date-info">
  30. <view class="date-selector">
  31. <view class="date-item">
  32. <u-text text="入住" color="#666666" size="15"></u-text>
  33. <view class="date-info">
  34. <u-text :text="startDate" color="#333333" size="14" bold></u-text>
  35. <u-text :text="startDay" color="#333333" size="14" bold></u-text>
  36. </view>
  37. </view>
  38. <view class="date-item">
  39. <u-text text="离店" color="#666666" size="15"></u-text>
  40. <view class="date-info">
  41. <u-text :text="endDate" color="#333333" size="14" bold></u-text>
  42. <u-text :text="endDay" color="#333333" size="14" bold></u-text>
  43. </view>
  44. </view>
  45. </view>
  46. <view class="day-num">
  47. <u-text :text="'共' + order.dayNum + '晚'" color="#333333" size="15" bold></u-text>
  48. </view>
  49. </view>
  50. <!-- #ifdef MP-WEIXIN -->
  51. <u-swipe-action>
  52. <u-swipe-action-item :options="options" v-for="(info,index) in checkinInfo" :key=index @click="deleteGuest"
  53. :name="index" :disabled="index ===0">
  54. <u-form labelPosition="left" labelWidth="180rpx" labelAlign="center">
  55. <u-form-item label="姓名" prop="name">
  56. <u-text :text="info.name" border="none" clearable fontSize="36rpx"></u-text>
  57. </u-form-item>
  58. <u-form-item label="身份证" prop="idNumber">
  59. <u-text :text="info.idNumber" border="none" clearable fontSize="36rpx"></u-text>
  60. </u-form-item>
  61. </u-form>
  62. </u-swipe-action-item>
  63. </u-swipe-action>
  64. <!-- #endif -->
  65. <!-- #ifdef MP-ALIPAY -->
  66. <view v-for="(info,index) in checkinInfo" :key="index" class="guest-info">
  67. <ant-swipe-action :rightButtons="rightBtns" @swipeStart="onSwipeStart" @swipeEnd="onSwipeEnd"
  68. @buttonTap="deleteGuestAli" :swiped="swipeIndex === index" :data-item="index" :disabled="index ===0">
  69. <view class="swipe-item">
  70. <u-form labelPosition="left" labelWidth="180rpx" labelAlign="center">
  71. <u-form-item label="姓名" prop="name">
  72. <u-text :text="info.name" border="none" clearable fontSize="36rpx"></u-text>
  73. </u-form-item>
  74. <u-form-item label="身份证" prop="idNumber">
  75. <u-text :text="info.idNumber" border="none" clearable fontSize="36rpx"></u-text>
  76. </u-form-item>
  77. </u-form>
  78. </view>
  79. </ant-swipe-action>
  80. </view>
  81. <!-- #endif -->
  82. <view class="add-guest-btn-container">
  83. <u-button text="添加同住人" @click="gotoAddGuest"></u-button>
  84. </view>
  85. <view class="paymentArea" v-if="confirmDone">
  86. <view class="paymentArea--left">
  87. <view class="price">
  88. <text>合计:</text>
  89. <text>¥{{order.price ? order.price : ""}}</text>
  90. </view>
  91. <view class="deposit">
  92. <text text="" align="right" size="20">(注:需付押金{{order.deposit ? order.deposit : ""}}元)</text>
  93. </view>
  94. </view>
  95. <view class="completeBtn" v-if="useYst">
  96. <button class="u-button" @click="ystPayment">支付</button>
  97. </view>
  98. <view class="completeBtn" v-else>
  99. <button class="u-button" @click="pay">支付</button>
  100. </view>
  101. </view>
  102. <view class="confirm-btn-container" v-else>
  103. <u-button text="确认" color="#9e97c3" @click="confirmOrder"></u-button>
  104. </view>
  105. </view>
  106. </template>
  107. <script>
  108. import {
  109. getDay
  110. } from '../../utils/commonUtils.js'
  111. import {
  112. IMG_BASE_URL
  113. } from "../../config.js"
  114. import {
  115. mapState,
  116. mapMutations
  117. } from 'vuex'
  118. import moment from "moment";
  119. import NavigateBar from "../../components/navigateBar/navigate-bar.vue";
  120. export default {
  121. components: {
  122. NavigateBar
  123. },
  124. data() {
  125. return {
  126. roomPicPath: '',
  127. roomTypeName: '',
  128. unitPrice: '',
  129. startDate: this.startDate,
  130. startDay: this.startDay,
  131. endDate: this.endDate,
  132. endDay: this.endDay,
  133. arrowPicPath: '/static/arrow.png',
  134. confirmDone: false,
  135. options: [{
  136. text: '删除',
  137. style: {
  138. backgroundColor: '#FF0000'
  139. }
  140. }],
  141. title: "",
  142. useYst: true,
  143. // #ifdef MP-ALIPAY
  144. rightBtns: [{
  145. text: "删除",
  146. bgColor: "#FF0000",
  147. color: '#fff',
  148. }],
  149. swipeIndex: -1,
  150. // #endif
  151. };
  152. },
  153. computed: {
  154. ...mapState('m_user', ['userInfo']),
  155. ...mapState('m_business', ['order', 'currentHotel', 'checkinInfo']),
  156. },
  157. methods: {
  158. ...mapMutations('m_business', ['updateCheckinInfo', 'updateOrder']),
  159. gotoAddGuest() {
  160. uni.navigateTo({
  161. url: '/subpkg_checkin/addGuest/addGuest'
  162. })
  163. },
  164. // #ifdef MP-WEIXIN
  165. deleteGuest(info) {
  166. if (info.name === 0) {
  167. return
  168. }
  169. this.checkinInfo.splice(info.name, 1)
  170. this.updateCheckinInfo(this.checkinInfo)
  171. },
  172. // #endif
  173. async confirmOrder() {
  174. //小程序创建的订单,先在后台创建订单,创建成功后跳转至支付页面
  175. if (this.order.orderSource === 'MINI_APP') {
  176. if (!this.order.orderId) {
  177. // #ifdef MP-WEIXIN
  178. this.order["platform"] = "WECHAT"
  179. // #endif
  180. // #ifdef MP-ALIPAY
  181. this.order["platform"] = "ALIPAY"
  182. // #endif
  183. let createOrderRes = await uni.$http.post('/order', this.order)
  184. if (createOrderRes.data.code !== 200) {
  185. uni.$showMsg('订单创建失败,请重试')
  186. return
  187. }
  188. this.updateOrder(createOrderRes.data.data)
  189. }
  190. this.confirmDone = true
  191. this.title = '订单支付'
  192. } else {
  193. //pms预定订单,若未支付跳转至支付页面,若已支付跳转至入住页面
  194. if (this.order.paymentStatus !== 'PAID') {
  195. this.confirmDone = true
  196. this.title = '订单支付'
  197. } else {
  198. uni.navigateTo({
  199. url: '/subpkg_checkin/checkin/checkin'
  200. })
  201. }
  202. }
  203. },
  204. async pay() {
  205. // console.log("pay start");
  206. // #ifdef MP-WEIXIN
  207. let res = await uni.$http.post('/order/payment/weChat', {
  208. openid: this.userInfo.openid,
  209. orderId: this.order.orderId,
  210. })
  211. if (res.data.code == 200) {
  212. res.data.data.package = res.data.data.packageStr
  213. try {
  214. let paymentResult = await wx.requestPayment(res.data.data)
  215. console.log("payment result:", paymentResult)
  216. if (paymentResult.errMsg === 'requestPayment:ok') {
  217. uni.$showMsg("支付成功")
  218. uni.redirectTo({
  219. url: '/subpkg_checkin/checkin/checkin'
  220. })
  221. }
  222. } catch {
  223. uni.$http.post(`/order/cancelPayment/${this.order.id}`)
  224. }
  225. } else {
  226. //小程序创建的订单跳转至选择房间,pms预订单跳转至查询订单
  227. if (this.order.orderSource === 'MINI_APP') {
  228. uni.showModal({
  229. content: '房间已被占用,请重新选房',
  230. showCancel: false,
  231. success: (res) => {
  232. if (res.confirm) {
  233. uni.navigateTo({
  234. url: '/subpkg_checkin/selectRoom/selectRoom?roomType=' +
  235. this.order.roomType
  236. })
  237. }
  238. }
  239. })
  240. } else {
  241. uni.showModal({
  242. content: '订单不可用,请重新选择订单',
  243. showCancel: false,
  244. success: (res) => {
  245. if (res.confirm) {
  246. uni.navigateTo({
  247. url: '/subpkg_checkin/queryOrder/queryOrder?'
  248. })
  249. }
  250. }
  251. })
  252. }
  253. }
  254. // #endif
  255. // #ifdef MP-ALIPAY
  256. if (Number(this.order.deposit) === 0) {
  257. await this.aliPaymentNormal()
  258. } else {
  259. await this.aliPaymentFreeze()
  260. }
  261. // #endif
  262. },
  263. async ystPayment() {
  264. const {miniProgram: {appId}} = uni.getAccountInfoSync();
  265. // console.log("小程序信息", appId);
  266. const {data: submitRes} = await uni.$http.post('/order/payment/ystPay', {
  267. openid: this.userInfo.openid,
  268. orderId: this.order.orderId,
  269. appId: appId
  270. })
  271. console.log("订单提交结果", submitRes)
  272. // 创建订单失败
  273. if (!submitRes.success) {
  274. //小程序创建的订单跳转至选择房间,pms预订单跳转至查询订单
  275. if (this.order.orderSource === 'MINI_APP') {
  276. uni.showModal({
  277. content: '房间已被占用,请重新选房',
  278. showCancel: false,
  279. success: (res) => {
  280. if (res.confirm) {
  281. uni.navigateTo({
  282. url: '/subpkg_checkin/selectRoom/selectRoom?roomType=' +
  283. this.order.roomType
  284. })
  285. }
  286. }
  287. })
  288. } else {
  289. uni.showModal({
  290. content: '订单不可用,请重新选择订单',
  291. showCancel: false,
  292. success: (res) => {
  293. if (res.confirm) {
  294. uni.navigateTo({
  295. url: '/subpkg_checkin/queryOrder/queryOrder?'
  296. })
  297. }
  298. }
  299. })
  300. }
  301. return
  302. }
  303. const payData = JSON.parse(submitRes.data)
  304. // console.log("支付数据", payData);
  305. const paymentResult = await wx.requestPayment(payData)
  306. console.log("payment result:", paymentResult)
  307. // 不是调用支付成功的情况,解锁订单,直接返回
  308. if (paymentResult.errMsg !== 'requestPayment:ok') {
  309. await uni.$http.post(`/order/cancelPayment/${this.order.id}`)
  310. return
  311. }
  312. // 调用支付成功,查询下订单支付情况
  313. const {data: paymentRes} = await uni.$http.post('/order/payment/queryYstPay', {
  314. openid: this.userInfo.openid,
  315. orderId: this.order.orderId,
  316. appId: appId
  317. })
  318. console.log("订单支付结果", paymentRes)
  319. if (paymentRes.success && paymentRes.data === "S") {
  320. uni.$showMsg("支付成功")
  321. uni.navigateTo({
  322. url: '/subpkg_checkin/checkin/checkin'
  323. })
  324. } else {
  325. uni.$http.post(`/order/cancelPayment/${this.order.id}`)
  326. }
  327. },
  328. // #ifdef MP-ALIPAY
  329. onSwipeStart() {
  330. this.swipeIndex = ""
  331. },
  332. onSwipeEnd(arg1, arg2) {
  333. console.log(arg1, arg2);
  334. let index = arg2.target.dataset.item
  335. if (arg1.swiped) {
  336. this.swipeIndex = index
  337. }
  338. },
  339. deleteGuestAli() {
  340. this.checkinInfo.splice(this.swipeIndex, 1)
  341. this.updateCheckinInfo(this.checkinInfo)
  342. },
  343. async aliPaymentNormal() {
  344. // 申请获取预付号
  345. let alipayRes = await uni.$http.post('/order/payment/alipayNormal', {
  346. openid: this.userInfo.openid,
  347. orderId: this.order.orderId
  348. })
  349. // console.log("获取预付号",alipayRes.data)
  350. if (!alipayRes.data.success) {
  351. console.log("获取预付号失败");
  352. //小程序创建的订单跳转至选择房间,pms预订单跳转至查询订单
  353. if (this.order.orderSource === 'MINI_APP') {
  354. uni.showModal({
  355. content: '房间已被占用,请重新选房',
  356. showCancel: false,
  357. success: (res) => {
  358. if (res.confirm) {
  359. uni.navigateTo({
  360. url: '/subpkg_checkin/selectRoom/selectRoom?roomType=' +
  361. this.order.roomType
  362. })
  363. }
  364. }
  365. })
  366. } else {
  367. uni.showModal({
  368. content: '订单不可用,请重新选择订单',
  369. showCancel: false,
  370. success: (res) => {
  371. if (res.confirm) {
  372. uni.navigateTo({
  373. url: '/subpkg_checkin/queryOrder/queryOrder?'
  374. })
  375. }
  376. }
  377. })
  378. }
  379. return
  380. }
  381. // 根据预付号发起支付
  382. let tradeNo = alipayRes.data.data.tradeNo
  383. let tradeRes = await my.tradePay({
  384. tradeNO: tradeNo
  385. })
  386. // console.log("tradeRes 交易支付结果",tradeRes.resultCode);
  387. if (tradeRes.resultCode === "6001") {
  388. console.log("支付未完成。");
  389. uni.$http.post(`/order/cancelPayment/${this.order.id}`)
  390. }
  391. if (tradeRes.resultCode === "6002") {
  392. // 网络连接出错
  393. uni.showModal({
  394. title: "网络连接出错",
  395. content: "网络连接出错,请检查网络连接后重试。",
  396. });
  397. uni.$http.post(`/order/cancelPayment/${this.order.id}`)
  398. }
  399. // 顾客支付后,查询支付状态
  400. if (["9000", "6004", "8000"].includes(tradeRes.resultCode)) {
  401. // 顾客支付订单后,查询支付宝侧的订单支付状态,只有TRADE_SUCCESS才为支付成功
  402. let tradeStatus = await uni.$http.post('/order/payment/queryAlipayNormal', {
  403. tradeNo: tradeNo,
  404. hotelId: this.currentHotel.hotelId
  405. })
  406. // console.log("tradeStatus", tradeStatus);
  407. if (tradeStatus.data.success && tradeStatus.data.data.tradeStatus === "TRADE_SUCCESS") {
  408. uni.$showMsg("支付成功")
  409. uni.navigateTo({
  410. url: '/subpkg_checkin/checkin/checkin'
  411. })
  412. } else {
  413. uni.$http.post(`/order/cancelPayment/${this.order.id}`)
  414. }
  415. }
  416. },
  417. async aliPaymentFreeze() {
  418. // 申请获取签名字符串
  419. let alipayRes = await uni.$http.post('/order/payment/alipayAuthPay', {
  420. openid: this.userInfo.openid,
  421. orderId: this.order.orderId
  422. })
  423. console.log("签名字符串", alipayRes.data)
  424. if (!alipayRes.data.success) {
  425. console.log("获取签名字符串失败");
  426. //小程序创建的订单跳转至选择房间,pms预订单跳转至查询订单
  427. if (this.order.orderSource === 'MINI_APP') {
  428. uni.showModal({
  429. content: '房间已被占用,请重新选房',
  430. showCancel: false,
  431. success: (res) => {
  432. if (res.confirm) {
  433. uni.navigateTo({
  434. url: '/subpkg_checkin/selectRoom/selectRoom?roomType=' +
  435. this.order.roomType
  436. })
  437. }
  438. }
  439. })
  440. } else {
  441. uni.showModal({
  442. content: '订单不可用,请重新选择订单',
  443. showCancel: false,
  444. success: (res) => {
  445. if (res.confirm) {
  446. uni.navigateTo({
  447. url: '/subpkg_checkin/queryOrder/queryOrder?'
  448. })
  449. }
  450. }
  451. })
  452. }
  453. return
  454. }
  455. // 根据签名字符串发起授权
  456. let orderString = alipayRes.data.data
  457. let tradeRes = await my.tradePay({
  458. orderStr: orderString
  459. })
  460. // console.log("tradeRes 授权结果",tradeRes.resultCode);
  461. if (tradeRes.resultCode === "6001") {
  462. console.log("支付未完成。");
  463. uni.$http.post(`/order/cancelPayment/${this.order.id}`)
  464. }
  465. if (tradeRes.resultCode === "6002") {
  466. // 网络连接出错
  467. uni.showModal({
  468. title: "网络连接出错",
  469. content: "网络连接出错,请检查网络连接后重试。",
  470. });
  471. uni.$http.post(`/order/cancelPayment/${this.order.id}`)
  472. }
  473. // 顾客授权后,查询授权状态
  474. if (["9000", "6004", "8000"].includes(tradeRes.resultCode)) {
  475. // 顾客授权后,查询授权状态,只有AUTHORIZED(已授权状态:授权成功,可以进行转支付或解冻操作)才算成功
  476. const { data: tradeStatus } = await uni.$http.post('/order/payment/queryAlipayAuthPay', {
  477. openid: this.userInfo.openid,
  478. orderId: this.order.orderId
  479. })
  480. // console.log("tradeStatus", tradeStatus);
  481. if (tradeStatus.success && tradeStatus.data === "AUTHORIZED") {
  482. uni.$showMsg("支付成功")
  483. uni.navigateTo({
  484. url: '/subpkg_checkin/checkin/checkin'
  485. })
  486. } else {
  487. uni.$http.post(`/order/cancelPayment/${this.order.id}`)
  488. }
  489. }
  490. }
  491. // #endif
  492. },
  493. async onLoad() {
  494. const res = await uni.$http.post(`/hotel/roomType`, {
  495. hotelId: this.currentHotel.hotelId,
  496. roomType: this.order.roomType
  497. })
  498. this.roomPicPath = IMG_BASE_URL + '/' + res.data.data.roomPicPath
  499. this.roomTypeName = res.data.data.roomTypeName
  500. this.unitPrice = res.data.data.unitPrice
  501. this.startDate = moment(new Date(this.order.startTime)).format('MM月DD日')
  502. this.startDay = getDay(new Date(this.order.startTime).getDay())
  503. this.endDate = moment(new Date(this.order.endTime)).format('MM月DD日')
  504. this.endDay = getDay(new Date(this.order.endTime).getDay())
  505. },
  506. // #ifdef MP-WEIXIN
  507. onShareAppMessage(info) {
  508. return {
  509. title: '源享住',
  510. path: 'pages/login/login',
  511. imageUrl: "/static/logo.png"
  512. }
  513. }
  514. // #endif
  515. }
  516. </script>
  517. <style lang="scss">
  518. page {
  519. background-color: #EFEFF4;
  520. }
  521. .room-type-item {
  522. border-radius: 30rpx;
  523. background-color: #FFFFFF;
  524. margin: 20rpx;
  525. padding: 40rpx 20rpx;
  526. display: flex;
  527. background: #FFFFFF;
  528. border-radius: 10rpx;
  529. .room-type-item-middle {
  530. margin-left: 30rpx;
  531. display: flex;
  532. flex-direction: column;
  533. width: 200rpx;
  534. .room-type-item-middle-text {
  535. font-size: 40rpx;
  536. font-weight: bold;
  537. color: #333333;
  538. }
  539. .room-type-item-middle-bottom {
  540. margin-top: 40rpx;
  541. font-size: 25rpx;
  542. text {
  543. margin-right: 20rpx;
  544. color: #666666
  545. }
  546. }
  547. }
  548. .room-type-item-right {
  549. width: 25%;
  550. margin-left: 20rpx;
  551. .room-type-item-right-text {
  552. margin-left: 60rpx;
  553. margin-top: 40rpx;
  554. }
  555. text {
  556. font-size: 40rpx;
  557. font-weight: bold;
  558. color: #FF5C58
  559. }
  560. }
  561. }
  562. .checkin-date-info {
  563. border-radius: 30rpx;
  564. background-color: #FFFFFF;
  565. margin: 20rpx 20rpx;
  566. padding: 20rpx;
  567. display: flex;
  568. background: #FFFFFF;
  569. border-radius: 10rpx;
  570. .date-selector {
  571. margin: 20rpx;
  572. display: flex;
  573. width: 70vw;
  574. .date-item {
  575. width: 35vw;
  576. .date-info {
  577. display: flex;
  578. }
  579. }
  580. }
  581. .day-num {
  582. display: flex;
  583. align-items: center;
  584. justify-content: space-between;
  585. }
  586. }
  587. .guest-info {
  588. display: flex;
  589. flex-direction: column;
  590. align-items: center;
  591. height: 220rpx;
  592. width: 100%;
  593. margin-top: 40rpx;
  594. .swipe-item {
  595. background-color: #ffffff;
  596. text-indent: 1em;
  597. position: relative;
  598. height: 100%;
  599. color: #333333;
  600. }
  601. .swipe-item::after {
  602. content: "";
  603. position: absolute;
  604. bottom: 0;
  605. left: 0;
  606. width: 100%;
  607. height: 1px;
  608. max-height: 1px;
  609. min-height: 1px;
  610. transform: scaleY(0.5);
  611. background-color: #eeeeee;
  612. }
  613. .u-form {
  614. background-color: #FFFFFF;
  615. .u-form-item {
  616. line-height: 70rpx;
  617. .u-form-item__body {
  618. margin-left: 32rpx;
  619. border-bottom: 2rpx solid #E5E5E5;
  620. }
  621. .u-form-item__body__left__content__label {
  622. font-size: 36rpx;
  623. color: #666666;
  624. }
  625. }
  626. }
  627. }
  628. .u-swipe-action {
  629. .u-swipe-action-item {
  630. margin-top: 40rpx;
  631. .u-form {
  632. background-color: #FFFFFF;
  633. .u-form-item {
  634. line-height: 70rpx;
  635. .u-form-item__body {
  636. margin-left: 32rpx;
  637. border-bottom: 2rpx solid #E5E5E5;
  638. }
  639. .u-form-item__body__left__content__label {
  640. font-size: 36rpx;
  641. color: #666666;
  642. }
  643. }
  644. }
  645. }
  646. }
  647. .add-guest-btn-container {
  648. margin: 30rpx;
  649. padding-bottom: 160rpx;
  650. }
  651. .confirm-btn-container {
  652. margin: 30rpx;
  653. padding-bottom: 100rpx;
  654. transform: translateY(-160rpx);
  655. .u-button__text {
  656. font-size: 30rpx !important;
  657. }
  658. }
  659. .paymentArea {
  660. position: fixed;
  661. bottom: 30rpx;
  662. height: 110rpx;
  663. display: flex;
  664. background-color: #EFEFF4;
  665. z-index: 99;
  666. .completeBtn {
  667. width: 50vw;
  668. .u-button {
  669. height: 110rpx;
  670. color: #ffffff;
  671. background-color: #F78203;
  672. display: flex;
  673. align-items: center;
  674. justify-content: center;
  675. font-size: 35rpx !important;
  676. }
  677. }
  678. .paymentArea--left {
  679. .price {
  680. display: block;
  681. margin-left: 20rpx;
  682. width: 50vw;
  683. line-height: 60rpx;
  684. font-size: 36rpx;
  685. font-weight: bold;
  686. text {
  687. &:nth-child(2) {
  688. color: #FF5C58;
  689. }
  690. }
  691. }
  692. .deposit {
  693. display: block;
  694. margin-left: 20rpx;
  695. width: 50vw;
  696. line-height: 40rpx;
  697. font-size: 24rpx;
  698. color: #666666;
  699. }
  700. }
  701. .deposit {
  702. display: block;
  703. }
  704. }
  705. </style>