pageThree.vue 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763
  1. <template>
  2. <view class="page-container">
  3. <!-- 支付信息录入卡片 -->
  4. <view class="info-card">
  5. <view class="info-card-title">支付信息</view>
  6. <!-- 开户人和银行名称同一行 -->
  7. <u-row class="info-row" justify="space-between">
  8. <u-col span="5.8">
  9. <view class="info-label">开户人</view>
  10. <u-input v-model="paymentInfo.customName" placeholder="请输入开户人姓名" class="info-input" />
  11. </u-col>
  12. <u-col span="5.8">
  13. <view class="info-label">银行名称</view>
  14. <u-input v-model="paymentInfo.bankName" placeholder="请输入银行名称" class="info-input" />
  15. </u-col>
  16. </u-row>
  17. <!-- 银行账号单独一行 -->
  18. <u-row class="info-row">
  19. <u-col span="12">
  20. <view class="info-label">银行账号</view>
  21. <u-input v-model="paymentInfo.bankAccount" placeholder="请输入银行账号" class="info-input" />
  22. </u-col>
  23. </u-row>
  24. <!-- 身份证号单独一行 -->
  25. <u-row class="info-row">
  26. <u-col span="12">
  27. <view class="info-label">身份证号</view>
  28. <u-input v-model="paymentInfo.idNumber" placeholder="请输入身份证号" class="info-input" />
  29. </u-col>
  30. </u-row>
  31. </view>
  32. <view class="card_wrap">
  33. <view class="detail-image-section">
  34. <view class="detail-image-header">
  35. <div class="detail-image-title">高清实物图(拖拽排序)</div>
  36. </view>
  37. <view class="detail-image-content">
  38. <view class="detail-image-list">
  39. <!-- 占位符元素 -->
  40. <view v-show="placeholderIndex !== -1" class="detail-image-placeholder"
  41. :style="{ transform: placeholderStyle }">
  42. <u-icon name="arrow-right" size="40rpx" color="#108cff"></u-icon>
  43. </view>
  44. <!-- 图片列表 -->
  45. <view class="detail-image-item" v-for="(item, index) in detailImages" :key="'detail-' + index"
  46. :class="{
  47. 'dragging': draggingIndex === index,
  48. 'can-drop': canDropIndex === index
  49. }" @touchstart.stop="onTouchStart($event, index)" @touchmove.stop="onTouchMove($event)"
  50. @touchend.stop="onTouchEnd" @touchcancel.stop="onTouchEnd">
  51. <pic-comp :src="item.fileUrl"></pic-comp>
  52. <view class="image-type-tag">{{ getImageType(index) }}</view>
  53. <view class="detail-delete-btn" @click.stop="deleteImage(item)">×</view>
  54. </view>
  55. <!-- 上传按钮 -->
  56. <view class="detail-upload-btn" @click="uploadImage('detailImages')">
  57. <u-icon name="plus" size="40rpx" color="#999"></u-icon>
  58. </view>
  59. </view>
  60. </view>
  61. </view>
  62. </view>
  63. <!-- 支付总额卡片 -->
  64. <view class="card_wrap payment-card">
  65. <view class="payment-section">
  66. <view class="payment-total-container">
  67. <text class="payment-label">支付总额</text>
  68. <u-input v-model="paymentAmount" placeholder="0.00" class="payment-amount" type="number" decimal="2"
  69. prefix="¥" />
  70. </view>
  71. <view class="payment-buttons-row">
  72. <view class="payment-button" @click="handleUnpaidClick">
  73. <u-icon name="star" size="40rpx" color="#ff9500"></u-icon>
  74. <text class="button-text">未收</text>
  75. </view>
  76. <view class="payment-button" @click="handleFollowUpClick">
  77. <u-icon name="chat" size="40rpx" color="#108cff"></u-icon>
  78. <text class="button-text">待跟进</text>
  79. </view>
  80. </view>
  81. <view class="pay-now-button" @click="handlePayNowClick">
  82. <text class="button-text">立即支付</text>
  83. </view>
  84. </view>
  85. </view>
  86. <u-button @click="handleNextClick" type="primary" size="middle" style="border-radius: 20rpx;">下一步</u-button>
  87. <u-modal :show="unpaidModelShow" :title="'未收评级'" :showConfirmButton="false">
  88. <view class="modal-content">
  89. <u-rate v-model="unpaidRating" :count="5" :size="50" active-color="#ff9500"></u-rate>
  90. <u-button type="primary" size="large" @click="confirmUnpaid" style="margin-top: 40rpx;">确认未收</u-button>
  91. </view>
  92. </u-modal>
  93. <u-modal :show="followUpModelShow" :title="'填写跟进细节'" :showConfirmButton="false">
  94. <view class="modal-content">
  95. <u--textarea v-model="followUpNotes" placeholder="请输入情况" confirm-type="done"
  96. style="width: 100%; margin-bottom: 30rpx;"></u--textarea>
  97. <u-button type="primary" size="large" @click="confirmFollowUp">确认</u-button>
  98. </view>
  99. </u-modal>
  100. <u-modal :show="payNowModelShow" :title="'确认支付信息'" :showConfirmButton="false">
  101. <view class="modal-content">
  102. <!-- 支付金额显示 -->
  103. <view class="payment-amount-display">¥{{ paymentAmount }}</view>
  104. <!-- 支付信息区域 -->
  105. <view class="payment-info-section">
  106. <view class="info-item">
  107. <text class="info-label">收款姓名:</text>
  108. <text class="info-value">{{ paymentInfo.accountHolder || '未填写' }}</text>
  109. </view>
  110. <view class="info-item">
  111. <text class="info-label">开户银行:</text>
  112. <text class="info-value">{{ paymentInfo.bankName || '未填写' }}</text>
  113. </view>
  114. <view class="info-item">
  115. <text class="info-label">银行卡号:</text>
  116. <text class="info-value">{{ paymentInfo.bankAccount || '未填写' }}</text>
  117. </view>
  118. </view>
  119. <!-- 确认转账按钮 -->
  120. <u-button type="primary" size="large" @click="confirmTransfer"
  121. style="margin-top: 40rpx;">确认转账</u-button>
  122. </view>
  123. </u-modal>
  124. </view>
  125. </template>
  126. <script>
  127. import picComp from './picComp.vue'
  128. import imgUploadAndDownLoad from '../mixin/imgUploadAndDownLoad'
  129. export default {
  130. mixins: [imgUploadAndDownLoad],
  131. props: {
  132. orderDetail: {
  133. type: Object,
  134. default: () => { },
  135. },
  136. orderId: {
  137. type: String,
  138. default: '',
  139. },
  140. receiptList: {
  141. type: Array,
  142. default: () => { },
  143. },
  144. },
  145. watch: {
  146. orderDetail: {
  147. handler(newVal) {
  148. if (newVal) {
  149. this.paymentInfo.customName = newVal.customName || ''
  150. this.paymentInfo.bankName = newVal.bankName || ''
  151. this.paymentInfo.bankAccount = newVal.bankCardNumber || ''
  152. this.paymentInfo.idNumber = newVal.idCard || ''
  153. this.paymentAmount = newVal.tableFee || '0.00'
  154. this.getList('2', '3');
  155. }
  156. },
  157. deep: true,
  158. },
  159. receiptList: {
  160. handler(newVal) {
  161. if (newVal) {
  162. console.log('这里是page3的', newVal[0].tableFee)
  163. this.paymentAmount = newVal[0].tableFee || '0.00'
  164. }
  165. },
  166. deep: true,
  167. }
  168. },
  169. components: {
  170. picComp
  171. },
  172. data() {
  173. return {
  174. unpaidModelShow: false,
  175. followUpModelShow: false,
  176. payNowModelShow: false,
  177. unpaidRating: 0, // 未收评级
  178. followUpNotes: '', // 跟进细节
  179. paymentAmount: '0.00', // 支付总额
  180. // 支付信息
  181. paymentInfo: {
  182. accountHolder: '', // 开户人
  183. bankName: '', // 银行名称
  184. bankAccount: '', // 银行账号
  185. idNumber: '' // 身份证号
  186. },
  187. // 拖拽相关状态
  188. draggingIndex: -1, // 当前正在拖拽的元素索引
  189. placeholderIndex: -1, // 占位符的位置
  190. canDropIndex: -1, // 可以放置的位置
  191. originalIndex: -1, // 拖拽开始时的原始位置
  192. startX: 0, // 触摸起始X坐标
  193. startY: 0, // 触摸起始Y坐标
  194. dragOffsetX: 0, // 拖拽元素的X偏移
  195. dragOffsetY: 0, // 拖拽元素的Y偏移
  196. placeholderStyle: '', // 占位符的样式
  197. detailImages: [],// 高清细节图数组
  198. // 绑定订单相关
  199. bindList: [] // 待绑定的图片列表
  200. };
  201. },
  202. methods: {
  203. // 获取图片类型
  204. getImageType(index) {
  205. const types = ['正面', '反面', '侧面', '扣子', '编号'];
  206. return types[index] || `细节${index - 4}`;
  207. },
  208. // 触摸开始
  209. onTouchStart(event, index) {
  210. if (this.draggingIndex !== -1) return;
  211. this.draggingIndex = index;
  212. this.originalIndex = index;
  213. this.placeholderIndex = index;
  214. this.canDropIndex = -1;
  215. // 记录触摸起始坐标
  216. this.startX = event.touches[0].clientX;
  217. this.startY = event.touches[0].clientY;
  218. // 获取元素位置信息用于计算偏移
  219. const query = uni.createSelectorQuery().in(this);
  220. query.selectAll('.detail-image-item').boundingClientRect(rects => {
  221. if (rects[index]) {
  222. this.dragOffsetX = this.startX - rects[index].left;
  223. this.dragOffsetY = this.startY - rects[index].top;
  224. this.placeholderStyle = `translate(${rects[index].left}px, ${rects[index].top}px)`;
  225. }
  226. }).exec();
  227. },
  228. // 触摸移动
  229. onTouchMove(event) {
  230. if (this.draggingIndex === -1) return;
  231. const moveX = event.touches[0].clientX;
  232. const moveY = event.touches[0].clientY;
  233. // 更新拖拽元素的位置
  234. this.$nextTick(() => {
  235. const draggingElement = uni.createSelectorQuery().in(this)
  236. .selectAll('.detail-image-item')[this.draggingIndex];
  237. if (draggingElement) {
  238. // 这里通过CSS类实现拖拽视觉效果,实际位置由数组顺序控制
  239. }
  240. });
  241. // 计算当前触摸位置对应的目标索引
  242. this.findTargetIndex(moveX, moveY);
  243. },
  244. // 触摸结束
  245. onTouchEnd() {
  246. if (this.draggingIndex === -1) return;
  247. // 执行元素交换
  248. if (this.canDropIndex !== -1 && this.canDropIndex !== this.draggingIndex) {
  249. // 交换元素位置
  250. const temp = this.detailImages[this.draggingIndex];
  251. this.detailImages[this.draggingIndex] = this.detailImages[this.canDropIndex];
  252. this.detailImages[this.canDropIndex] = temp;
  253. // Update position properties after swap
  254. this.detailImages.forEach((item, index) => {
  255. item.position = index + 1;
  256. });
  257. }
  258. // 重置拖拽状态
  259. this.resetDragState();
  260. },
  261. // 查找触摸位置对应的目标索引
  262. findTargetIndex(x, y) {
  263. const query = uni.createSelectorQuery().in(this);
  264. query.selectAll('.detail-image-item').boundingClientRect(rects => {
  265. let targetIndex = -1;
  266. // 查找触摸点所在的元素
  267. for (let i = 0; i < rects.length; i++) {
  268. if (i === this.draggingIndex) continue;
  269. const rect = rects[i];
  270. if (x >= rect.left && x <= rect.right && y >= rect.top && y <= rect.bottom) {
  271. targetIndex = i;
  272. break;
  273. }
  274. }
  275. // 更新可放置位置
  276. this.canDropIndex = targetIndex;
  277. // 如果找到了可放置位置,更新占位符位置
  278. if (targetIndex !== -1) {
  279. this.placeholderIndex = targetIndex;
  280. this.placeholderStyle = `translate(${rects[targetIndex].left}px, ${rects[targetIndex].top}px)`;
  281. }
  282. }).exec();
  283. },
  284. // 重置拖拽状态
  285. resetDragState() {
  286. this.draggingIndex = -1;
  287. this.placeholderIndex = -1;
  288. this.canDropIndex = -1;
  289. this.originalIndex = -1;
  290. this.startX = 0;
  291. this.startY = 0;
  292. this.dragOffsetX = 0;
  293. this.dragOffsetY = 0;
  294. this.placeholderStyle = '';
  295. },
  296. // 未收按钮点击事件
  297. handleUnpaidClick() {
  298. console.log('点击了未收按钮');
  299. this.unpaidModelShow = true;
  300. },
  301. // 待跟进按钮点击事件
  302. handleFollowUpClick() {
  303. console.log('点击了待跟进按钮');
  304. this.followUpModelShow = true;
  305. },
  306. // 立即支付按钮点击事件
  307. handlePayNowClick() {
  308. console.log('点击了立即支付按钮');
  309. this.payNowModelShow = true;
  310. //让父组件保存数据
  311. this.$emit('handleNeedSave', {
  312. fileIds: this.detailImages.map(item => item.id).join(','),
  313. nowPage: 'formThree',
  314. form: {
  315. ...this.paymentInfo,
  316. paymentAmount: this.paymentAmount
  317. }
  318. });
  319. },
  320. // 确认未收按钮点击事件
  321. confirmUnpaid() {
  322. console.log('确认未收,评分:', this.unpaidRating);
  323. this.unpaidModelShow = false;
  324. // 可以在这里添加提交评分的逻辑
  325. },
  326. // 确认跟进细节按钮点击事件
  327. confirmFollowUp() {
  328. console.log('确认跟进细节:', this.followUpNotes);
  329. this.followUpModelShow = false;
  330. // 可以在这里添加提交跟进细节的逻辑
  331. },
  332. // 确认转账按钮点击事件
  333. confirmTransfer() {
  334. console.log('确认转账');
  335. this.payNowModelShow = false;
  336. // 可以在这里添加转账确认的逻辑
  337. this.$emit('handleConfirmPay');
  338. },
  339. // 下一步按钮点击事件
  340. handleNextClick() {
  341. console.log('page3点击了下一步按钮', this.detailImages);
  342. this.$emit('handleNextClick', {
  343. nowPage: 'formThree',
  344. form: {
  345. ...this.paymentInfo
  346. }
  347. });
  348. },
  349. }
  350. }
  351. </script>
  352. <style lang="scss" scoped>
  353. // 导入公共样式
  354. @import './common.scss';
  355. // 主样式
  356. .page-container {
  357. box-sizing: border-box;
  358. padding: 0;
  359. background-color: map-get($colors, bg);
  360. font-family: map-get($font, family);
  361. -webkit-font-smoothing: map-get($font, smoothing);
  362. font-smoothing: map-get($font, smoothing);
  363. }
  364. .card_wrap {
  365. @include card;
  366. margin-bottom: 20rpx;
  367. &:hover {
  368. @include shadow(2);
  369. }
  370. }
  371. .detail-image-section {
  372. padding: map-get($sizes, padding-sm) map-get($sizes, padding);
  373. }
  374. .detail-image-content {
  375. margin-top: 20rpx;
  376. .detail-image-list {
  377. display: flex;
  378. flex-wrap: wrap;
  379. gap: 20rpx;
  380. }
  381. .detail-image-item {
  382. position: relative;
  383. width: 200rpx;
  384. height: 200rpx;
  385. box-sizing: border-box;
  386. touch-action: none; // 禁止浏览器默认触摸行为
  387. transition: all 0.2s ease; // 所有属性过渡效果
  388. z-index: 1;
  389. cursor: move;
  390. &.dragging {
  391. opacity: 0.5;
  392. transform: scale(1.05);
  393. z-index: 100;
  394. }
  395. &.can-drop {
  396. border: 2rpx dashed #108cff;
  397. background-color: rgba(16, 140, 255, 0.1);
  398. }
  399. &:active {
  400. opacity: 0.7;
  401. }
  402. }
  403. // 占位符样式
  404. .detail-image-placeholder {
  405. position: absolute;
  406. width: 200rpx;
  407. height: 200rpx;
  408. border: 2rpx dashed #108cff;
  409. background-color: rgba(16, 140, 255, 0.1);
  410. border-radius: 8rpx;
  411. display: flex;
  412. align-items: center;
  413. justify-content: center;
  414. z-index: 50;
  415. pointer-events: none;
  416. }
  417. .image-type-tag {
  418. position: absolute;
  419. top: 10rpx;
  420. left: 10rpx;
  421. background-color: rgba(0, 0, 0, 0.6);
  422. color: white;
  423. padding: 5rpx 10rpx;
  424. border-radius: 12rpx;
  425. font-size: 22rpx;
  426. z-index: 1;
  427. }
  428. .detail-delete-btn {
  429. position: absolute;
  430. top: -10rpx;
  431. right: -10rpx;
  432. width: 40rpx;
  433. height: 40rpx;
  434. background-color: #ff4d4f;
  435. color: #fff;
  436. border-radius: 50%;
  437. display: flex;
  438. align-items: center;
  439. justify-content: center;
  440. @include font-styles($size: small, $weight: bold);
  441. z-index: 10;
  442. }
  443. .detail-upload-btn {
  444. width: 200rpx;
  445. height: 200rpx;
  446. border: 8rpx dashed #ddd;
  447. border-radius: 30rpx;
  448. display: flex;
  449. align-items: center;
  450. justify-content: center;
  451. background-color: #f9f9f9;
  452. box-sizing: border-box;
  453. cursor: pointer;
  454. &:hover {
  455. border-color: #108cff;
  456. background-color: rgba(16, 140, 255, 0.05);
  457. }
  458. }
  459. .no-images {
  460. @include font-styles($size: content, $weight: regular, $color: tertiary);
  461. text-align: center;
  462. padding: 80rpx 0;
  463. background-color: #f9f9f9;
  464. border-radius: 12rpx;
  465. margin-top: 20rpx;
  466. }
  467. }
  468. .detail-image-header {
  469. display: flex;
  470. justify-content: space-between;
  471. align-items: center;
  472. margin-bottom: map-get($sizes, margin-sm);
  473. padding-bottom: map-get($sizes, margin-sm);
  474. border-bottom: 1rpx solid map-get($colors, border);
  475. }
  476. .detail-image-title {
  477. @include font-styles($size: content, $weight: bold, $color: primary);
  478. }
  479. /* 支付信息卡片样式 */
  480. .info-card {
  481. @include card;
  482. margin-top: 20rpx;
  483. margin-bottom: 20rpx;
  484. padding: map-get($sizes, padding-sm) map-get($sizes, padding);
  485. box-sizing: border-box;
  486. &:hover {
  487. @include shadow(2);
  488. }
  489. .u-col {
  490. padding: 0;
  491. box-sizing: border-box;
  492. }
  493. .u-col:first-child {
  494. padding-right: 15rpx;
  495. }
  496. .u-col:last-child {
  497. padding-left: 15rpx;
  498. }
  499. }
  500. .info-card-title {
  501. @include font-styles($size: title, $weight: bold, $color: primary);
  502. margin-bottom: 25rpx;
  503. padding-bottom: 15rpx;
  504. border-bottom: 1rpx solid map-get($colors, border);
  505. }
  506. .info-row {
  507. margin-bottom: 20rpx;
  508. box-sizing: border-box;
  509. padding: 0;
  510. }
  511. .info-label {
  512. @include font-styles($size: tiny, $weight: regular, $color: tertiary);
  513. margin-bottom: 8rpx;
  514. display: block;
  515. }
  516. .info-input {
  517. border-radius: 8rpx;
  518. border: 1rpx solid #e5e7eb;
  519. padding: 12rpx 16rpx;
  520. width: 100%;
  521. box-sizing: border-box;
  522. @include font-styles($size: small, $weight: regular, $color: secondary);
  523. }
  524. /* 支付总额卡片样式 */
  525. .payment-card {
  526. @include card;
  527. margin-top: 20rpx;
  528. margin-bottom: 20rpx;
  529. }
  530. .payment-section {
  531. padding: map-get($sizes, padding-sm) map-get($sizes, padding);
  532. }
  533. .payment-total-container {
  534. background-color: #f5f7fa;
  535. border: 2rpx solid #e5e7eb;
  536. border-radius: 12rpx;
  537. padding: 24rpx 30rpx;
  538. box-shadow: 0 2rpx 8rpx rgba(0, 0, 0, 0.05);
  539. display: flex;
  540. align-items: center;
  541. justify-content: space-between;
  542. margin-bottom: 24rpx;
  543. }
  544. .payment-label {
  545. font-size: 36rpx;
  546. color: map-get($colors, text-primary);
  547. font-weight: 700;
  548. min-width: 140rpx;
  549. }
  550. .payment-amount {
  551. font-size: 48rpx;
  552. font-weight: 600;
  553. color: #f53f3f;
  554. font-family: Consolas, 'Courier New', monospace, -apple-system, BlinkMacSystemFont;
  555. width: auto;
  556. min-width: 150rpx;
  557. }
  558. .payment-amount .u-input__input {
  559. border: none;
  560. padding: 0;
  561. background: transparent;
  562. font-size: 48rpx;
  563. font-weight: 600;
  564. color: #f53f3f;
  565. font-family: Consolas, 'Courier New', monospace, -apple-system, BlinkMacSystemFont;
  566. text-align: right;
  567. }
  568. /* 支付按钮行样式 */
  569. .payment-buttons-row {
  570. display: flex;
  571. gap: 20rpx;
  572. margin-bottom: 24rpx;
  573. }
  574. .payment-button {
  575. flex: 1;
  576. border-radius: 12rpx;
  577. padding: 24rpx 0;
  578. display: flex;
  579. flex-direction: column;
  580. align-items: center;
  581. justify-content: center;
  582. background-color: #f5f7fa;
  583. border: 2rpx solid #e5e7eb;
  584. cursor: pointer;
  585. transition: all 0.3s ease;
  586. gap: 12rpx;
  587. }
  588. .payment-button:hover {
  589. background-color: #e6f7ed;
  590. border-color: #00b42a;
  591. transform: translateY(-2rpx);
  592. box-shadow: 0 4rpx 12rpx rgba(0, 180, 42, 0.15);
  593. }
  594. /* 立即支付按钮样式 */
  595. .pay-now-button {
  596. width: 100%;
  597. border-radius: 12rpx;
  598. padding: 32rpx 0;
  599. display: flex;
  600. flex-direction: column;
  601. align-items: center;
  602. justify-content: center;
  603. background-color: #108cff;
  604. color: #fff;
  605. cursor: pointer;
  606. transition: all 0.3s ease;
  607. gap: 12rpx;
  608. box-shadow: 0 4rpx 12rpx rgba(16, 140, 255, 0.2);
  609. }
  610. .pay-now-button:hover {
  611. background-color: #007aff;
  612. transform: translateY(-2rpx);
  613. box-shadow: 0 6rpx 16rpx rgba(16, 140, 255, 0.25);
  614. }
  615. .button-text {
  616. font-size: 28rpx;
  617. font-weight: 500;
  618. color: inherit;
  619. }
  620. /* 模态框内容样式 */
  621. .modal-content {
  622. width: 100%;
  623. padding: 40rpx 20rpx;
  624. display: flex;
  625. flex-direction: column;
  626. align-items: center;
  627. }
  628. /* 支付金额显示样式 */
  629. .payment-amount-display {
  630. font-size: 64rpx;
  631. font-weight: bold;
  632. color: #108cff;
  633. text-align: center;
  634. margin-bottom: 40rpx;
  635. width: 100%;
  636. }
  637. /* 支付信息区域样式 */
  638. .payment-info-section {
  639. width: 100%;
  640. background-color: #f5f7fa;
  641. border: 2rpx solid #e5e7eb;
  642. border-radius: 12rpx;
  643. padding: 30rpx 20rpx;
  644. margin-bottom: 40rpx;
  645. }
  646. /* 信息项样式 */
  647. .info-item {
  648. display: flex;
  649. margin-bottom: 20rpx;
  650. align-items: center;
  651. justify-content: space-between;
  652. }
  653. .info-item:last-child {
  654. margin-bottom: 0;
  655. }
  656. .info-label {
  657. font-size: 28rpx;
  658. color: #666;
  659. width: 200rpx;
  660. }
  661. .info-value {
  662. font-size: 28rpx;
  663. color: #333;
  664. }
  665. </style>