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