goodsDetails.vue 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852
  1. <template>
  2. <view>
  3. <view>
  4. <up-card title="志愿者介绍" :head-style="{ height: '80rpx', padding: '20rpx',}">
  5. <template #body>
  6. <view class="card-container">
  7. <!-- 左侧图片 -->
  8. <image class="card-image" :src="listData.volunteerPicture" mode="aspectFill"></image>
  9. <!-- 中间信息(姓名/类别等) -->
  10. <view class="card-info">
  11. <view class="info-item">姓名:{{listData.name}}</view>
  12. <view class="info-item">服务项目:{{listData.projectName}}</view>
  13. <view v-if="serviceSubjectName != null" class="info-item">类别:{{ listData.projectTypeName }}
  14. </view>
  15. <view class="Telephone">服务时长:{{listData.businessDuration}}</view>
  16. <view class="Telephone">科目:{{listData.serviceSubjectName}}</view>
  17. <view class="Telephone">电话:{{listData.phonenumber}}</view>
  18. </view>
  19. <!-- 右上角评分 - 使用绝对定位 -->
  20. <view class="card-rating">4.5 评分</view>
  21. </view>
  22. </template>
  23. </up-card>
  24. <up-card title="技能介绍" :thumb="thumb" :head-style="{ height: '80rpx', padding: '20rpx',}">
  25. <template #body>
  26. {{listData.skillDescribe}}
  27. </template>
  28. </up-card>
  29. <up-card title="证书" :thumb="thumb" :head-style="{ height: '80rpx', padding: '20rpx',}">
  30. <template #body>
  31. <view class="certificate">
  32. <image v-for="item in certificationPictures" :key="item" :src="item" mode=""
  33. style="width: 100%;" class="certificate-img"></image>
  34. </view>
  35. </template>
  36. </up-card>
  37. <!-- 固定底部按钮区 -->
  38. <view class="Wrap-btn">
  39. <uni-goods-nav :fill="true" :options="options" :buttonGroup="buttonGroup" @click="onClick"
  40. @buttonClick="buttonClick" />
  41. </view>
  42. </view>
  43. <!-- 底部第一层弹框 -->
  44. <view>
  45. <up-popup :show="show" @close="close" @open="open">
  46. </up-popup>
  47. <up-popup v-model:show="show" @open="upPopupOpen">
  48. <view>
  49. <view class="Wrapper">
  50. <image src="/static/img/Location.png" class="Wrapper-img" />
  51. <span class="Wrapper-content">李四</span>
  52. <span class="Wrapper-content">重庆永川区</span>
  53. </view>
  54. <span style="margin-left: 15rpx; margin-top: 50rpx;">重庆永川区</span>
  55. </view>
  56. <up-divider></up-divider>
  57. <view class="Wrap-content1">
  58. <up-avatar :src="src"></up-avatar>
  59. <text style="margin-top: 15rpx;">¥{{listData.businessPrice}}</text>
  60. </view>
  61. <view class="Wrap-info">
  62. <text style="margin-left: 10rpx;">服务类别:</text>
  63. <up-text type="info" text="家庭教育"></up-text>
  64. </view>
  65. <view class="Wrap-content3">
  66. <text style="margin-left: 15rpx;">服务周期:</text>
  67. <view style="margin-top: 25rpx;">
  68. <uniDatetimePickerMy :modelValue="doorToDoorTime" :start="startDisabled" :end="endDisabled"
  69. type="daterange"></uniDatetimePickerMy>
  70. </view>
  71. <view>
  72. <its-calendar :businessDuration="listData.businessDuration" :timeArr="doorToDoorTimeArr" :timeHostArr="timeHostArr" @getByDate="getByDate"
  73. @getByTime="getByTime"></its-calendar>
  74. </view>
  75. </view>
  76. <view class="Wrap-content6">
  77. <text style="margin-left: 15rpx;">备注:</text>
  78. <up-input placeholder="请输入内容" border="surround" v-model="remark" @change="change"></up-input>
  79. </view>
  80. <view class="Wrap-detils-btn">
  81. <up-button type="primary" shape="circle" :customStyle="wrapqx" @click="handlCancel">取消</up-button>
  82. <up-button type="error" shape="circle" :customStyle="wrapqx" @click="handleBuy">
  83. 预约¥{{ computeMoney }}
  84. </up-button>
  85. </view>
  86. </up-popup>
  87. </view>
  88. <!-- 第二个弹框-->
  89. <up-popup v-model:show="showSecond">
  90. <view>
  91. <up-cell-group>
  92. <view @click="jumpToAddressSelect" style="display: flex; align-items: center; padding: 10px;">
  93. <up-icon name="more-dot-fill" size="16" />
  94. <view v-if="selectedAddress" style="margin-left: 8px; flex: 1;">
  95. <view class="address-display">
  96. <text class="address-line">
  97. {{ selectedAddress.provinceName }}{{ selectedAddress.cityName }}{{ selectedAddress.districtName }}
  98. </text>
  99. <view class="contact-info">
  100. <text class="contact-name">{{ selectedAddress.name }}</text>
  101. <text class="contact-phone">{{ selectedAddress.telephone }}</text>
  102. </view>
  103. </view>
  104. </view>
  105. <text v-else style="margin-left: 8px; font-size: 14px;">请选择服务地址</text>
  106. </view>
  107. <view class="card-container" v-for="(item, index) in computeClickTime" :key="index">
  108. <image class="card-image" :src="listData.volunteerPicture" mode="aspectFill"></image>
  109. <view class="card-content"> <!-- Content container -->
  110. <view class="info-item">服务项目:{{listData.projectName}}</view>
  111. <view class="Telephone">服务时长:{{listData.businessDuration}}</view>
  112. <view class="date">日期:{{item.date}}</view>
  113. <view class="time">
  114. 时间:
  115. <span v-for="(i,ind) in item.timeArr" :key="ind">
  116. {{i}} &nbsp;&nbsp;&nbsp;
  117. </span>
  118. </view>
  119. </view>
  120. </view>
  121. </up-cell-group>
  122. </view>
  123. <view class="Wrap-Payment">
  124. <!-- 支付金额 -->
  125. <view class="payment-header">
  126. <text class="payment-title">现在支付</text>
  127. <text class="payment-amount">¥{{ computeMoney }}</text>
  128. </view>
  129. <up-line></up-line>
  130. <!-- 钱包支付选项 -->
  131. <view class="payment-option">
  132. <view class="option-left">
  133. <image src="/static/my/钱包.png" class="payment-icon"></image>
  134. <text class="option-text">钱包</text>
  135. </view>
  136. <up-radio-group v-model="radiovalue1" placement="column">
  137. <up-radio :customStyle="{marginLeft: 'auto'}" v-for="(item, index) in radiolist1" :key="index"
  138. :label="item.name" :name="item.name"></up-radio>
  139. </up-radio-group>
  140. </view>
  141. <up-line></up-line>
  142. <!-- 微信支付选项 -->
  143. <view class="payment-option">
  144. <view class="option-left">
  145. <image src="/static/微信支付.png" class="payment-icon"></image>
  146. <text class="option-text">微信支付</text>
  147. </view>
  148. <up-radio :customStyle="{marginLeft: 'auto'}" v-for="(item, index) in radiolist2" :key="index"
  149. :label="item.name" :name="item.name"></up-radio>
  150. </view>
  151. <up-line></up-line>
  152. <!-- 其他支付方式 -->
  153. <view class="other-payment">
  154. 其他方式支付 >
  155. </view>
  156. <!-- 条款说明 -->
  157. <view class="terms-of-service">
  158. 我同意购买守则,取消政策和退款政策,我也同意支付以下所示的总金额(含服务费)。
  159. </view>
  160. </view>
  161. <view class="Wrap-detils-btn">
  162. <up-button type="primary" shape="circle" :customStyle="wrapqx" @click="closeSecond">取消</up-button>
  163. <up-button type="error" shape="circle" :customStyle="wrapqx" @click="handlConfiRmpurchase">
  164. 购买¥{{ computeMoney }}
  165. </up-button>
  166. </view>
  167. </up-popup>
  168. <view v-if="addressFlag" class="box">
  169. <addressComponent :modelValue="addressFlag" @update:modelValue="val => addressFlag = val"
  170. :addressInfo="addressInfo" @update:addressInfo="handleAddressUpdate"></addressComponent>
  171. </view>
  172. </view>
  173. </template>
  174. <script setup>
  175. import {
  176. onLoad
  177. } from '@dcloudio/uni-app'
  178. import {
  179. onMounted,
  180. ref,
  181. nextTick,
  182. reactive,
  183. computed,
  184. } from "vue";
  185. import {
  186. getDetailsvolunteerId,
  187. volunteerwork,
  188. volunteergetTimesByDate,
  189. ordersCreateOrder
  190. } from "@/api/volunteerDetailsApi/details.js"
  191. import itsCalendar from '@/components/its-calendar/its-calendar.vue';
  192. import uniDatetimePickerMy from "@/uni_modules/lic-uni-datetime-picker/components/lic-uni-datetime-picker/lic-uni-datetime-picker.vue"
  193. import addressComponent from "@/pages_home/components/volunteerSide/adresss.vue"
  194. const src = ref('http://pic2.sc.chinaz.com/Files/pic/pic9/202002/hpic2119_s.jpg')
  195. const businessPrice = ref() //价格
  196. const addressId = ref('')//用户下单地址
  197. const volunteerId = ref(''); // 存储志愿者ID
  198. const serviceCategory = ref('') //存储大类别
  199. const businessManagementId = ref('') //具体分类id
  200. const doorToDoorTimeArr = ref([]) // 完整时间范围
  201. const doorToDoorTime = ref([]) // 只具备开始、结束 时间
  202. const timeHostArr = ref([]) // 时间段数组
  203. const currentDate = ref([]) // 点击过的年月日数组数据
  204. const currentTime = ref('') // 最后一次点击时间的时间节点
  205. const selectedTimes = ref([]) // 存储所有选择的时间对象
  206. const totalTimes = ref(0) // 时间点 点击的次数
  207. const startDisabled = ref('')
  208. const endDisabled = ref('')
  209. const time = ref('')
  210. const listData = ref({})
  211. const show = ref(false); //第一层弹框
  212. const showSecond = ref(false) //第二层弹框
  213. const showThird = ref(false) //第二层弹框
  214. const showSum = ref(false);
  215. const remark = ref('') //备注
  216. const radiovalue1 = ref('苹果');
  217. const selectedAddress = ref(null);
  218. const addressFlag = ref(false)
  219. const addressInfo = ref(null)
  220. // Radio 单选框数据
  221. const radiolist1 = reactive([{
  222. name: '',
  223. disabled: false,
  224. }, ]);
  225. // 详情底部立即购买弹框
  226. const buttonClick = (e) => {
  227. show.value = true; // 打开弹框
  228. };
  229. // 详情页第一层弹框
  230. function open() {
  231. show.value = true;
  232. }
  233. // 第一层弹框取消
  234. function close() {
  235. // 关闭逻辑,设置 show 为 false
  236. show.value = false;
  237. }
  238. // 第一个弹框逻辑
  239. const handleBuy = () => {
  240. show.value = false; // 关闭第一个弹框
  241. showSecond.value = true; // 打开第二个弹框
  242. };
  243. // 第二层弹框取消
  244. function closeSecond() {
  245. // 关闭逻辑,设置 show 为 false
  246. showSecond.value = false;
  247. show.value = true; // 打开第一个弹框
  248. }
  249. const handlCancel = () => {
  250. show.value = false; // 关闭第一个弹框
  251. selectedTimes.value = []; // 清空已选时间
  252. totalTimes.value = 0; // 重置点击次数
  253. }
  254. const jumpToAddressSelect = () => {
  255. addressFlag.value = true;
  256. };
  257. // 新增:处理子组件传回的地址数据
  258. const handleAddressUpdate = (newAddress) => {
  259. console.log(newAddress,'接受到的数据')
  260. selectedAddress.value = newAddress;
  261. addressFlag.value = false; // 关闭选择器
  262. };
  263. // 详情底部底部数据
  264. const options = ref([{
  265. icon: 'headphones',
  266. text: '客服'
  267. },
  268. {
  269. icon: 'shop',
  270. text: '收藏',
  271. },
  272. ]);
  273. // 详情底部立即购买样式
  274. const buttonGroup = ref([{
  275. text: '立即购买',
  276. backgroundColor: 'red',
  277. color: '#fff'
  278. }]);
  279. // 底部帮助客服方法
  280. const onClick = (e) => {
  281. uni.showToast({
  282. title: `点击${e.content.text}`,
  283. icon: 'none'
  284. });
  285. };
  286. // 修改详情页底部样式
  287. const customStyle = {
  288. height: '70rpx',
  289. paddingLeft: '30rpx',
  290. width: '540rpx'
  291. }
  292. const wrapqx = {
  293. // height: '70rpx',
  294. width: '240rpx',
  295. }
  296. // 获取传递的参数
  297. onLoad(async (options) => {
  298. const params = JSON.parse(options.params);
  299. const {
  300. volunteerId: id,
  301. serviceCategory: categoy,
  302. businessManagementId: manage
  303. } = params
  304. volunteerId.value = id;
  305. serviceCategory.value = categoy;
  306. businessManagementId.value = manage;
  307. const res = await getDetailsvolunteerId({
  308. volunteerId: id,
  309. serviceCategory: categoy,
  310. businessManagementId: manage,
  311. });
  312. listData.value = res.data || {};
  313. businessPrice.value = listData.value.businessPrice || 0;
  314. });
  315. // 选择日期
  316. const getListTime = async () => {
  317. const params = {
  318. volunteerId: Number(volunteerId.value),
  319. };
  320. const res = await volunteerwork(params);
  321. if (res.data && res.data.length > 0) {
  322. doorToDoorTimeArr.value = res.data;
  323. const newRes = [res.data[0], res.data[res.data.length - 1]];
  324. doorToDoorTime.value = newRes;
  325. startDisabled.value = doorToDoorTime.value[0];
  326. endDisabled.value = doorToDoorTime.value[1];
  327. // 默认加载第一个日期的排班时间
  328. getByDate(res.data[0]);
  329. } else {
  330. console.error('接口返回的日期范围为空');
  331. doorToDoorTimeArr.value = [];
  332. timeHostArr.value = []; // 清空时间段
  333. }
  334. };
  335. // 获取志愿者排班时间
  336. const getByDate = async (date = doorToDoorTimeArr.value[0]) => {
  337. // 检查日期是否为空
  338. if (!date) {
  339. console.error('日期为空,跳过获取排班时间');
  340. return;
  341. }
  342. if (!volunteerId.value) {
  343. console.error('volunteerId 为空');
  344. return;
  345. }
  346. const params = {
  347. volunteerId: volunteerId.value,
  348. date,
  349. };
  350. try {
  351. const res = await volunteergetTimesByDate(params);
  352. const TArr = res.data.map((item) => ({
  353. ...item,
  354. hours: item.reservationTime,
  355. timeStamp: new Date(`${date} ${item.reservationTime}`).getTime() / 1000,
  356. }));
  357. // 如果 doorToDoorTimeArr.value 为空,直接返回
  358. if (!doorToDoorTimeArr.value.length) {
  359. console.error('可选的日期范围为空');
  360. return;
  361. }
  362. // 填充时间段数组
  363. timeHostArr.value = Array(doorToDoorTimeArr.value.length).fill(TArr);
  364. } catch (error) {
  365. console.error('获取排班时间失败:', error);
  366. }
  367. };
  368. const getByTime = (timeObj) => {
  369. if (timeObj.clicked) {
  370. console.log('>>>>>> 已经点击过此时间');
  371. return;
  372. }
  373. // 标记为已点击
  374. timeObj.clicked = true;
  375. // 添加到已选时间数组
  376. selectedTimes.value.push({
  377. date: timeObj.yearToDate,
  378. time: timeObj.hours,
  379. timestamp: timeObj.timeStamp
  380. });
  381. totalTimes.value = selectedTimes.value.length; // 更新点击次数
  382. console.log(selectedTimes.value, '>>>>>selectedTimes.value');
  383. }
  384. // 立即购买显示时执行
  385. const upPopupOpen = () => { //显示时初始化预存储信息数据
  386. selectedTimes.value = [];
  387. totalTimes.value = 0;
  388. currentTime.value = '';
  389. currentDate.value = [];
  390. }
  391. const computeMoney = computed(() => {
  392. return totalTimes.value * businessPrice.value
  393. })
  394. const computeClickTime = computed(() => {
  395. let timeArr = []
  396. let nyr = selectedTimes.value.map(item => {
  397. return item.date
  398. })
  399. let nyrSet = Array.from(new Set(nyr)).map(item => {
  400. return {
  401. date: item,
  402. timeArr: []
  403. }
  404. })
  405. selectedTimes.value.forEach(item => {
  406. nyrSet.forEach(i => {
  407. if (item.date == i.date) i.timeArr.push(item.time)
  408. })
  409. })
  410. console.log(nyrSet, '>>>>>nyrSet');
  411. return nyrSet
  412. })
  413. const certificationPictures = computed(() => {
  414. if (listData.value.certificationPicture) {
  415. return listData.value.certificationPicture.split(',')
  416. }
  417. return []
  418. })
  419. // 确认购买
  420. const handlConfiRmpurchase = () => {
  421. if (!selectedAddress.value) {
  422. uni.showToast({
  423. title: '请先选择收货地址',
  424. icon: 'none',
  425. duration: 2000,
  426. });
  427. return; // 阻止购买
  428. }
  429. // 如果有地址,执行购买逻辑
  430. proceedToPayment();
  431. };
  432. const proceedToPayment = async () => {
  433. // 定义要发送的数据
  434. const orderData = {
  435. orders: {
  436. serviceOnePrice: businessPrice.value,
  437. serviceTotalPrice: computeMoney.value, //需要传获取到的总价
  438. serviceCategory: serviceCategory.value, //大类别参数
  439. totalTimes: totalTimes.value, //点击的次数
  440. serviceStartDate: "2025-04-18",
  441. startTime: "8:00",
  442. serviceDuration: 4,
  443. paymentMethod: 1,
  444. volunteerId: volunteerId.value,
  445. remark: remark.value,
  446. businessManagementId: businessManagementId.value,
  447. volunteerInfoId: listData.value.volunteerInfoId,
  448. addressId:selectedAddress.value.addressId,
  449. },
  450. workDateList: []
  451. };
  452. // 转换所有选择的时间
  453. selectedTimes.value.forEach(item => {
  454. orderData.workDateList.push({
  455. workDate: item.date,
  456. workStartTime: item.time
  457. });
  458. });
  459. try {
  460. const res = await ordersCreateOrder(orderData);
  461. if (res.code == 200) {
  462. uni.showToast({
  463. title: '支付成功',
  464. icon: 'success', // 或者 'none'
  465. duration: 1500, // 显示时间,单位毫秒,默认1500
  466. mask: true, // 是否显示透明蒙层,防止触摸穿透,默认false
  467. });
  468. setTimeout(() => {
  469. uni.reLaunch({
  470. url: '/pages/index'
  471. });
  472. }, 1500)
  473. }
  474. } catch (error) {
  475. uni.showToast({
  476. title: '支付失败',
  477. icon: 'error', // 或者 'none'
  478. duration: 1500, // 显示时间,单位毫秒,默认1500
  479. mask: true, // 是否显示透明蒙层,防止触摸穿透,默认false
  480. });
  481. }
  482. };
  483. onMounted(async () => {
  484. await getListTime()
  485. })
  486. </script>
  487. <style scoped>
  488. .box {
  489. height: 100vh;
  490. width: 100vw;
  491. position: fixed;
  492. top: 0;
  493. left: 0;
  494. z-index: 999999;
  495. background: red;
  496. }
  497. .card-container {
  498. display: flex;
  499. position: relative;
  500. padding: 20rpx;
  501. align-items: flex-start;
  502. background-color: #fff;
  503. border-radius: 12rpx;
  504. }
  505. /* 左侧图片 */
  506. .card-image {
  507. width: 240rpx;
  508. height: 340rpx;
  509. border-radius: 12rpx;
  510. margin-right: 30rpx;
  511. flex-shrink: 0;
  512. }
  513. /* 中间信息区域 */
  514. .card-info {
  515. flex: 1;
  516. padding-right: 100rpx;
  517. }
  518. .Telephone {
  519. white-space: nowrap;
  520. margin-bottom: 24rpx;
  521. font-size: 28rpx;
  522. line-height: 1.6;
  523. color: #333;
  524. }
  525. .info-item {
  526. margin-bottom: 24rpx;
  527. font-size: 28rpx;
  528. line-height: 1.6;
  529. color: #333;
  530. }
  531. /* 右上角评分 */
  532. .card-rating {
  533. position: absolute;
  534. top: 20rpx;
  535. right: 20rpx;
  536. background-color: #f8f8f8;
  537. padding: 6rpx 16rpx;
  538. border-radius: 20rpx;
  539. font-size: 24rpx;
  540. color: #ff9900;
  541. font-weight: bold;
  542. }
  543. /* 固定在页面底部 */
  544. .Wrap-btn {
  545. /* display: flex; */
  546. /* justify-content: flex-end; */
  547. /* align-items: center; */
  548. position: fixed;
  549. bottom: 0;
  550. width: 100%;
  551. background-color: white;
  552. padding: 40rpx 20rpx;
  553. box-shadow: -2rpx 5rpx rgba(0, 0, 0, 0.1);
  554. }
  555. .Wrapper {
  556. display: flex;
  557. align-items: center;
  558. gap: 10rpx;
  559. margin-top: 10rpx;
  560. }
  561. .Wrapper-img {
  562. width: 50rpx;
  563. height: 50rpx;
  564. margin-left: 10rpx;
  565. }
  566. .Wrapper-content {
  567. color: rgba(16, 16, 16, 1);
  568. font-size: 25rpx;
  569. font-family: PingFangSC-regular;
  570. line-height: 20rpx;
  571. }
  572. .Wrap-content1 {
  573. display: flex;
  574. justify-content: flex-start;
  575. margin-left: 10rpx;
  576. margin-top: 10rpx;
  577. }
  578. .Wrap-info {
  579. display: flex;
  580. justify-content: flex-start;
  581. margin-left: 10rpx;
  582. margin-top: 25rpx;
  583. }
  584. .Wrap-content3 {
  585. margin-top: 25rpx;
  586. }
  587. .Wrap-content4 {
  588. margin-top: 25rpx;
  589. }
  590. .Wrap-content5 {
  591. display: flex;
  592. justify-content: flex-start;
  593. margin-left: 10rpx;
  594. margin-top: 25rpx;
  595. }
  596. .Wrap-content6 {
  597. margin-top: 25rpx;
  598. }
  599. .Wrap-detils-btn {
  600. display: flex;
  601. justify-content: flex-end;
  602. align-items: center;
  603. margin-top: 25rpx;
  604. /* position: fixed;
  605. bottom: 0;
  606. width: 100%;
  607. background-color: white;
  608. padding: 40rpx 20rpx;
  609. box-shadow: -2rpx 5rpx rgba(0, 0, 0, 0.1); */
  610. }
  611. .Wrap-Payment {
  612. padding: 30rpx;
  613. background-color: #fff;
  614. }
  615. .payment-header {
  616. display: flex;
  617. justify-content: space-between;
  618. align-items: center;
  619. padding: 20rpx 0;
  620. }
  621. .payment-title {
  622. font-size: 32rpx;
  623. font-weight: bold;
  624. }
  625. .payment-amount {
  626. font-size: 36rpx;
  627. color: #ff4d4f;
  628. font-weight: bold;
  629. }
  630. .payment-option {
  631. display: flex;
  632. justify-content: space-between;
  633. align-items: center;
  634. padding: 30rpx 0;
  635. }
  636. .option-left {
  637. display: flex;
  638. align-items: center;
  639. }
  640. .payment-icon {
  641. width: 80rpx;
  642. height: 80rpx;
  643. margin-right: 20rpx;
  644. }
  645. .option-text {
  646. font-size: 30rpx;
  647. font-weight: bold;
  648. }
  649. .other-payment {
  650. padding: 30rpx 0;
  651. color: #1890ff;
  652. font-size: 28rpx;
  653. }
  654. .terms-of-service {
  655. padding: 30rpx 0;
  656. font-size: 24rpx;
  657. color: #999;
  658. line-height: 1.5;
  659. }
  660. .confirm-button {
  661. margin-top: 40rpx;
  662. }
  663. .certificate {
  664. display: flex;
  665. flex-direction: column;
  666. }
  667. .certificate-img {
  668. margin-bottom: 24rpx;
  669. }
  670. /* 第二层弹框 */
  671. .card-container {
  672. display: flex;
  673. flex-direction: row;
  674. align-items: flex-start;
  675. padding: 10px;
  676. }
  677. .card-image {
  678. width: 100px;
  679. /* Adjust as needed */
  680. height: 100px;
  681. /* Adjust as needed */
  682. border-radius: 8px;
  683. margin-right: 15px;
  684. object-fit: cover;
  685. }
  686. .card-content {
  687. flex: 1;
  688. display: flex;
  689. flex-direction: column;
  690. }
  691. .info-item,
  692. .Telephone,
  693. .date,
  694. .time {
  695. margin-bottom: 5px;
  696. font-size: 14px;
  697. color: #333;
  698. }
  699. .time span {
  700. margin-right: 8px;
  701. }
  702. .address-line {
  703. font-size: 14px;
  704. line-height: 20rpx;
  705. /* 行高20rpx */
  706. color: #333;
  707. /* 深色文字 */
  708. display: block;
  709. /* 确保独占一行 */
  710. margin-bottom: 30rpx;
  711. /* 下边距30rpx */
  712. }
  713. /* 联系人信息容器 */
  714. .contact-info {
  715. display: flex;
  716. gap: 20rpx;
  717. /* 姓名和电话之间的间距 */
  718. }
  719. /* 姓名样式 */
  720. .contact-name {
  721. font-size: 12px;
  722. color: #999;
  723. /* 灰色文字 */
  724. line-height: 20rpx;
  725. }
  726. /* 电话样式 */
  727. .contact-phone {
  728. font-size: 12px;
  729. color: #999;
  730. /* 灰色文字 */
  731. line-height: 20rpx;
  732. }
  733. </style>