popup.vue 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778
  1. <template>
  2. <uni-popup ref="selectPopup" :safe-area="false" type="bottom">
  3. <view class="header-text">开场前{{ listData.earlyRefundTime || '--' }}分钟随时退</view>
  4. <view class="select-popup">
  5. <view class="pop-title">选择场次</view>
  6. <view class="pop-date-list">
  7. <scroll-view scroll-x="true" class="scroll-view_H">
  8. <view class="scroll-view-item" v-for="(item, index) in listData.stadiumConcertsVOList" :key="index"
  9. @click="sel_tab(item, index)">
  10. <view class="today-time">{{ item.weekDayAndDate }}</view>
  11. <view class="num">{{ item.noDayConcertsReservationNum || '0' }}场可订</view>
  12. <view class="line" v-if="deteSelIndex == index"></view>
  13. </view>
  14. </scroll-view>
  15. </view>
  16. <view class="gym-list">
  17. <view class="time-list">
  18. <view class="time-title">时间段</view>
  19. <block
  20. v-for="(concert, index) in listData?.stadiumConcertsVOList?.[0]?.concertsVOList?.[0]?.concertsDetailsVOList || []"
  21. :key="index">
  22. <view class="item-time">{{ concert.startTime }}-{{ concert.endTime }}</view>
  23. </block>
  24. </view>
  25. <view class="table-list">
  26. <scroll-view scroll-x="true" class="table-scroll">
  27. <view class="father-list" v-for="(conc, index) in itemList" :key="index"
  28. style="vertical-align: top;">
  29. <view class="father-title">{{ conc.sitePlaceName }}</view>
  30. <view class="children-list" v-for="(concert, index) in conc.concertsDetailsVOList"
  31. :key="index">
  32. <view class="item-card" :class="{ selected: isSelected(concert) }"
  33. @click="selectItem(conc, concert)" v-if="concert.concertStatus == 0">
  34. ¥{{ concert.price }}
  35. </view>
  36. <view class="item-card" style="color: #AAA;" v-if="concert.concertStatus == 1">
  37. 已选
  38. </view>
  39. </view>
  40. </view>
  41. </scroll-view>
  42. </view>
  43. </view>
  44. <view class="select-list" v-if="selArr.length > 0">
  45. <view class="select-title">已选场次</view>
  46. <scroll-view scroll-x="true" class="select-scroll">
  47. <view class="item-list" v-for="(item, index) in selArr" :key="index">
  48. <view class="list-box">
  49. <view class="list-text">
  50. <view class="">{{ item.time }}</view>
  51. <view class="">{{ item.name }}</view>
  52. </view>
  53. <view @click="deleteSelarr(item)"> <zzx-icon name="cancel" size="12"></zzx-icon></view>
  54. </view>
  55. </view>
  56. </scroll-view>
  57. </view>
  58. <view style="height: 200rpx;"></view>
  59. <view class="footer-submit">
  60. <view class="f-price">
  61. <view class="">总价</view>
  62. <view class="">¥{{ priceTotal.toFixed(2) }}</view>
  63. </view>
  64. <view class="f-btn" @click="submit_order">
  65. <button>提交订单</button>
  66. </view>
  67. </view>
  68. </view>
  69. </uni-popup>
  70. <view v-if="isopenDetail">
  71. <uni-popup ref="orderPopup" :safe-area="false" type="bottom">
  72. <view class="header-text">开场前{{ previewgymOrderDetail.earlyRefundTime || '--' }}分钟随时退</view>
  73. <view class="order-popup">
  74. <view class="p-header-card">
  75. <view class="p-school-info">
  76. <zzx-icon name="pay-icon1" size="16"></zzx-icon>
  77. <view class="name">{{ previewgymOrderDetail.storeName }}</view>
  78. </view>
  79. <view class="p-title">羽毛球场地预定</view>
  80. <view class="p-preset">
  81. <view class="preset-info" v-for="item in previewgymOrderDetail.timePeriod" :key="item.id">
  82. {{ item.name }}
  83. </view>
  84. </view>
  85. </view>
  86. <view class="p-price-card">
  87. <view class="p-price">
  88. <view class="text">商品总价(共{{ previewgymOrderDetail.timePeriod.length }}场)</view>
  89. <view class="price"><text class="mini-text">¥</text>{{ previewgymOrderDetail.subtotal.toFixed(2)
  90. }}</view>
  91. </view>
  92. <view class="p-subtotal">
  93. <text>小计</text>
  94. <view class="total-price"><text class="mini-text">¥</text>{{
  95. previewgymOrderDetail.totalPrice.toFixed(2) }}
  96. </view>
  97. </view>
  98. </view>
  99. <view class="p-phone-card">
  100. <view class="p-phone">
  101. <view class="text">手机号码</view>
  102. <input class="phone" type="number" v-model="displayPhone" @blur="orderDetailPhoneBlur" />
  103. <!-- <view class="phone" v-if="previewgymOrderDetail.mobile">{{ previewgymOrderDetail.mobile ?
  104. phoneHide(previewgymOrderDetail.mobile) : '' }}</view> -->
  105. </view>
  106. <view class="tips">请通话畅通,商家需要联系您确认到店时间</view>
  107. </view>
  108. <view class="p-rules-card">
  109. <view class="p-title">退改规则</view>
  110. <view class="p-text">
  111. 每场开场前<text>{{ previewgymOrderDetail.earlyRefundTime }}分钟</text>可随时退改,之后不可退款。如您有疑问,可联系场馆。</view>
  112. </view>
  113. <view class="p-rules-card">
  114. <view class="p-title">温馨提示</view>
  115. <view class="p-text">{{ previewgymOrderDetail.reminder }}</view>
  116. </view>
  117. <view class="p-remark">
  118. <view class="title">备注</view>
  119. <input type="text" />
  120. </view>
  121. <view style="height: 200rpx;"></view>
  122. <view class="footer-pay">
  123. <button hover-class="hover-style" @click="submitOrder">
  124. <view class="btn-price"><text class="mini-text">¥</text>{{
  125. previewgymOrderDetail.totalPrice.toFixed(2) }}
  126. </view>
  127. <view class="btn-text">立即支付</view>
  128. </button>
  129. </view>
  130. </view>
  131. </uni-popup>
  132. </view>
  133. </template>
  134. <script lang="ts" setup>
  135. import { ref, onMounted, computed, watch, nextTick } from 'vue';
  136. import { http } from '@/utils/http'
  137. import { TipsUtils, phoneHide, RouterUtils, debounce } from '@/utils/util';
  138. interface Props {
  139. listData?: any;
  140. itemList?: any;
  141. deteObj?: any;
  142. deteSelIndex?: any;
  143. }
  144. const props = withDefaults(defineProps<Props>(), {
  145. listData: [],
  146. itemList: [],
  147. deteObj: null,
  148. deteSelIndex: null,
  149. });
  150. const selectPopup = ref();
  151. const orderPopup = ref();
  152. const weekDayDate = ref('');
  153. const displayPhone = computed({
  154. get: () => phoneHide(orderDetailPhone.value),
  155. set: (value: any) => { orderDetailPhone.value = value }
  156. })
  157. onMounted(() => {
  158. })
  159. const emit = defineEmits(['changess']);
  160. // 监听 props.deteObj 或 listData 变化,设置 weekDayDate 为匹配项的 weekDayDate
  161. watch(
  162. [() => props.deteObj, () => props.listData, () => props.deteSelIndex],
  163. ([deteObj, listData, deteSelIndex]) => {
  164. if (
  165. listData &&
  166. Array.isArray(listData.stadiumConcertsVOList) &&
  167. typeof deteSelIndex === 'number' &&
  168. listData.stadiumConcertsVOList[deteSelIndex]
  169. ) {
  170. weekDayDate.value = listData.stadiumConcertsVOList[deteSelIndex || 0].weekDayDate;
  171. } else if (deteObj && deteObj.dateLabel && listData && Array.isArray(listData.stadiumConcertsVOList)) {
  172. const match = listData.stadiumConcertsVOList.find(item => item.weekDayAndDate === deteObj.dateLabel);
  173. weekDayDate.value = match ? match.weekDayDate : '';
  174. } else {
  175. weekDayDate.value = '';
  176. }
  177. },
  178. { immediate: true }
  179. );
  180. const opens = () => {
  181. // 打开弹窗时赋值默认日期,优先根据deteSelIndex
  182. if (
  183. props.listData &&
  184. Array.isArray(props.listData.stadiumConcertsVOList) &&
  185. typeof props.deteSelIndex === 'number' &&
  186. props.listData.stadiumConcertsVOList[props.deteSelIndex]
  187. ) {
  188. weekDayDate.value = props.listData.stadiumConcertsVOList[props.deteSelIndex].weekDayDate;
  189. } else if (props.deteObj && props.deteObj.dateLabel && props.listData && Array.isArray(props.listData.stadiumConcertsVOList)) {
  190. const match = props.listData.stadiumConcertsVOList.find(item => item.weekDayAndDate === props.deteObj.dateLabel);
  191. weekDayDate.value = match ? match.weekDayDate : '';
  192. } else {
  193. weekDayDate.value = null;
  194. }
  195. nextTick(() => {
  196. selectPopup.value?.open();
  197. });
  198. }
  199. defineExpose({ opens })
  200. const sel_tab = (e, i) => {
  201. emit('changes', e, i);
  202. weekDayDate.value = e.weekDayDate
  203. }
  204. const selArr = ref([])
  205. const selectItem = (item1, item2) => {
  206. console.log(props.listData, '场次选择');
  207. const existingIndex = selArr.value.findIndex(item => item.id === item2.id);
  208. if (existingIndex !== -1) {
  209. selArr.value.splice(existingIndex, 1);
  210. return;
  211. }
  212. if (selArr.value.length >= props.listData.buyLimit) {
  213. return TipsUtils.tips_toast(`最多选择${props.listData.buyLimit}个场次`);
  214. }
  215. selArr.value.push({
  216. name: item1.sitePlaceName,
  217. time: item2.startTime + '-' + item2.endTime,
  218. price: item2.price,
  219. id: item2.id,
  220. date: weekDayDate.value // 记录选择时的日期
  221. });
  222. }
  223. const isSelected = (concert) => {
  224. return selArr.value.some(item => item.id === concert.id);
  225. }
  226. const priceTotal = computed(() => {
  227. return selArr.value.reduce((total, item) => {
  228. return total + item.price
  229. }, 0)
  230. })
  231. const deleteSelarr = (item) => {
  232. const index = selArr.value.findIndex(selItem => selItem.id === item.id);
  233. if (index !== -1) {
  234. selArr.value.splice(index, 1);
  235. }
  236. }
  237. const submit_order = () => {
  238. if (selArr.value.length < 1) {
  239. return TipsUtils.tips_toast('请选择场次')
  240. }
  241. get_previewOrderPlaceGymnasiumChartered()
  242. }
  243. const previewgymOrderDetail = ref()
  244. const isopenDetail = ref(false)
  245. const orderDetailPhone = ref()
  246. const get_previewOrderPlaceGymnasiumChartered = () => {
  247. const result = selArr.value.map(item => item.id).join(',')
  248. http.get('/order/previewOrderPlaceGymnasiumChartered', { data: { rulesId: result }, loading: true }).then((res) => {
  249. previewgymOrderDetail.value = res.result
  250. orderDetailPhone.value = phoneHide(res.result.mobile)
  251. isopenDetail.value = true
  252. orderFormData.value.productIds = res.result.timePeriod.map(item => {
  253. // 找到 selArr 里对应的 item,取其 date
  254. const sel = selArr.value.find(sel => sel.id === item.id);
  255. return `${item.id}|${sel ? sel.date : weekDayDate.value}`;
  256. }).join(',')
  257. orderFormData.value.amount = res.result.timePeriod.length
  258. setTimeout(() => {
  259. selectPopup.value.close()
  260. orderPopup.value && orderPopup.value.open();
  261. }, 500)
  262. })
  263. }
  264. const orderDetailPhoneBlur = () => {
  265. http.get('/user/updateUserInfo', { data: { phone: orderDetailPhone.value }, loading: true }).then((res) => {
  266. })
  267. }
  268. // 提交订单
  269. const orderFormData = ref({
  270. type: 0,
  271. orderType: 1,
  272. productIds: null,
  273. amount: null,
  274. })
  275. const orderCode = ref(null)
  276. const orderId = ref(null)
  277. const submitOrderImpl = () => {
  278. http.post('/order/createOrder', orderFormData.value, { loading: true }).then((res) => {
  279. orderCode.value = res.result.orderCode
  280. orderId.value = res.result.orderId
  281. paymentOrder(res.result.params)
  282. // getOrderQuery(res.result.orderCode, res.result.orderId)
  283. })
  284. }
  285. const paymentOrder = (payInfo: object) => {
  286. getOrderQuery(orderCode.value, orderId.value)
  287. // console.log(payInfo, '支付参数');
  288. // uni.requestPayment({
  289. // provider: 'wxpay',
  290. // ...payInfo,
  291. // success: function (res) {
  292. // console.log('支付成功', res);
  293. // getOrderQuery(orderCode.value, orderId.value)
  294. // },
  295. // fail: function (err) {
  296. // console.log('支付失败', err);
  297. // if (err.errMsg == 'requestPayment:fail cancel') {
  298. // RouterUtils.to_page(`/pages/index/toBeUsed/index?orderId=${orderId.value}&orderType=${orderFormData.value.orderType}`)
  299. // return
  300. // }else{
  301. // RouterUtils.to_page(`/pages/index/payError/index?errMsg=${err.errMsg}`)
  302. // }
  303. // // TipsUtils.tips_toast('支付失败,请稍后重试');
  304. // }
  305. // });
  306. }
  307. const submitOrder = debounce(submitOrderImpl, 500)
  308. // code编码 "100001支付成功";"100002查询失败"; "100003查询中 "; "100004支付失败"
  309. const getOrderQuery = (orderCode: string, orderId: string, retryCount = 0) => {
  310. http.get('/order/orderQuery', { data: { orderCode: orderCode }, loading: true }).then((res) => {
  311. if (res.result == '100001') {
  312. RouterUtils.to_page(`/pages/index/toBeUsed/index?orderId=${orderId}&orderType=${orderFormData.value.orderType}`)
  313. selectPopup.value?.close()
  314. orderPopup.value?.close()
  315. selArr.value = []
  316. } else if (retryCount <= 3) {
  317. setTimeout(() => {
  318. getOrderQuery(orderCode, orderId, retryCount + 1)
  319. }, 1000)
  320. } else {
  321. if (res.result == '100003') {
  322. console.log('查询中,但已达到最大查询次数')
  323. } else if (res.result == '100002') {
  324. console.log('查询失败')
  325. } else if (res.result == '100004') {
  326. console.log('支付失败')
  327. TipsUtils.tips_toast('支付失败')
  328. }
  329. }
  330. }).catch((error) => {
  331. console.error('查询订单失败:', error)
  332. if (retryCount < 2) {
  333. setTimeout(() => {
  334. getOrderQuery(orderCode, orderId, retryCount + 1)
  335. }, 1000)
  336. }
  337. })
  338. }
  339. </script>
  340. <style lang="less" scoped>
  341. .header-text {
  342. margin: auto;
  343. background: linear-gradient(90deg, #C8FF0C 0%, rgba(100, 128, 6, 0) 100%);
  344. border-radius: 60rpx;
  345. width: 286rpx;
  346. height: 54rpx;
  347. text-align: center;
  348. line-height: 54rpx;
  349. font-size: 24rpx;
  350. color: #FFFFFF;
  351. margin-bottom: 20rpx;
  352. }
  353. .select-popup {
  354. background: #F6F6F6;
  355. border-radius: 32rpx 32rpx 0rpx 0rpx;
  356. max-height: 1200rpx;
  357. overflow: auto;
  358. .pop-title {
  359. font-weight: bold;
  360. font-size: 28rpx;
  361. color: #222222;
  362. padding: 20rpx;
  363. }
  364. .pop-date-list {
  365. border-bottom: 1rpx solid #F0F0F0;
  366. background: #FFFFFF;
  367. padding: 20rpx;
  368. border-radius: 24rpx;
  369. .scroll-view_H {
  370. white-space: nowrap;
  371. width: 100%;
  372. .scroll-view-item {
  373. display: inline-block;
  374. text-align: center;
  375. margin-right: 30rpx;
  376. .today-time {
  377. font-weight: bold;
  378. font-size: 28rpx;
  379. color: #222222;
  380. }
  381. .num {
  382. margin-top: 8rpx;
  383. font-size: 24rpx;
  384. color: #AAAAAA;
  385. }
  386. .line {
  387. margin: auto;
  388. width: 50rpx;
  389. height: 8rpx;
  390. background: #C8FF0C;
  391. transition: width 2s ease;
  392. }
  393. }
  394. }
  395. }
  396. .gym-list {
  397. display: flex;
  398. background: #FFFFFF;
  399. padding: 20rpx;
  400. .time-list {
  401. width: 180rpx;
  402. .time-title {
  403. height: 60rpx;
  404. line-height: 60rpx;
  405. text-align: center;
  406. font-weight: bold;
  407. font-size: 24rpx;
  408. color: #222222;
  409. }
  410. .item-time {
  411. margin-bottom: 20rpx;
  412. height: 54rpx;
  413. font-size: 24rpx;
  414. color: #222222;
  415. line-height: 54rpx;
  416. }
  417. }
  418. .table-list {
  419. width: 560rpx;
  420. .table-scroll {
  421. white-space: nowrap;
  422. width: 100%;
  423. .father-list {
  424. display: inline-block;
  425. margin-right: 20rpx;
  426. .father-title {
  427. height: 60rpx;
  428. line-height: 60rpx;
  429. text-align: center;
  430. font-weight: bold;
  431. font-size: 24rpx;
  432. color: #222222;
  433. }
  434. .children-list {
  435. margin-bottom: 20rpx;
  436. .item-card {
  437. width: 124rpx;
  438. height: 54rpx;
  439. background: #F6F6F6;
  440. border-radius: 8rpx;
  441. font-weight: bold;
  442. font-size: 24rpx;
  443. color: #222222;
  444. text-align: center;
  445. line-height: 54rpx;
  446. &.selected {
  447. background: #C8FF0C !important;
  448. }
  449. }
  450. }
  451. }
  452. }
  453. }
  454. }
  455. .select-list {
  456. padding: 20rpx;
  457. .select-title {
  458. font-weight: bold;
  459. font-size: 28rpx;
  460. color: #222222;
  461. }
  462. .select-scroll {
  463. white-space: nowrap;
  464. width: 100%;
  465. margin-top: 20rpx;
  466. .item-list {
  467. display: inline-block;
  468. padding: 20rpx;
  469. width: 180rpx;
  470. height: 60rpx;
  471. background: #FFFFFF;
  472. border-radius: 16rpx;
  473. margin-right: 20rpx;
  474. .list-box {
  475. display: flex;
  476. align-items: center;
  477. justify-content: space-between;
  478. .list-text {
  479. font-weight: bold;
  480. font-size: 24rpx;
  481. color: #222222;
  482. &>view:last-child {
  483. margin-top: 8rpx;
  484. }
  485. }
  486. }
  487. }
  488. }
  489. }
  490. .footer-submit {
  491. position: fixed;
  492. display: flex;
  493. align-items: center;
  494. justify-content: space-between;
  495. width: 710rpx;
  496. height: 166rpx;
  497. background: #FFFFFF;
  498. box-shadow: 0rpx -6rpx 12rpx 2rpx rgba(0, 0, 0, 0.09);
  499. border-radius: 32rpx 32rpx 0rpx 0rpx;
  500. bottom: 0;
  501. padding: 0 20rpx;
  502. .f-price {
  503. display: flex;
  504. align-items: center;
  505. gap: 16rpx;
  506. &>view:first-child {
  507. font-weight: bold;
  508. font-size: 28rpx;
  509. color: #222222;
  510. }
  511. &>view:last-child {
  512. font-weight: 800;
  513. font-size: 48rpx;
  514. color: #FB5B5B;
  515. }
  516. }
  517. .f-btn {
  518. &>button {
  519. width: 226rpx;
  520. height: 100rpx;
  521. background: #C8FF0C;
  522. border-radius: 60rpx;
  523. line-height: 100rpx;
  524. text-align: center;
  525. font-weight: bold;
  526. font-size: 32rpx;
  527. color: #222222;
  528. }
  529. &>button::after {
  530. border: none;
  531. }
  532. }
  533. }
  534. }
  535. .order-popup {
  536. background: #F6F6F6;
  537. border-radius: 32rpx 32rpx 0rpx 0rpx;
  538. max-height: 1200rpx;
  539. overflow: auto;
  540. .p-header-card {
  541. background: #fff;
  542. padding: 20rpx;
  543. margin-top: 20rpx;
  544. .p-school-info {
  545. display: flex;
  546. align-items: center;
  547. gap: 10rpx;
  548. font-size: 24rpx;
  549. color: #AAAAAA;
  550. }
  551. .p-title {
  552. margin-top: 20rpx;
  553. font-weight: bold;
  554. font-size: 28rpx;
  555. color: #222222;
  556. }
  557. .p-preset {
  558. font-size: 24rpx;
  559. color: #AAAAAA;
  560. .preset-info {
  561. margin-top: 20rpx;
  562. }
  563. }
  564. }
  565. .p-price-card {
  566. background: #fff;
  567. padding: 20rpx;
  568. margin-top: 20rpx;
  569. .p-price {
  570. display: flex;
  571. align-items: center;
  572. justify-content: space-between;
  573. height: 114rpx;
  574. border-bottom: 1rpx solid #F0F0F0;
  575. .text {
  576. font-weight: bold;
  577. font-size: 28rpx;
  578. color: #222222;
  579. }
  580. .price {
  581. font-weight: 800;
  582. font-size: 48rpx;
  583. color: #222222;
  584. }
  585. }
  586. .p-subtotal {
  587. display: flex;
  588. align-items: center;
  589. justify-content: flex-end;
  590. gap: 16rpx;
  591. margin-top: 20rpx;
  592. &>text:nth-child(1) {
  593. font-weight: bold;
  594. font-size: 28rpx;
  595. color: #222222;
  596. }
  597. .total-price {
  598. font-weight: 800;
  599. font-size: 48rpx;
  600. color: #FB5B5B;
  601. }
  602. }
  603. }
  604. .p-phone-card {
  605. background: #fff;
  606. padding: 20rpx;
  607. margin-top: 20rpx;
  608. .p-phone {
  609. display: flex;
  610. align-items: center;
  611. justify-content: space-between;
  612. font-weight: bold;
  613. font-size: 28rpx;
  614. color: #222222;
  615. .phone {
  616. width: 210rpx;
  617. }
  618. }
  619. .tips {
  620. margin-top: 20rpx;
  621. font-size: 24rpx;
  622. color: #AAAAAA;
  623. }
  624. }
  625. .p-rules-card {
  626. background: #fff;
  627. padding: 20rpx;
  628. margin-top: 20rpx;
  629. .p-title {
  630. font-weight: bold;
  631. font-size: 28rpx;
  632. color: #222222;
  633. }
  634. .p-text {
  635. margin-top: 20rpx;
  636. font-size: 24rpx;
  637. color: #AAAAAA;
  638. &>text {
  639. color: #222222;
  640. }
  641. }
  642. }
  643. .p-remark {
  644. display: flex;
  645. align-items: center;
  646. gap: 10rpx;
  647. background: #fff;
  648. padding: 20rpx;
  649. .title {
  650. width: 60rpx;
  651. font-size: 24rpx;
  652. color: #222222;
  653. }
  654. &>input {
  655. width: 690rpx;
  656. font-size: 24rpx;
  657. color: #757575;
  658. }
  659. }
  660. .footer-pay {
  661. position: fixed;
  662. display: flex;
  663. align-items: center;
  664. justify-content: space-between;
  665. width: 710rpx;
  666. height: 166rpx;
  667. background: #FFFFFF;
  668. box-shadow: 0rpx -6rpx 12rpx 2rpx rgba(0, 0, 0, 0.09);
  669. border-radius: 32rpx 32rpx 0rpx 0rpx;
  670. bottom: 0;
  671. padding: 0 20rpx;
  672. z-index: 9999;
  673. &>button {
  674. width: 686rpx;
  675. height: 100rpx;
  676. background: #C8FF0C;
  677. border-radius: 60rpx;
  678. display: flex;
  679. align-items: center;
  680. justify-content: center;
  681. gap: 10rpx;
  682. &>button::after {
  683. border: none;
  684. }
  685. .btn-price {
  686. font-weight: 800;
  687. font-size: 48rpx;
  688. color: #222222;
  689. }
  690. .btn-text {
  691. font-weight: bold;
  692. font-size: 32rpx;
  693. color: #222222;
  694. }
  695. }
  696. .hover-style {
  697. color: #999999;
  698. }
  699. }
  700. }
  701. </style>