goodsDetails.vue 22 KB

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