pageThree.vue 25 KB

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