chooseCar.vue 22 KB

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