pageThree.vue 30 KB

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