chooseCar.vue 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026
  1. <template>
  2. <view class="container">
  3. <!-- 信息区域 -->
  4. <view class="body">
  5. <!-- 车辆信息区域 -->
  6. <view class="carMsg">
  7. <view class="carMsg_time">{{info.s_date}} {{info.ci_time}}</view>
  8. <view class="carMsg_number">车牌:{{info.car_number}}</view>
  9. <view class="carMsg_volume">容量:{{info.contain}}座</view>
  10. <image class="carMsg_line" src="@/static/images/chooseCar/line.png" mode="aspectFill" />
  11. <!-- <view class="carMsg_start">{{getRouteParts(info.route_end).prefix}}</view> -->
  12. <view class="carMsg_start">
  13. <view :class="{ '': true, 'app': index2 > 0 }" v-for="(item2, index2) in getRouteParts(info.route_end)" :key="index2">{{item2}}</view>
  14. </view>
  15. <!-- <view class="carMsg_end">{{getRouteParts(info.route_end).suffix}}</view> -->
  16. <view class="carMsg_bottom">
  17. <view class="bottom_box" @click="handleRule">退改规则</view>
  18. </view>
  19. </view>
  20. <!-- 乘客信息区域 -->
  21. <view class="peopleMsg">
  22. <view class="peopleMsg_title">乘客信息</view>
  23. <view class="peopleMsg_list">
  24. <view v-for="(item,index) in selectedPassengers" :key="index" class="list_item active" @click="toggleCheck(item)">
  25. {{item.username}}
  26. <view class="item_active">
  27. <wd-icon name="check" color="#fff" size="8" />
  28. </view>
  29. </view>
  30. <view class="list_more" @click="handleMore">+ 更多</view>
  31. </view>
  32. <view class="peopleMsg_choose">
  33. <view v-for="(item,index) in selectedPassengers" :key="index" class="choose_item">
  34. <wd-icon name="minus-circle" color="#FF8205" size="22" @click="toggleCheck(item)" />
  35. <view class="item_msg">
  36. <view class="msg_top">{{item.username}}</view>
  37. <view class="msg_bottom">身份证 {{item.sfzh}}</view>
  38. </view>
  39. </view>
  40. </view>
  41. <view class="peopleMsg_foot">
  42. <view class="foot_left">
  43. <wd-icon name="phone" color="#FF8205" size="25" />
  44. <view class="left_text">手机号</view>
  45. </view>
  46. <view class="foot_phone">
  47. <input v-model="value" :maxlength="11" placeholder-style="font-size:28rpx;color:#ABA6A6;text-align: end;" type="text" placeholder="请填写联系手机号" />
  48. </view>
  49. </view>
  50. </view>
  51. <!-- 优惠券区域 -->
  52. <view class="coupon">
  53. <view class="coupon_title">优惠</view>
  54. <view class="coupon_box">
  55. <view class="box_left">
  56. <image class="left_img" src="@/static/images/chooseCar/coupon.png" mode="aspectFill" />
  57. 优惠券
  58. </view>
  59. <view class="box_right">
  60. 暂无优惠券
  61. <wd-icon name="chevron-right" color="#ABA6A6" size="18" />
  62. </view>
  63. </view>
  64. </view>
  65. </view>
  66. <!-- 底部按钮区域 -->
  67. <view class="foot">
  68. <view class="foot_box">
  69. <view class="box_text">
  70. ¥
  71. <text class="text">{{info.price}}</text>
  72. </view>
  73. <view class="box_btn" @click="handlePay">立即购买</view>
  74. </view>
  75. </view>
  76. </view>
  77. <!-- 退改规则弹窗区域 -->
  78. <wd-popup v-model="popShow_rule" position="bottom" safe-area-inset-bottom :close-on-click-modal="false">
  79. <view class="pop_rule">
  80. <view class="rule_title">退改规则</view>
  81. <view class="rule_body">
  82. <view class="body_text">
  83. <view class="text">发车前{{guizea1}}小时以上,免收手续费;</view>
  84. <view class="text">发车前{{guizea2}}小时以上{{guizea3}}小时以内,收取{{guizea4}}%手续费;</view>
  85. <view class="text">发车前{{guizea5}}小时以内,收取{{guizea6}}%手续费;</view>
  86. <view class="text">发车后不退票。</view>
  87. </view>
  88. <view class="body_btn" @click="handleCloseRule">我知道了</view>
  89. </view>
  90. </view>
  91. </wd-popup>
  92. <!-- 常用旅客弹窗区域 -->
  93. <wd-popup v-model="popShow_common" position="bottom" safe-area-inset-bottom :close-on-click-modal="false">
  94. <view class="pop_common">
  95. <view class="common_title">
  96. 常用旅客
  97. <view class="title_close" @click="handleCloseCommon">
  98. <wd-icon name="close" color="#ABA6A6" size="20" />
  99. </view>
  100. </view>
  101. <view class="common_body">
  102. <view class="body_add" @click="handleAdd">+ 添加乘客</view>
  103. <scroll-view
  104. scroll-y
  105. class="scroll-container"
  106. @scrolltolower="loadNextPage"
  107. >
  108. <view class="body_list">
  109. <!-- 每一个乘客区域 -->
  110. <view v-for="(item,index) in dataList" :key="index" class="list_item">
  111. <view class="item_left">
  112. <wd-icon name="edit-outline" color="#ABA6A6" size="17" @click="handleUp(item)" />
  113. <view class="left_msg">
  114. <view class="msg_name">{{item.username}}</view>
  115. <view class="msg_idcard">身份证 {{item.sfzh}}</view>
  116. <view class="msg_phone">手机号 {{item.mobile}}</view>
  117. </view>
  118. </view>
  119. <view class="item_right">
  120. <radio color="#FF8205" :checked="item.isCheck" @click="toggleCheck(item)" />
  121. </view>
  122. </view>
  123. </view>
  124. <!-- 加载状态提示 -->
  125. <view v-if="isLoading" class="loading">加载中...</view>
  126. </scroll-view>
  127. <view class="body_btn" @click="handleConfirm">确认</view>
  128. </view>
  129. </view>
  130. </wd-popup>
  131. <!-- 选择付款方式弹窗区域 -->
  132. <wd-popup v-model="popShow_pay" position="bottom" safe-area-inset-bottom :close-on-click-modal="false">
  133. <view class="pop_pay">
  134. <view class="pay_title">选择付款方式</view>
  135. <view class="pay_close" @click="handleClose">
  136. <wd-icon name="close-bold" color="#ABA6A6" size="22"></wd-icon>
  137. </view>
  138. <!-- 支付方式列表区域 -->
  139. <view class="pay_list">
  140. <!-- 每一个支付方式区域 -->
  141. <view class="list_item" v-for="(item, index) in payList" :key="index">
  142. <view class="item_left">
  143. <image class="img" :src="item.icon" mode="aspectFill"></image>
  144. {{ item.text }}
  145. </view>
  146. <view class="item_right">
  147. <radio style="scale: 0.8" color="#FF8205" :checked="item.isCheck" @click="togglePay(item)" />
  148. </view>
  149. </view>
  150. </view>
  151. <!-- 立即付款按钮区域 -->
  152. <view class="pay_btn" @click="payTime">立即付款</view>
  153. </view>
  154. </wd-popup>
  155. </template>
  156. <script setup>
  157. import { onLoad } from '@dcloudio/uni-app'
  158. import { ref,computed } from 'vue'
  159. import { myRequest } from '@/utils/api.ts'
  160. import debounce from 'lodash/debounce'
  161. const userInfo = uni.getStorageSync('carUserInfo')
  162. const popShow_rule = ref(false)
  163. const popShow_common = ref(false)
  164. const info = ref({})
  165. // 每页多少条
  166. const pageSize = ref(8)
  167. // 当前页
  168. const currentPage = ref(1)
  169. // 总条数
  170. const total = ref(0)
  171. // 常用旅客数组数据
  172. const dataList = ref([])
  173. //加载中状态
  174. const isLoading = ref(false)
  175. //是否还有更多数据
  176. const hasMore = ref(true)
  177. // 已选乘车人列表
  178. const selectedPassengers = ref([]);
  179. // 联系手机号
  180. const phoneValue = ref('');
  181. // 付款方式弹窗显示隐藏控制
  182. const popShow_pay = ref(false)
  183. // 支付方式列表
  184. const payList = ref([
  185. {
  186. text: '微信支付',
  187. icon: '/static/images/pay/wx.png',
  188. isCheck: false
  189. },
  190. {
  191. text: '电子交通卡支付',
  192. icon: '/static/images/pay/card.png',
  193. isCheck: false
  194. }
  195. ])
  196. // 选中的支付方式
  197. const selectedPay = ref(null);
  198. //退改规则
  199. const guizea1 = ref(0)
  200. const guizea2 = ref(0)
  201. const guizea3 = ref(0)
  202. const guizea4 = ref(0)
  203. const guizea5 = ref(0)
  204. const guizea6 = ref(0)
  205. // 存储支付参数
  206. const payParams = ref({
  207. timeStamp: '',
  208. nonceStr: '',
  209. signType: '',
  210. paySign: '',
  211. appId:'',
  212. // prepay_id:'',
  213. package:'',
  214. });
  215. // 截取箭头前后的文字
  216. const getRouteParts = (str) => {
  217. if (typeof str === 'string' && str.length > 0) {
  218. return str.split('→');
  219. }
  220. return [];
  221. };
  222. onLoad((options) => {
  223. if (options.info) {
  224. info.value = JSON.parse(decodeURIComponent(options.info))
  225. console.log(info.value)
  226. }
  227. })
  228. function handleRule() {
  229. popShow_rule.value = true
  230. getTuigai()
  231. }
  232. function handleCloseRule() {
  233. popShow_rule.value = false
  234. }
  235. //退改规则
  236. async function getTuigai() {
  237. const res = await myRequest({
  238. url: '/carBook/cnqueryHb.action',
  239. data: {
  240. }
  241. })
  242. if(res.code==200){
  243. guizea1.value=res.data.refundRule.a1.start
  244. guizea2.value=res.data.refundRule.a2.start
  245. guizea3.value=res.data.refundRule.a2.end
  246. guizea4.value=(res.data.refundRule.a2.fee)*100
  247. guizea5.value=res.data.refundRule.a3.end
  248. guizea6.value=(res.data.refundRule.a3.fee)*100
  249. }else{
  250. uni.showToast({
  251. title: res.message,
  252. icon: 'none'
  253. });
  254. }
  255. }
  256. function handleMore() {
  257. popShow_common.value = true
  258. getCommonData()
  259. }
  260. // 获取常用旅客列表数据
  261. const getCommonData = async () => {
  262. if (isLoading.value || !hasMore.value) return;
  263. isLoading.value = true;
  264. let data = {
  265. page: currentPage.value,
  266. rows: pageSize.value,
  267. mobile: userInfo.mobile?userInfo.mobile:''
  268. }
  269. try {
  270. const res = await myRequest({
  271. url: '/ctUserlist.action',
  272. data
  273. });
  274. if (res.code === 200) {
  275. // 对返回的每一条数据添加 isCheck: false
  276. const formattedRows = res.rows.map(item => ({
  277. ...item, // 保留原有数据
  278. isCheck: false // 新增 isCheck 参数,默认 false
  279. }));
  280. // 🔴 同步已勾选状态:对比 selectedPassengers,标记匹配项的 isCheck 为 true
  281. formattedRows.forEach(row => {
  282. const isSelected = selectedPassengers.value.some(p => p.id === row.id);
  283. if (isSelected) {
  284. row.isCheck = true;
  285. }
  286. });
  287. if (currentPage.value === 1) {
  288. dataList.value = formattedRows;
  289. } else {
  290. dataList.value.push(...formattedRows);
  291. }
  292. total.value = res.total
  293. } else {
  294. // 接口返回非200状态时的提示(可选)
  295. uni.showToast({ title: '数据获取失败', icon: 'none' });
  296. }
  297. } catch (err) {
  298. console.error('请求异常', err);
  299. uni.showToast({ title: '网络异常', icon: 'none' });
  300. } finally {
  301. isLoading.value = false; // 无论成功失败,都关闭加载状态
  302. }
  303. }
  304. // 乘客触底触发加载下一页
  305. function loadNextPage() {
  306. if (dataList.value.length < total.value) {
  307. currentPage.value++
  308. getCommonData()
  309. } else {
  310. uni.showToast({
  311. title: '没有更多数据了',
  312. icon: 'none'
  313. })
  314. }
  315. }
  316. // 勾选/取消勾选逻辑
  317. const toggleCheck = (item) => {
  318. item.isCheck = !item.isCheck;
  319. if (item.isCheck) {
  320. selectedPassengers.value.push(item);
  321. } else {
  322. selectedPassengers.value = selectedPassengers.value.filter(p => p.id !== item.id);
  323. }
  324. };
  325. function handleCloseCommon() {
  326. popShow_common.value = false
  327. }
  328. function handleConfirm() {
  329. popShow_common.value = false
  330. }
  331. function handleAdd() {
  332. uni.navigateTo({
  333. url: '/pages/handlePeople/handlePeople'
  334. })
  335. }
  336. function handleUp(item){
  337. let info = encodeURIComponent(JSON.stringify(item))
  338. uni.navigateTo({
  339. url: `/pages/handlePeople/handlePeople?info=${info}`
  340. })
  341. }
  342. // 点击支付按钮回调
  343. const handlePay = () => {
  344. popShow_pay.value = true
  345. }
  346. // 点击弹窗关闭按钮回调
  347. const handleClose = () => {
  348. popShow_pay.value = false
  349. }
  350. // 切换支付方式(单选逻辑)
  351. const togglePay = (item) => {
  352. // 先重置所有支付方式为未选中
  353. payList.value.forEach(pay => {
  354. pay.isCheck = false;
  355. });
  356. // 标记当前点击的支付方式为选中
  357. item.isCheck = true;
  358. selectedPay.value = item; // 同步选中的支付方式
  359. };
  360. //立即支付
  361. const payTime = () => {
  362. if (!selectedPay.value) {
  363. uni.showModal({
  364. content:'请选择支付方式'
  365. })
  366. return;
  367. }
  368. if(selectedPay.value.text=='微信支付'){
  369. payWei()
  370. }else if(selectedPay.value.text=='电子交通卡支付'){
  371. jiaotongka()
  372. }
  373. }
  374. //交通卡支付
  375. const jiaotongka = async () => {
  376. // 计算属性:判断是否为空
  377. const isPassengerEmpty = computed(() => selectedPassengers.value.length === 0);
  378. if (isPassengerEmpty.value) {
  379. uni.showToast({
  380. title: '请选择乘车人',
  381. icon: 'none'
  382. });
  383. return;
  384. }
  385. // 计算属性:将id拼接为逗号分隔的字符串
  386. const userListStr = computed(() => {
  387. return selectedPassengers.value.map(item => item.id).join(',');
  388. });
  389. const res = await myRequest({
  390. url: '/cardorder.action',
  391. method: 'POST', // 明确指定请求方法为POST
  392. data: {
  393. userId: userInfo.id,
  394. schedueId: info.value.id,
  395. userList: userListStr.value,
  396. payAmount: info.value.price,
  397. carNumber: info.value.car_number,
  398. contain: info.value.contain,
  399. ciDate: info.value.s_date,
  400. ciTime: info.value.ci_time,
  401. route: info.value.route,
  402. routeEnd: info.value.route_end,
  403. }
  404. })
  405. if(res.code==200){
  406. uni.showToast({
  407. title: res.message,
  408. icon: 'none'
  409. });
  410. }else{
  411. uni.showToast({
  412. title: res.message,
  413. icon: 'none'
  414. });
  415. }
  416. }
  417. //微信支付
  418. const payWei = async () => {
  419. // 计算属性:判断是否为空
  420. const isPassengerEmpty = computed(() => selectedPassengers.value.length === 0);
  421. if (isPassengerEmpty.value) {
  422. uni.showToast({
  423. title: '请选择乘车人',
  424. icon: 'none'
  425. });
  426. return;
  427. }
  428. // 计算属性:将id拼接为逗号分隔的字符串
  429. const userListStr = computed(() => {
  430. return selectedPassengers.value.map(item => item.id).join(',');
  431. });
  432. const res = await myRequest({
  433. url: '/tApporder_pay.action',
  434. method: 'POST', // 明确指定请求方法为POST
  435. data: {
  436. userId: userInfo.id,
  437. schedueId: info.value.id,
  438. userList: userListStr.value,
  439. payAmount: info.value.price,
  440. carNumber: info.value.car_number,
  441. contain: info.value.contain,
  442. ciDate: info.value.s_date,
  443. ciTime: info.value.ci_time,
  444. route: info.value.route,
  445. routeEnd: info.value.route_end,
  446. }
  447. })
  448. if(res.code==200){
  449. // payParams.value = res.data; // 存储微信支付所需参数
  450. payParams.value = {
  451. timeStamp: res.data.timeStamp,
  452. nonceStr: res.data.nonceStr,
  453. package: 'prepay_id=' + res.data.prepay_id,
  454. signType: res.data.signType,
  455. paySign: res.data.paySign,
  456. // prepay_id:res.data.prepay_id
  457. };
  458. invokeWechatPay(); // 调起支付
  459. }
  460. }
  461. // 调起微信支付
  462. const invokeWechatPay = () => {
  463. console.log(payParams.value,'支付')
  464. uni.requestPayment({
  465. ...payParams.value,
  466. success: (res) => {
  467. uni.showToast({ title: '支付成功' });
  468. setTimeout(function() {
  469. uni.switchTab({
  470. url:'/pages/order/order'
  471. })
  472. }, 1000)
  473. // 支付成功后逻辑(如跳转到订单详情)
  474. },
  475. fail: (err) => {
  476. uni.showToast({ title: '支付失败', icon: 'none' });
  477. console.error('支付失败', err);
  478. }
  479. });
  480. };
  481. </script>
  482. <style lang="scss" scoped>
  483. .container {
  484. display: flex;
  485. height: 100vh;
  486. color: #001713;
  487. .body {
  488. width: 100%;
  489. height: calc(100vh - 244rpx);
  490. overflow-y: auto;
  491. .carMsg {
  492. position: relative;
  493. box-sizing: border-box;
  494. padding: 0 55rpx;
  495. margin: 20rpx auto 0;
  496. width: 720rpx;
  497. height: 320rpx;
  498. font-size: 32rpx;
  499. color: #001713;
  500. background: url(@/static/images/chooseCar/box.png);
  501. background-size: 100% 100%;
  502. .carMsg_time {
  503. position: relative;
  504. top: 36rpx;
  505. font-size: 36rpx;
  506. color: #001713;
  507. }
  508. .carMsg_number {
  509. position: relative;
  510. top: -8rpx;
  511. left: 180px;
  512. font-size: 24rpx;
  513. color: #f86818;
  514. }
  515. .carMsg_volume {
  516. position: relative;
  517. top: 10rpx;
  518. left: 180px;
  519. font-size: 24rpx;
  520. color: #f86818;
  521. }
  522. .carMsg_line {
  523. position: relative;
  524. top: 2rpx;
  525. left: 1px;
  526. width: 14rpx;
  527. height: 88rpx;
  528. }
  529. .carMsg_start {
  530. position: relative;
  531. top: -110rpx;
  532. left: 15px;
  533. width: 460rpx;
  534. }
  535. .app{
  536. margin-top: 1px;
  537. }
  538. .carMsg_end {
  539. position: absolute;
  540. top: 185rpx;
  541. left: 95rpx;
  542. width: 460rpx;
  543. }
  544. .carMsg_bottom {
  545. position: relative;
  546. top: -100rpx;
  547. // left: 46rpx;
  548. display: flex;
  549. align-items: center;
  550. width: 630rpx;
  551. height: 66rpx;
  552. border-top: 2rpx dotted #e6e6e6;
  553. .bottom_box {
  554. display: flex;
  555. justify-content: center;
  556. align-items: center;
  557. width: 128rpx;
  558. height: 42rpx;
  559. font-size: 24rpx;
  560. color: #ff8205;
  561. border-radius: 8rpx;
  562. background-color: #fff2e5;
  563. }
  564. }
  565. }
  566. .peopleMsg {
  567. box-sizing: border-box;
  568. padding: 30rpx 30rpx 0;
  569. margin: auto;
  570. width: 670rpx;
  571. font-size: 28rpx;
  572. box-shadow: 0px 3px 6px #ccc;
  573. background-color: #fff;
  574. .peopleMsg_title {
  575. margin-bottom: 20rpx;
  576. font-size: 36rpx;
  577. }
  578. .peopleMsg_list {
  579. display: flex;
  580. flex-wrap: wrap;
  581. align-items: center;
  582. .list_item {
  583. position: relative;
  584. display: flex;
  585. justify-content: center;
  586. align-items: center;
  587. margin-right: 30rpx;
  588. margin-bottom: 26rpx;
  589. padding: 0 24rpx;
  590. height: 68rpx;
  591. color: #aba6a6;
  592. border-radius: 8rpx;
  593. border: 2rpx solid #aba6a6;
  594. .item_active {
  595. position: absolute;
  596. bottom: -20rpx;
  597. right: -20rpx;
  598. display: flex;
  599. align-items: center;
  600. justify-content: center;
  601. width: 60rpx;
  602. height: 60rpx;
  603. background-image: url(@/static/images/chooseCar/active.png);
  604. background-size: 100% 100%;
  605. }
  606. }
  607. .active {
  608. color: #ff8205;
  609. border: 2rpx solid #ff8205;
  610. }
  611. .list_more {
  612. display: flex;
  613. justify-content: center;
  614. align-items: center;
  615. margin-bottom: 26rpx;
  616. width: 132rpx;
  617. height: 68rpx;
  618. color: #ff8205;
  619. border-radius: 8rpx;
  620. border: 2rpx solid #aba6a6;
  621. }
  622. }
  623. .peopleMsg_choose {
  624. .choose_item {
  625. display: flex;
  626. align-items: center;
  627. .item_msg {
  628. display: flex;
  629. flex-direction: column;
  630. justify-content: space-between;
  631. margin-left: 26rpx;
  632. margin-bottom: 26rpx;
  633. height: 90rpx;
  634. .msg_top {
  635. font-size: 36rpx;
  636. }
  637. .msg_bottom {
  638. font-size: 24rpx;
  639. color: #aba6a6;
  640. }
  641. }
  642. }
  643. }
  644. .peopleMsg_foot {
  645. display: flex;
  646. align-items: center;
  647. justify-content: space-between;
  648. height: 116rpx;
  649. font-size: 36rpx;
  650. border-top: 2rpx solid #ebecf1;
  651. .foot_left {
  652. display: flex;
  653. align-items: center;
  654. .left_text {
  655. margin-left: 12rpx;
  656. }
  657. }
  658. .foot_phone {
  659. text-align: end;
  660. }
  661. }
  662. }
  663. .coupon {
  664. box-sizing: border-box;
  665. padding: 0 30rpx 30rpx;
  666. margin: 20rpx auto 50rpx;
  667. width: 670rpx;
  668. color: #001713;
  669. box-shadow: 0px 3px 6px #ccc;
  670. background-color: #fff;
  671. .coupon_title {
  672. height: 96rpx;
  673. line-height: 96rpx;
  674. font-size: 36rpx;
  675. }
  676. .coupon_box {
  677. display: flex;
  678. justify-content: space-between;
  679. align-items: center;
  680. height: 70rpx;
  681. .box_left {
  682. display: flex;
  683. align-items: center;
  684. .left_img {
  685. margin-right: 14rpx;
  686. width: 46rpx;
  687. height: 46rpx;
  688. }
  689. }
  690. .box_right {
  691. display: flex;
  692. align-items: center;
  693. font-size: 24rpx;
  694. color: #aba6a6;
  695. }
  696. }
  697. }
  698. }
  699. .foot {
  700. position: absolute;
  701. bottom: 0;
  702. box-sizing: border-box;
  703. padding: 0 30rpx;
  704. width: 100%;
  705. height: 244rpx;
  706. box-shadow: 0px -3px 6px #eee;
  707. background-color: #fff;
  708. .foot_box {
  709. display: flex;
  710. align-items: center;
  711. justify-content: space-between;
  712. margin-top: 46rpx;
  713. height: 96rpx;
  714. .box_text {
  715. color: #dc2626;
  716. font-size: 36rpx;
  717. .text {
  718. font-size: 48rpx;
  719. }
  720. }
  721. .box_btn {
  722. display: flex;
  723. align-items: center;
  724. justify-content: center;
  725. width: 272rpx;
  726. height: 96rpx;
  727. font-size: 36rpx;
  728. color: #fff;
  729. border-radius: 64rpx;
  730. background-color: #ff8205;
  731. }
  732. }
  733. }
  734. }
  735. .pop_rule {
  736. height: 568rpx;
  737. color: #001713;
  738. overflow: hidden;
  739. .rule_title {
  740. display: flex;
  741. align-items: center;
  742. justify-content: center;
  743. height: 114rpx;
  744. font-size: 36rpx;
  745. background-color: #fff2e5;
  746. }
  747. .rule_body {
  748. box-sizing: border-box;
  749. padding: 0 32rpx;
  750. .body_text {
  751. box-sizing: border-box;
  752. padding: 30rpx;
  753. margin-top: 20rpx;
  754. font-size: 24rpx;
  755. border-radius: 32rpx;
  756. background-color: #fff2e5;
  757. .text {
  758. margin-bottom: 8rpx;
  759. }
  760. }
  761. .body_btn {
  762. display: flex;
  763. align-items: center;
  764. justify-content: center;
  765. margin-top: 20rpx;
  766. height: 94rpx;
  767. font-size: 36rpx;
  768. color: #fff;
  769. border-radius: 64rpx;
  770. background-color: #ff8205;
  771. }
  772. }
  773. }
  774. .pop_common {
  775. height: 70vh;
  776. font-size: 36rpx;
  777. color: #001713;
  778. overflow: hidden;
  779. .common_title {
  780. position: relative;
  781. display: flex;
  782. align-items: center;
  783. justify-content: center;
  784. height: 100rpx;
  785. border-bottom: 20rpx solid #ff8205;
  786. .title_close {
  787. position: absolute;
  788. top: 34rpx;
  789. right: 40rpx;
  790. width: 40rpx;
  791. height: 40rpx;
  792. }
  793. }
  794. .common_body {
  795. box-sizing: border-box;
  796. padding: 0 32rpx;
  797. .body_add {
  798. margin: 25rpx 0 25rpx auto;
  799. width: 170rpx;
  800. font-size: 32rpx;
  801. color: #ff8205;
  802. }
  803. .body_list {
  804. height: calc(70vh - 396rpx);
  805. overflow-y: auto;
  806. .list_item {
  807. display: flex;
  808. align-items: center;
  809. justify-content: space-between;
  810. margin-bottom: 20rpx;
  811. height: 120rpx;
  812. .item_left {
  813. display: flex;
  814. align-items: center;
  815. height: 100%;
  816. .left_msg {
  817. display: flex;
  818. flex-direction: column;
  819. justify-content: space-between;
  820. margin-left: 20rpx;
  821. height: 100%;
  822. font-size: 24rpx;
  823. color: #aba6a6;
  824. .msg_name {
  825. font-size: 36rpx;
  826. color: #001713;
  827. }
  828. }
  829. }
  830. .item_right {
  831. }
  832. }
  833. }
  834. .scroll-container {
  835. height: calc(80vh - 396rpx - 92rpx); /* 根据实际布局计算 */
  836. }
  837. .loading, .no-more {
  838. text-align: center;
  839. padding: 5rpx 0;
  840. font-size: 22rpx;
  841. color: #999;
  842. }
  843. .body_btn {
  844. display: flex;
  845. align-items: center;
  846. justify-content: center;
  847. margin: 48rpx 0;
  848. width: 100%;
  849. height: 92rpx;
  850. color: #fff;
  851. border-radius: 48rpx;
  852. background-color: #ff8205;
  853. }
  854. }
  855. }
  856. // 选择付款方式弹窗
  857. .pop_pay {
  858. height: 566rpx;
  859. color: #001713;
  860. font-size: 28rpx;
  861. .pay_title {
  862. display: flex;
  863. align-items: center;
  864. justify-content: center;
  865. height: 80rpx;
  866. font-size: 32rpx;
  867. border-bottom: 18rpx solid #ff8205;
  868. }
  869. .pay_close {
  870. position: absolute;
  871. top: 24rpx;
  872. right: 42rpx;
  873. }
  874. .pay_list {
  875. box-sizing: border-box;
  876. padding: 55rpx 0;
  877. display: flex;
  878. flex-direction: column;
  879. justify-content: space-between;
  880. height: 265rpx;
  881. .list_item {
  882. display: flex;
  883. align-items: center;
  884. justify-content: space-between;
  885. box-sizing: border-box;
  886. padding: 0 32rpx 0 46rpx;
  887. .item_left {
  888. display: flex;
  889. align-items: center;
  890. .img {
  891. margin-right: 26rpx;
  892. width: 54rpx;
  893. height: 54rpx;
  894. }
  895. }
  896. .item_right {
  897. }
  898. }
  899. }
  900. .pay_btn {
  901. display: flex;
  902. align-items: center;
  903. justify-content: center;
  904. margin: auto;
  905. width: 720rpx;
  906. height: 94rpx;
  907. font-size: 36rpx;
  908. color: #fff;
  909. border-radius: 50rpx;
  910. background-color: #ff8205;
  911. }
  912. }
  913. </style>