goodsDetails.vue 21 KB

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