confirmOrder.vue 20 KB

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