goodsDetails.vue 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831
  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 volunteerId = ref(''); // 存储志愿者ID
  197. const serviceCategory = ref('') //存储大类别
  198. const businessManagementId = ref('') //具体分类id
  199. const doorToDoorTimeArr = ref([]) // 完整时间范围
  200. const doorToDoorTime = ref([]) // 只具备开始、结束 时间
  201. const timeHostArr = ref([]) // 时间段数组
  202. const currentDate = ref([]) // 点击过的年月日数组数据
  203. const currentTime = ref('') // 最后一次点击时间的时间节点
  204. const selectedTimes = ref([]) // 存储所有选择的时间对象
  205. const totalTimes = ref(0) // 时间点 点击的次数
  206. const startDisabled = ref('')
  207. const endDisabled = ref('')
  208. const time = ref('')
  209. const listData = ref({})
  210. const show = ref(false); //第一层弹框
  211. const showSecond = ref(false) //第二层弹框
  212. const showThird = ref(false) //第二层弹框
  213. const showSum = ref(false);
  214. const remark = ref('') //备注
  215. const radiovalue1 = ref('苹果');
  216. // Radio 单选框数据
  217. const radiolist1 = reactive([{
  218. name: '',
  219. disabled: false,
  220. }, ]);
  221. const selectedAddress = ref(null);
  222. const addressFlag = ref(false)
  223. const addressInfo = ref(null)
  224. // 详情底部立即购买弹框
  225. const buttonClick = (e) => {
  226. show.value = true; // 打开弹框
  227. };
  228. // 详情页第一层弹框
  229. function open() {
  230. show.value = true;
  231. }
  232. // 第一层弹框取消
  233. function close() {
  234. // 关闭逻辑,设置 show 为 false
  235. show.value = false;
  236. }
  237. // 第一个弹框逻辑
  238. const handleBuy = () => {
  239. show.value = false; // 关闭第一个弹框
  240. showSecond.value = true; // 打开第二个弹框
  241. };
  242. // 第二层弹框取消
  243. function closeSecond() {
  244. // 关闭逻辑,设置 show 为 false
  245. showSecond.value = false;
  246. show.value = true; // 打开第一个弹框
  247. }
  248. const handlCancel = () => {
  249. show.value = false; // 关闭第一个弹框
  250. selectedTimes.value = []; // 清空已选时间
  251. totalTimes.value = 0; // 重置点击次数
  252. }
  253. const jumpToAddressSelect = () => {
  254. addressFlag.value = true;
  255. };
  256. // 新增:处理子组件传回的地址数据
  257. const handleAddressUpdate = (newAddress) => {
  258. selectedAddress.value = newAddress;
  259. addressFlag.value = false; // 关闭选择器
  260. console.log('selectedAddress更新后:', JSON.stringify(selectedAddress.value)); // 添加这行
  261. };
  262. // 详情底部底部数据
  263. const options = ref([{
  264. icon: 'headphones',
  265. text: '客服'
  266. },
  267. {
  268. icon: 'shop',
  269. text: '收藏',
  270. },
  271. ]);
  272. // 详情底部立即购买样式
  273. const buttonGroup = ref([{
  274. text: '立即购买',
  275. backgroundColor: 'red',
  276. color: '#fff'
  277. }]);
  278. // 底部帮助客服方法
  279. const onClick = (e) => {
  280. uni.showToast({
  281. title: `点击${e.content.text}`,
  282. icon: 'none'
  283. });
  284. };
  285. // 修改详情页底部样式
  286. const customStyle = {
  287. height: '70rpx',
  288. paddingLeft: '30rpx',
  289. width: '540rpx'
  290. }
  291. const wrapqx = {
  292. // height: '70rpx',
  293. width: '240rpx',
  294. }
  295. // 获取传递的参数
  296. onLoad(async (options) => {
  297. const params = JSON.parse(options.params);
  298. const {
  299. volunteerId: id,
  300. serviceCategory: categoy,
  301. businessManagementId: manage
  302. } = params
  303. volunteerId.value = id;
  304. serviceCategory.value = categoy;
  305. businessManagementId.value = manage;
  306. const res = await getDetailsvolunteerId({
  307. volunteerId: id,
  308. serviceCategory: categoy,
  309. businessManagementId: manage,
  310. });
  311. listData.value = res.data || {};
  312. businessPrice.value = listData.value.businessPrice || 0;
  313. });
  314. // 选择日期
  315. const getListTime = async () => {
  316. const params = {
  317. volunteerId: Number(volunteerId.value),
  318. };
  319. const res = await volunteerwork(params);
  320. if (res.data && res.data.length > 0) {
  321. doorToDoorTimeArr.value = res.data;
  322. const newRes = [res.data[0], res.data[res.data.length - 1]];
  323. doorToDoorTime.value = newRes;
  324. startDisabled.value = doorToDoorTime.value[0];
  325. endDisabled.value = doorToDoorTime.value[1];
  326. // 默认加载第一个日期的排班时间
  327. getByDate(res.data[0]);
  328. } else {
  329. console.error('接口返回的日期范围为空');
  330. doorToDoorTimeArr.value = [];
  331. timeHostArr.value = []; // 清空时间段
  332. }
  333. };
  334. // 获取志愿者排班时间
  335. const getByDate = async (date = doorToDoorTimeArr.value[0]) => {
  336. // 检查日期是否为空
  337. if (!date) {
  338. console.error('日期为空,跳过获取排班时间');
  339. return;
  340. }
  341. if (!volunteerId.value) {
  342. console.error('volunteerId 为空');
  343. return;
  344. }
  345. const params = {
  346. volunteerId: volunteerId.value,
  347. date,
  348. };
  349. try {
  350. const res = await volunteergetTimesByDate(params);
  351. const TArr = res.data.map((item) => ({
  352. ...item,
  353. hours: item.reservationTime,
  354. timeStamp: new Date(`${date} ${item.reservationTime}`).getTime() / 1000,
  355. }));
  356. // 如果 doorToDoorTimeArr.value 为空,直接返回
  357. if (!doorToDoorTimeArr.value.length) {
  358. console.error('可选的日期范围为空');
  359. return;
  360. }
  361. // 填充时间段数组
  362. timeHostArr.value = Array(doorToDoorTimeArr.value.length).fill(TArr);
  363. } catch (error) {
  364. console.error('获取排班时间失败:', error);
  365. }
  366. };
  367. const getByTime = (timeObj) => {
  368. if (timeObj.clicked) {
  369. console.log('>>>>>> 已经点击过此时间');
  370. return;
  371. }
  372. // 标记为已点击
  373. timeObj.clicked = true;
  374. // 添加到已选时间数组
  375. selectedTimes.value.push({
  376. date: timeObj.yearToDate,
  377. time: timeObj.hours,
  378. timestamp: timeObj.timeStamp
  379. });
  380. totalTimes.value = selectedTimes.value.length; // 更新点击次数
  381. console.log(selectedTimes.value, '>>>>>selectedTimes.value');
  382. }
  383. // 立即购买显示时执行
  384. const upPopupOpen = () => { //显示时初始化预存储信息数据
  385. selectedTimes.value = [];
  386. totalTimes.value = 0;
  387. currentTime.value = '';
  388. currentDate.value = [];
  389. }
  390. const computeMoney = computed(() => {
  391. return totalTimes.value * businessPrice.value
  392. })
  393. const computeClickTime = computed(() => {
  394. let timeArr = []
  395. let nyr = selectedTimes.value.map(item => {
  396. return item.date
  397. })
  398. let nyrSet = Array.from(new Set(nyr)).map(item => {
  399. return {
  400. date: item,
  401. timeArr: []
  402. }
  403. })
  404. selectedTimes.value.forEach(item => {
  405. nyrSet.forEach(i => {
  406. if (item.date == i.date) i.timeArr.push(item.time)
  407. })
  408. })
  409. console.log(nyrSet, '>>>>>nyrSet');
  410. return nyrSet
  411. })
  412. const certificationPictures = computed(() => {
  413. if (listData.value.certificationPicture) {
  414. return listData.value.certificationPicture.split(',')
  415. }
  416. return []
  417. })
  418. // 确认购买
  419. const handlConfiRmpurchase = async () => {
  420. // 定义要发送的数据
  421. const orderData = {
  422. orders: {
  423. serviceOnePrice: businessPrice.value,
  424. serviceTotalPrice: computeMoney.value, //需要传获取到的总价
  425. serviceCategory: serviceCategory.value, //大类别参数
  426. totalTimes: totalTimes.value, //点击的次数
  427. serviceStartDate: "2025-04-18",
  428. startTime: "8:00",
  429. serviceDuration: 4,
  430. paymentMethod: 1,
  431. addressId: 7,
  432. volunteerId: volunteerId.value,
  433. remark: remark.value,
  434. businessManagementId: businessManagementId.value,
  435. volunteerInfoId: listData.value.volunteerInfoId,
  436. },
  437. workDateList: []
  438. };
  439. // 转换所有选择的时间
  440. selectedTimes.value.forEach(item => {
  441. orderData.workDateList.push({
  442. workDate: item.date,
  443. workStartTime: item.time
  444. });
  445. });
  446. try {
  447. const res = await ordersCreateOrder(orderData);
  448. if (res.code == 200) {
  449. uni.showToast({
  450. title: '支付成功',
  451. icon: 'success', // 或者 'none'
  452. duration: 1500, // 显示时间,单位毫秒,默认1500
  453. mask: true, // 是否显示透明蒙层,防止触摸穿透,默认false
  454. });
  455. setTimeout(() => {
  456. uni.reLaunch({
  457. url: '/pages/index'
  458. });
  459. }, 1500)
  460. }
  461. } catch (error) {
  462. uni.showToast({
  463. title: '支付失败',
  464. icon: 'success', // 或者 'none'
  465. duration: 1500, // 显示时间,单位毫秒,默认1500
  466. mask: true, // 是否显示透明蒙层,防止触摸穿透,默认false
  467. });
  468. }
  469. };
  470. onMounted(async () => {
  471. await getListTime()
  472. })
  473. </script>
  474. <style scoped>
  475. .box {
  476. height: 100vh;
  477. width: 100vw;
  478. position: fixed;
  479. top: 0;
  480. left: 0;
  481. z-index: 999999;
  482. background: red;
  483. }
  484. .card-container {
  485. display: flex;
  486. position: relative;
  487. padding: 20rpx;
  488. align-items: flex-start;
  489. background-color: #fff;
  490. border-radius: 12rpx;
  491. }
  492. /* 左侧图片 */
  493. .card-image {
  494. width: 240rpx;
  495. height: 340rpx;
  496. border-radius: 12rpx;
  497. margin-right: 30rpx;
  498. flex-shrink: 0;
  499. }
  500. /* 中间信息区域 */
  501. .card-info {
  502. flex: 1;
  503. padding-right: 100rpx;
  504. }
  505. .Telephone {
  506. white-space: nowrap;
  507. margin-bottom: 24rpx;
  508. font-size: 28rpx;
  509. line-height: 1.6;
  510. color: #333;
  511. }
  512. .info-item {
  513. margin-bottom: 24rpx;
  514. font-size: 28rpx;
  515. line-height: 1.6;
  516. color: #333;
  517. }
  518. /* 右上角评分 */
  519. .card-rating {
  520. position: absolute;
  521. top: 20rpx;
  522. right: 20rpx;
  523. background-color: #f8f8f8;
  524. padding: 6rpx 16rpx;
  525. border-radius: 20rpx;
  526. font-size: 24rpx;
  527. color: #ff9900;
  528. font-weight: bold;
  529. }
  530. /* 固定在页面底部 */
  531. .Wrap-btn {
  532. /* display: flex; */
  533. /* justify-content: flex-end; */
  534. /* align-items: center; */
  535. position: fixed;
  536. bottom: 0;
  537. width: 100%;
  538. background-color: white;
  539. padding: 40rpx 20rpx;
  540. box-shadow: -2rpx 5rpx rgba(0, 0, 0, 0.1);
  541. }
  542. .Wrapper {
  543. display: flex;
  544. align-items: center;
  545. gap: 10rpx;
  546. margin-top: 10rpx;
  547. }
  548. .Wrapper-img {
  549. width: 50rpx;
  550. height: 50rpx;
  551. margin-left: 10rpx;
  552. }
  553. .Wrapper-content {
  554. color: rgba(16, 16, 16, 1);
  555. font-size: 25rpx;
  556. font-family: PingFangSC-regular;
  557. line-height: 20rpx;
  558. }
  559. .Wrap-content1 {
  560. display: flex;
  561. justify-content: flex-start;
  562. margin-left: 10rpx;
  563. margin-top: 10rpx;
  564. }
  565. .Wrap-info {
  566. display: flex;
  567. justify-content: flex-start;
  568. margin-left: 10rpx;
  569. margin-top: 25rpx;
  570. }
  571. .Wrap-content3 {
  572. margin-top: 25rpx;
  573. }
  574. .Wrap-content4 {
  575. margin-top: 25rpx;
  576. }
  577. .Wrap-content5 {
  578. display: flex;
  579. justify-content: flex-start;
  580. margin-left: 10rpx;
  581. margin-top: 25rpx;
  582. }
  583. .Wrap-content6 {
  584. margin-top: 25rpx;
  585. }
  586. .Wrap-detils-btn {
  587. display: flex;
  588. justify-content: flex-end;
  589. align-items: center;
  590. margin-top: 25rpx;
  591. /* position: fixed;
  592. bottom: 0;
  593. width: 100%;
  594. background-color: white;
  595. padding: 40rpx 20rpx;
  596. box-shadow: -2rpx 5rpx rgba(0, 0, 0, 0.1); */
  597. }
  598. .Wrap-Payment {
  599. padding: 30rpx;
  600. background-color: #fff;
  601. }
  602. .payment-header {
  603. display: flex;
  604. justify-content: space-between;
  605. align-items: center;
  606. padding: 20rpx 0;
  607. }
  608. .payment-title {
  609. font-size: 32rpx;
  610. font-weight: bold;
  611. }
  612. .payment-amount {
  613. font-size: 36rpx;
  614. color: #ff4d4f;
  615. font-weight: bold;
  616. }
  617. .payment-option {
  618. display: flex;
  619. justify-content: space-between;
  620. align-items: center;
  621. padding: 30rpx 0;
  622. }
  623. .option-left {
  624. display: flex;
  625. align-items: center;
  626. }
  627. .payment-icon {
  628. width: 80rpx;
  629. height: 80rpx;
  630. margin-right: 20rpx;
  631. }
  632. .option-text {
  633. font-size: 30rpx;
  634. font-weight: bold;
  635. }
  636. .other-payment {
  637. padding: 30rpx 0;
  638. color: #1890ff;
  639. font-size: 28rpx;
  640. }
  641. .terms-of-service {
  642. padding: 30rpx 0;
  643. font-size: 24rpx;
  644. color: #999;
  645. line-height: 1.5;
  646. }
  647. .confirm-button {
  648. margin-top: 40rpx;
  649. }
  650. .certificate {
  651. display: flex;
  652. flex-direction: column;
  653. }
  654. .certificate-img {
  655. margin-bottom: 24rpx;
  656. }
  657. /* 第二层弹框 */
  658. .card-container {
  659. display: flex;
  660. flex-direction: row;
  661. align-items: flex-start;
  662. padding: 10px;
  663. }
  664. .card-image {
  665. width: 100px;
  666. /* Adjust as needed */
  667. height: 100px;
  668. /* Adjust as needed */
  669. border-radius: 8px;
  670. margin-right: 15px;
  671. object-fit: cover;
  672. }
  673. .card-content {
  674. flex: 1;
  675. display: flex;
  676. flex-direction: column;
  677. }
  678. .info-item,
  679. .Telephone,
  680. .date,
  681. .time {
  682. margin-bottom: 5px;
  683. font-size: 14px;
  684. color: #333;
  685. }
  686. .time span {
  687. margin-right: 8px;
  688. }
  689. .address-line {
  690. font-size: 14px;
  691. line-height: 20rpx;
  692. /* 行高20rpx */
  693. color: #333;
  694. /* 深色文字 */
  695. display: block;
  696. /* 确保独占一行 */
  697. margin-bottom: 30rpx;
  698. /* 下边距30rpx */
  699. }
  700. /* 联系人信息容器 */
  701. .contact-info {
  702. display: flex;
  703. gap: 20rpx;
  704. /* 姓名和电话之间的间距 */
  705. }
  706. /* 姓名样式 */
  707. .contact-name {
  708. font-size: 12px;
  709. color: #999;
  710. /* 灰色文字 */
  711. line-height: 20rpx;
  712. }
  713. /* 电话样式 */
  714. .contact-phone {
  715. font-size: 12px;
  716. color: #999;
  717. /* 灰色文字 */
  718. line-height: 20rpx;
  719. }
  720. </style>