goodsDetails.vue 20 KB

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