confirmOrder.vue 20 KB

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