pageThree.vue 27 KB

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