pageThree.vue 27 KB

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