confirmOrder.vue 20 KB

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