goodsDetails.vue 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861
  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" :timeArr="doorToDoorTimeArr" :timeHostArr="timeHostArr" @getByDate="getByDate"
  72. @getByTime="getByTime"></its-calendar>
  73. </view>
  74. </view>
  75. <view class="Wrap-content6">
  76. <text style="margin-left: 15rpx;">备注:</text>
  77. <up-input placeholder="请输入内容" border="surround" v-model="remark" @change="change"></up-input>
  78. </view>
  79. <view class="Wrap-detils-btn">
  80. <up-button type="primary" shape="circle" :customStyle="wrapqx" @click="handlCancel">取消</up-button>
  81. <up-button type="error" shape="circle" :customStyle="wrapqx" @click="handleBuy">
  82. 预约¥{{ computeMoney }}
  83. </up-button>
  84. </view>
  85. </up-popup>
  86. </view>
  87. <!-- 第二个弹框-->
  88. <up-popup v-model:show="showSecond">
  89. <view>
  90. <up-cell-group>
  91. <view @click="jumpToAddressSelect" style="display: flex; align-items: center; padding: 10px;">
  92. <up-icon name="more-dot-fill" size="16" />
  93. <view v-if="selectedAddress" style="margin-left: 8px; flex: 1;">
  94. <view class="address-display">
  95. <text class="address-line">
  96. {{ selectedAddress.provinceName }}{{ selectedAddress.cityName }}{{ selectedAddress.districtName }}
  97. </text>
  98. <view class="contact-info">
  99. <text class="contact-name">{{ selectedAddress.name }}</text>
  100. <text class="contact-phone">{{ selectedAddress.telephone }}</text>
  101. </view>
  102. </view>
  103. </view>
  104. <text v-else style="margin-left: 8px; font-size: 14px;">请选择服务地址</text>
  105. </view>
  106. <view class="card-container" v-for="(item, index) in selectedTimes" :key="index">
  107. <image class="card-image" :src="listData.volunteerPicture" mode="aspectFill"></image>
  108. <view class="card-content"> <!-- Content container -->
  109. <view class="info-item">服务项目:{{listData.projectName}}</view>
  110. <view class="Telephone">服务时长:{{listData.businessDuration}}</view>
  111. <view class="date">日期:{{item.date}}</view>
  112. <view class="time">
  113. 时间:{{ item.time }}
  114. <!-- <span v-for="(i,ind) in item.timeArr" :key="ind">
  115. {{i}}
  116. </span> -->
  117. </view>
  118. </view>
  119. </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/my/钱包.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. .box {
  500. height: 100vh;
  501. width: 100vw;
  502. position: fixed;
  503. top: 0;
  504. left: 0;
  505. z-index: 999999;
  506. background: red;
  507. }
  508. .card-container {
  509. display: flex;
  510. position: relative;
  511. padding: 20rpx;
  512. align-items: flex-start;
  513. background-color: #fff;
  514. border-radius: 12rpx;
  515. }
  516. /* 左侧图片 */
  517. .card-image {
  518. width: 240rpx;
  519. height: 340rpx;
  520. border-radius: 12rpx;
  521. margin-right: 30rpx;
  522. flex-shrink: 0;
  523. }
  524. /* 中间信息区域 */
  525. .card-info {
  526. flex: 1;
  527. padding-right: 100rpx;
  528. }
  529. .Telephone {
  530. white-space: nowrap;
  531. margin-bottom: 24rpx;
  532. font-size: 28rpx;
  533. line-height: 1.6;
  534. color: #333;
  535. }
  536. .info-item {
  537. margin-bottom: 24rpx;
  538. font-size: 28rpx;
  539. line-height: 1.6;
  540. color: #333;
  541. }
  542. /* 右上角评分 */
  543. .card-rating {
  544. position: absolute;
  545. top: 20rpx;
  546. right: 20rpx;
  547. background-color: #f8f8f8;
  548. padding: 6rpx 16rpx;
  549. border-radius: 20rpx;
  550. font-size: 24rpx;
  551. color: #ff9900;
  552. font-weight: bold;
  553. }
  554. /* 固定在页面底部 */
  555. .Wrap-btn {
  556. /* display: flex; */
  557. /* justify-content: flex-end; */
  558. /* align-items: center; */
  559. position: fixed;
  560. bottom: 0;
  561. width: 100%;
  562. background-color: white;
  563. padding: 40rpx 20rpx;
  564. box-shadow: -2rpx 5rpx rgba(0, 0, 0, 0.1);
  565. }
  566. .Wrapper {
  567. display: flex;
  568. align-items: center;
  569. gap: 10rpx;
  570. margin-top: 10rpx;
  571. }
  572. .Wrapper-img {
  573. width: 50rpx;
  574. height: 50rpx;
  575. margin-left: 10rpx;
  576. }
  577. .Wrapper-content {
  578. color: rgba(16, 16, 16, 1);
  579. font-size: 25rpx;
  580. font-family: PingFangSC-regular;
  581. line-height: 20rpx;
  582. }
  583. .Wrap-content1 {
  584. display: flex;
  585. justify-content: flex-start;
  586. margin-left: 10rpx;
  587. margin-top: 10rpx;
  588. }
  589. .Wrap-info {
  590. display: flex;
  591. justify-content: flex-start;
  592. margin-left: 10rpx;
  593. margin-top: 25rpx;
  594. }
  595. .Wrap-content3 {
  596. margin-top: 25rpx;
  597. }
  598. .Wrap-content4 {
  599. margin-top: 25rpx;
  600. }
  601. .Wrap-content5 {
  602. display: flex;
  603. justify-content: flex-start;
  604. margin-left: 10rpx;
  605. margin-top: 25rpx;
  606. }
  607. .Wrap-content6 {
  608. margin-top: 25rpx;
  609. }
  610. .Wrap-detils-btn {
  611. display: flex;
  612. justify-content: flex-end;
  613. align-items: center;
  614. margin-top: 25rpx;
  615. /* position: fixed;
  616. bottom: 0;
  617. width: 100%;
  618. background-color: white;
  619. padding: 40rpx 20rpx;
  620. box-shadow: -2rpx 5rpx rgba(0, 0, 0, 0.1); */
  621. }
  622. .Wrap-Payment {
  623. padding: 30rpx;
  624. background-color: #fff;
  625. }
  626. .payment-header {
  627. display: flex;
  628. justify-content: space-between;
  629. align-items: center;
  630. padding: 20rpx 0;
  631. }
  632. .payment-title {
  633. font-size: 32rpx;
  634. font-weight: bold;
  635. }
  636. .payment-amount {
  637. font-size: 36rpx;
  638. color: #ff4d4f;
  639. font-weight: bold;
  640. }
  641. .payment-option {
  642. display: flex;
  643. justify-content: space-between;
  644. align-items: center;
  645. padding: 30rpx 0;
  646. }
  647. .option-left {
  648. display: flex;
  649. align-items: center;
  650. }
  651. .payment-icon {
  652. width: 80rpx;
  653. height: 80rpx;
  654. margin-right: 20rpx;
  655. }
  656. .option-text {
  657. font-size: 30rpx;
  658. font-weight: bold;
  659. }
  660. .other-payment {
  661. padding: 30rpx 0;
  662. color: #1890ff;
  663. font-size: 28rpx;
  664. }
  665. .terms-of-service {
  666. padding: 30rpx 0;
  667. font-size: 24rpx;
  668. color: #999;
  669. line-height: 1.5;
  670. }
  671. .confirm-button {
  672. margin-top: 40rpx;
  673. }
  674. .certificate {
  675. display: flex;
  676. flex-direction: column;
  677. }
  678. .certificate-img {
  679. margin-bottom: 24rpx;
  680. }
  681. /* 第二层弹框 */
  682. .card-container {
  683. display: flex;
  684. flex-direction: row;
  685. align-items: flex-start;
  686. padding: 10px;
  687. }
  688. .card-image {
  689. width: 100px;
  690. /* Adjust as needed */
  691. height: 100px;
  692. /* Adjust as needed */
  693. border-radius: 8px;
  694. margin-right: 15px;
  695. object-fit: cover;
  696. }
  697. .card-content {
  698. flex: 1;
  699. display: flex;
  700. flex-direction: column;
  701. }
  702. .info-item,
  703. .Telephone,
  704. .date,
  705. .time {
  706. margin-bottom: 5px;
  707. font-size: 14px;
  708. color: #333;
  709. }
  710. .time span {
  711. margin-right: 8px;
  712. }
  713. .address-line {
  714. font-size: 14px;
  715. line-height: 20rpx;
  716. /* 行高20rpx */
  717. color: #333;
  718. /* 深色文字 */
  719. display: block;
  720. /* 确保独占一行 */
  721. margin-bottom: 30rpx;
  722. /* 下边距30rpx */
  723. }
  724. /* 联系人信息容器 */
  725. .contact-info {
  726. display: flex;
  727. gap: 20rpx;
  728. /* 姓名和电话之间的间距 */
  729. }
  730. /* 姓名样式 */
  731. .contact-name {
  732. font-size: 12px;
  733. color: #999;
  734. /* 灰色文字 */
  735. line-height: 20rpx;
  736. }
  737. /* 电话样式 */
  738. .contact-phone {
  739. font-size: 12px;
  740. color: #999;
  741. /* 灰色文字 */
  742. line-height: 20rpx;
  743. }
  744. </style>