apply-refund.vue 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831
  1. <template>
  2. <view class="apply-refund-page">
  3. <!-- 退款商品 -->
  4. <view class="card">
  5. <view class="type-section">
  6. <view class="section-title">请选择售后类型</view>
  7. <view class="type-btn-group">
  8. <view class="type-btn" :class="{ active: refundType === '1' }"
  9. @click="confirmType([{ value: '1', label: '退货退款' }])">
  10. <text>退货退款</text>
  11. </view>
  12. <view class="type-btn" :class="{ active: refundType === '2' }"
  13. @click="confirmType([{ value: '2', label: '仅退款' }])">
  14. <text>仅退款</text>
  15. </view>
  16. </view>
  17. </view>
  18. <view class="card-header">
  19. <text class="card-title">退款商品</text>
  20. </view>
  21. <view class="goods-list">
  22. <view v-for="(item, index) in orderInfo.detailVoList" :key="index" class="goods-item">
  23. <view class="checkbox-box" @click.stop="toggleCheck(item)">
  24. <u-icon v-if="item.checked" name="checkmark-circle-fill" color="#38C148" size="44"></u-icon>
  25. <u-icon v-else name="checkmark-circle" color="#ccc" size="44"></u-icon>
  26. </view>
  27. <image :src="item.cover" mode="aspectFill" class="goods-cover"></image>
  28. <view class="goods-info">
  29. <view class="goods-name u-line-2">{{ item.bookName }}</view>
  30. <view class="goods-sku" v-if="item.isbn">ISBN: {{ item.isbn }}</view>
  31. <view class="price-box">
  32. <text class="price">¥{{ item.payPrice }}</text>
  33. <u-number-box v-model="item.refundNum" :min="1" :max="item.num"
  34. @change="calculateRefundMoney"></u-number-box>
  35. </view>
  36. </view>
  37. </view>
  38. </view>
  39. </view>
  40. <!-- 退款原因配置 -->
  41. <view class="card no-padding">
  42. <u-cell-group :border="false">
  43. <!-- 退款原因 -->
  44. <u-cell-item title="退款原因" :value="refundReasonText || '请选择'" @click="showReasonPicker = true" required
  45. :border-bottom="refundType === '2' ? false : true"></u-cell-item>
  46. <!-- 货物状态 (仅退款显示) -->
  47. <u-cell-item v-if="refundType === '1'" title="货物状态" :value="shopStatusText"
  48. @click="showStatusPicker = true" required :border-bottom="false"></u-cell-item>
  49. </u-cell-group>
  50. </view>
  51. <!-- 退款金额与凭证 -->
  52. <view class="card no-padding">
  53. <view class="card-title" style="padding:30rpx 0 0 20rpx">退款金额:</view>
  54. <u-cell-group :border="false">
  55. <!-- 退回支付渠道 -->
  56. <u-cell-item :title="refundChannelText" :arrow="false">
  57. <view slot="right-icon" class="refund-money-box" @click="showRefundAmountPopup = true">
  58. <text class="money">¥{{ refundMoney }}</text>
  59. <view class="edit-tag">
  60. <u-icon name="edit-pen" size="24"></u-icon>
  61. <text>修改</text>
  62. </view>
  63. </view>
  64. </u-cell-item>
  65. <!-- 上传描述和凭证 -->
  66. <u-cell-item title="上传描述和凭证" :value="uploadStatusText" @click="showUploadPopup = true" is-link
  67. :border-bottom="false"></u-cell-item>
  68. </u-cell-group>
  69. </view>
  70. <!-- 退货方式 (仅退货退款显示) - 单独分区 -->
  71. <view class="card no-padding" v-if="refundType === '1'">
  72. <u-cell-group :border="false">
  73. <u-cell-item title="退货方式" :value="returnMethodText || '请选择'" @click="showReturnMethodPicker = true"
  74. required></u-cell-item>
  75. <!-- 上门取件地址 (仅上门取件显示) -->
  76. <view class="address-section" @click="chooseAddress">
  77. <view class="flex-a flex-j-b mb-20" v-if="address.name">
  78. <view class="address-label">我的地址</view>
  79. <image src="/pages-mine/static/adderss.png" style="width: 40rpx; height: 40rpx"></image>
  80. <view class="flex-d flex-1 ml-24" style="margin-right: 20rpx">
  81. <view class="flex-a flex-j-b mb-10">
  82. <view class="address-text">{{ address.name }}</view>
  83. <view class="address-text">{{ address.mobile }}</view>
  84. </view>
  85. <view class="address-text">{{ address.province || '' }}{{ address.city || '' }}{{
  86. address.area || '' }}{{ address.fullAddress }}</view>
  87. </view>
  88. <u-icon name="arrow-right" :size="28" color="#666" top="4"></u-icon>
  89. </view>
  90. <view class="flex-a flex-j-b" v-else>
  91. <view class="flex-a">
  92. <u-icon name="plus-circle-fill" :size="48" color="#38C148" top="2"></u-icon>
  93. <view class="ml-10 font-30 address-text">我的地址</view>
  94. <text class="u-required">*</text>
  95. </view>
  96. <view class="flex-a">
  97. <view class="ml-10 address-text">请添加</view>
  98. <u-icon name="arrow-right" :size="28" color="#666" top="4"></u-icon>
  99. </view>
  100. </view>
  101. </view>
  102. </u-cell-group>
  103. </view>
  104. <!-- 我的服务 - 单独分区 -->
  105. <view class="card no-padding">
  106. <view class="card-title" style="padding:30rpx 0 0 20rpx">我的服务</view>
  107. <u-cell-group :border="false">
  108. <u-cell-item title="退换无忧" value="服务生效中" :arrow="true" :border-bottom="false">
  109. <u-icon slot="icon" name="checkmark-circle-fill" color="#38C148" size="32"
  110. style="margin-right: 10rpx;"></u-icon>
  111. </u-cell-item>
  112. </u-cell-group>
  113. </view>
  114. <!-- 底部占位 -->
  115. <view style="height: 60rpx;"></view>
  116. <!-- 底部固定栏 -->
  117. <view class="footer-bar">
  118. <view class="footer-left" @click="showRefundAmountPopup = true">
  119. <text class="label">{{ refundChannelText }}:</text>
  120. <text class="amount">¥{{ refundMoney }}</text>
  121. <text class="detail-link">明细</text>
  122. </view>
  123. <view class="footer-right">
  124. <u-button type="primary" shape="circle" :custom-style="submitBtnStyle" @click="submit">提交申请</u-button>
  125. </view>
  126. </view>
  127. <!-- 弹窗: 退款原因 -->
  128. <u-select v-model="showReasonPicker" :list="reasonList" @confirm="confirmReason"></u-select>
  129. <!-- 弹窗: 货物状态 -->
  130. <u-select v-model="showStatusPicker" :list="statusList" @confirm="confirmStatus"></u-select>
  131. <!-- 弹窗: 退货方式 -->
  132. <u-select v-model="showReturnMethodPicker" :list="returnMethodList" :default-value="returnMethodIndex"
  133. @confirm="confirmReturnMethod"></u-select>
  134. <!-- 弹窗: 上传描述和凭证 -->
  135. <u-popup v-model="showUploadPopup" mode="bottom" border-radius="24" height="800">
  136. <view class="popup-container full-height">
  137. <view class="popup-header">
  138. <text class="title">上传描述和凭证</text>
  139. <u-icon name="close" size="32" color="#999" @click="showUploadPopup = false"></u-icon>
  140. </view>
  141. <view class="popup-content">
  142. <view class="upload-textarea-box">
  143. <u-input v-model="description" type="textarea" placeholder="补充描述,有助于平台更好的处理售后问题" :height="100"
  144. maxlength="200" />
  145. </view>
  146. <view class="upload-area">
  147. <u-upload ref="uUpload" :action="uploadAction" :max-count="5" :header="uploadHeader" name="file"
  148. :file-list="fileList" @on-list-change="handleUploadChange" width="160" height="160">
  149. </u-upload>
  150. </view>
  151. </view>
  152. <view class="popup-footer safe-area-bottom">
  153. <u-button type="primary" shape="circle" :custom-style="submitBtnStyle"
  154. @click="showUploadPopup = false">完成</u-button>
  155. </view>
  156. </view>
  157. </u-popup>
  158. <!-- 弹窗: 退款明细 -->
  159. <u-popup v-model="showRefundAmountPopup" mode="bottom" border-radius="24">
  160. <view class="popup-container">
  161. <view class="popup-header">
  162. <text class="title">退款金额明细</text>
  163. <u-icon name="close" size="32" color="#999" @click="showRefundAmountPopup = false"></u-icon>
  164. </view>
  165. <view class="popup-content">
  166. <view class="detail-item">
  167. <view class="item-row">
  168. <u-icon name="rmb-circle" size="36" color="#666"></u-icon>
  169. <text class="item-label">{{ refundChannelText }}</text>
  170. <text class="item-value">¥{{ refundMoney }}</text>
  171. </view>
  172. </view>
  173. <!-- 如果有红包/优惠,展示在这里 -->
  174. <view class="detail-item" v-if="otherRefundAmount > 0">
  175. <view class="item-row">
  176. <u-icon name="red-packet" size="36" color="#666"></u-icon>
  177. <text class="item-label">退回其他</text>
  178. </view>
  179. <view class="sub-list">
  180. <view class="sub-item" v-if="orderInfo.discountMoney > 0">
  181. <text class="sub-label">优惠金额</text>
  182. <text class="sub-value">¥{{ orderInfo.discountMoney }}</text>
  183. </view>
  184. <!-- 预留红包字段 -->
  185. <view class="sub-item" v-if="orderInfo.redPacketMoney > 0">
  186. <text class="sub-label">红包</text>
  187. <text class="sub-value">¥{{ orderInfo.redPacketMoney }}</text>
  188. </view>
  189. </view>
  190. </view>
  191. </view>
  192. <view class="popup-footer safe-area-bottom">
  193. <u-button type="primary" shape="circle" :custom-style="submitBtnStyle"
  194. @click="showRefundAmountPopup = false">我知道了</u-button>
  195. </view>
  196. </view>
  197. </u-popup>
  198. </view>
  199. </template>
  200. <script>
  201. export default {
  202. data() {
  203. return {
  204. orderId: '',
  205. orderInfo: {
  206. detailVoList: [],
  207. discountMoney: 0,
  208. redPacketMoney: 0 // 假设有
  209. },
  210. // 表单数据
  211. refundType: '1', // 1: 退货退款, 2: 仅退款
  212. refundTypeText: '退货退款',
  213. refundReason: '',
  214. refundReasonText: '',
  215. shopStatus: '2', // 1: 未收到货, 2: 已收到货
  216. shopStatusText: '已收到货',
  217. returnMethod: '3', // 1: 上门取件, 2: 寄件点自寄, 3: 自行寄回
  218. returnMethodText: '自行寄回',
  219. description: '',
  220. fileList: [], // 用于回显和同步状态
  221. address: {}, // 上门取件地址
  222. // 辅助数据
  223. showReasonPicker: false,
  224. showStatusPicker: false,
  225. showReturnMethodPicker: false,
  226. showRefundAmountPopup: false,
  227. showUploadPopup: false, // 上传弹窗
  228. reasonList: [],
  229. statusList: [
  230. { value: '1', label: '未收到货' },
  231. { value: '2', label: '已收到货' }
  232. ],
  233. returnMethodList: [
  234. { value: '1', label: '上门取件' },
  235. { value: '2', label: '寄件点自寄' },
  236. { value: '3', label: '自行寄回' }
  237. ],
  238. uploadAction: uni.$u.http.config.baseUrl + '/token/shop/feedback/fileUpload',
  239. uploadHeader: {
  240. 'Authorization': uni.getStorageSync('token') || ''
  241. },
  242. submitBtnStyle: {
  243. width: '100%',
  244. height: '80rpx',
  245. fontSize: '30rpx',
  246. backgroundColor: '#38C148',
  247. color: '#ffffff'
  248. }
  249. };
  250. },
  251. computed: {
  252. returnMethodIndex() {
  253. const index = this.returnMethodList.findIndex(item => item.value === this.returnMethod);
  254. return index > -1 ? [index] : [2];
  255. },
  256. selectedGoods() {
  257. return this.orderInfo.detailVoList.filter(item => item.checked);
  258. },
  259. maxRefundMoney() {
  260. if (!this.orderInfo.detailVoList || this.orderInfo.detailVoList.length === 0) return '0.00';
  261. let totalOriginal = 0;
  262. this.orderInfo.detailVoList.forEach(item => {
  263. totalOriginal += Number(item.payPrice) * item.num;
  264. });
  265. if (totalOriginal === 0) return '0.00';
  266. let selectedOriginal = 0;
  267. this.selectedGoods.forEach(item => {
  268. selectedOriginal += Number(item.payPrice) * item.refundNum;
  269. });
  270. let payMoney = Number(this.orderInfo.payMoney) || 0;
  271. // 按比例计算: (选中商品原价 / 订单总原价) * 实付金额
  272. let refund = (selectedOriginal / totalOriginal) * payMoney;
  273. return refund.toFixed(2);
  274. },
  275. refundMoney() {
  276. return this.maxRefundMoney;
  277. },
  278. refundChannelText() {
  279. const type = String(this.orderInfo.payType);
  280. if (type === '1') return '退回余额';
  281. if (type === '2') return '退回微信';
  282. return '退回支付渠道';
  283. },
  284. otherRefundAmount() {
  285. return (Number(this.orderInfo.discountMoney) || 0) + (Number(this.orderInfo.redPacketMoney) || 0);
  286. },
  287. uploadStatusText() {
  288. if ((this.description && this.description.trim().length > 0) || this.fileList.length > 0) {
  289. return '已补充';
  290. }
  291. return '上传有助于处理退款';
  292. }
  293. },
  294. onLoad(options) {
  295. if (options.orderId) {
  296. this.orderId = options.orderId;
  297. this.loadOrderDetail();
  298. this.getRefundReasons();
  299. }
  300. },
  301. onShow() {
  302. let selectAddr = uni.getStorageSync("selectAddr");
  303. if (selectAddr) {
  304. this.address = selectAddr;
  305. uni.removeStorageSync("selectAddr");
  306. }
  307. },
  308. onUnload() {
  309. },
  310. methods: {
  311. loadOrderDetail() {
  312. this.$u.api.getShopOrderDetailAjax({ orderId: this.orderId }).then(res => {
  313. if (res.code === 200) {
  314. this.orderInfo = res.data;
  315. // 初始化商品选中状态和退款数量
  316. this.orderInfo.detailVoList.forEach(item => {
  317. this.$set(item, 'checked', true);
  318. this.$set(item, 'refundNum', item.num);
  319. });
  320. // 根据状态默认选中类型
  321. if (this.orderInfo.status == '3') { // 待收货
  322. // 默认退货退款
  323. this.refundType = '1';
  324. this.refundTypeText = '退货退款';
  325. this.shopStatus = '1';
  326. this.shopStatusText = '未收到货';
  327. } else {
  328. this.refundType = '1';
  329. this.refundTypeText = '退货退款';
  330. this.shopStatus = '2';
  331. this.shopStatusText = '已收到货';
  332. }
  333. // 默认使用订单收货地址作为取件地址
  334. this.address = {
  335. id: this.orderInfo.receiverAddressId,
  336. name: this.orderInfo.receiverName,
  337. mobile: this.orderInfo.receiverMobile,
  338. fullAddress: this.orderInfo.receiverAddress,
  339. };
  340. }
  341. });
  342. },
  343. getRefundReasons() {
  344. uni.$u.http.get("/token/common/getDictOptions?type=shop_order_complaints_options").then(res => {
  345. if (res.code === 200) {
  346. this.reasonList = res.data.map(item => ({
  347. value: item.dictValue || item.dictLabel,
  348. label: item.dictLabel
  349. }));
  350. }
  351. });
  352. },
  353. toggleCheck(item) {
  354. item.checked = !item.checked;
  355. },
  356. calculateRefundMoney() {
  357. // Computed auto updates
  358. },
  359. confirmType(e) {
  360. this.refundType = e[0].value;
  361. this.refundTypeText = e[0].label;
  362. // 切换类型时重置一些状态
  363. if (this.refundType === '2') { // 仅退款
  364. this.returnMethod = '';
  365. this.returnMethodText = '';
  366. } else {
  367. if (!this.returnMethod) {
  368. this.returnMethod = '3';
  369. this.returnMethodText = '自行寄回';
  370. }
  371. }
  372. },
  373. confirmReason(e) {
  374. this.refundReason = e[0].value;
  375. this.refundReasonText = e[0].label;
  376. },
  377. confirmStatus(e) {
  378. this.shopStatus = e[0].value;
  379. this.shopStatusText = e[0].label;
  380. },
  381. confirmReturnMethod(e) {
  382. this.returnMethod = e[0].value;
  383. this.returnMethodText = e[0].label;
  384. },
  385. chooseAddress() {
  386. uni.navigateTo({
  387. url: `/pages-mine/pages/address/list?id=${this.address.id || ''}&isSelect=1`
  388. });
  389. },
  390. handleUploadChange(lists) {
  391. this.fileList = lists;
  392. },
  393. submit() {
  394. if (this.selectedGoods.length === 0) {
  395. this.$u.toast('请选择退款商品');
  396. return;
  397. }
  398. if (!this.refundReason) {
  399. this.$u.toast('请选择退款原因');
  400. return;
  401. }
  402. if (this.refundType === '1' && !this.returnMethod) {
  403. this.$u.toast('请选择退货方式');
  404. return;
  405. }
  406. if (this.refundType === '1' && this.returnMethod === '1' && !this.address.name) {
  407. this.$u.toast('请选择取件地址');
  408. return;
  409. }
  410. // 处理图片
  411. let files = [];
  412. // 优先使用 fileList (因为 handleUploadChange 已同步)
  413. // 或者直接从 ref 获取,双重保险
  414. let uploadFiles = this.fileList;
  415. if (this.$refs.uUpload && this.$refs.uUpload.lists) {
  416. uploadFiles = this.$refs.uUpload.lists;
  417. }
  418. uploadFiles.forEach(item => {
  419. if (item.response && item.response.code === 200) {
  420. files.push(item.response.data);
  421. } else if (item.url) {
  422. files.push(item.url);
  423. }
  424. });
  425. const params = {
  426. orderId: this.orderId,
  427. refundDetailList: this.selectedGoods.map(item => ({
  428. detailOrderId: item.detailOrderId || item.id,
  429. num: item.refundNum
  430. })),
  431. refundType: this.refundType,
  432. shopStatus: this.shopStatus,
  433. refundReason: this.refundReason,
  434. refundMoney: this.refundMoney,
  435. sendType: this.returnMethod,
  436. addressId: this.address.id || '',
  437. description: this.description,
  438. fileUrlList: files
  439. };
  440. // 附加地址信息(如果是上门取件)
  441. if (this.refundType === '1' && this.returnMethod === '1') {
  442. // 这里的参数结构需根据后端实际要求调整,这里假设后端接收 address 对象
  443. params.address = this.address;
  444. }
  445. this.$u.api.applyRefundAjax(params).then(res => {
  446. if (res.code === 200) {
  447. this.$u.toast('提交成功');
  448. setTimeout(() => {
  449. uni.navigateBack();
  450. }, 1500);
  451. } else {
  452. this.$u.toast(res.msg || '提交失败');
  453. }
  454. });
  455. }
  456. }
  457. }
  458. </script>
  459. <style lang="scss" scoped>
  460. .apply-refund-page {
  461. min-height: 100vh;
  462. background-color: #f5f5f5;
  463. padding: 20rpx;
  464. padding-bottom: 140rpx; // Space for fixed footer
  465. }
  466. .card {
  467. background-color: #fff;
  468. border-radius: 16rpx;
  469. margin-bottom: 20rpx;
  470. padding: 30rpx;
  471. overflow: hidden;
  472. &.no-padding {
  473. padding: 0;
  474. }
  475. .type-section {
  476. margin-bottom: 30rpx;
  477. .section-title {
  478. font-size: 30rpx;
  479. font-weight: bold;
  480. color: #333;
  481. margin-bottom: 20rpx;
  482. }
  483. .type-btn-group {
  484. display: flex;
  485. .type-btn {
  486. flex: 1;
  487. height: 64rpx;
  488. display: flex;
  489. align-items: center;
  490. justify-content: center;
  491. border: 2rpx solid #e5e5e5;
  492. border-radius: 8rpx;
  493. margin-right: 20rpx;
  494. font-size: 28rpx;
  495. color: #333;
  496. transition: all 0.3s;
  497. &:last-child {
  498. margin-right: 0;
  499. }
  500. &.active {
  501. border-color: #38C148;
  502. color: #38C148;
  503. background-color: rgba(56, 193, 72, 0.05);
  504. font-weight: bold;
  505. }
  506. }
  507. }
  508. }
  509. .card-header {
  510. padding: 10rpx 0 20rpx;
  511. border-bottom: 1rpx solid #f5f5f5;
  512. margin-bottom: 20rpx;
  513. .card-title {
  514. font-size: 30rpx;
  515. font-weight: bold;
  516. color: #333;
  517. }
  518. }
  519. .card-title {
  520. // For simple title without header line
  521. font-size: 30rpx;
  522. font-weight: bold;
  523. color: #333;
  524. margin-bottom: 10rpx;
  525. }
  526. }
  527. .goods-list {
  528. .goods-item {
  529. display: flex;
  530. align-items: center;
  531. margin-bottom: 30rpx;
  532. &:last-child {
  533. margin-bottom: 0;
  534. }
  535. .checkbox-box {
  536. margin-right: 20rpx;
  537. }
  538. .goods-cover {
  539. width: 140rpx;
  540. height: 140rpx;
  541. border-radius: 8rpx;
  542. margin-right: 20rpx;
  543. }
  544. .goods-info {
  545. flex: 1;
  546. height: 140rpx;
  547. display: flex;
  548. flex-direction: column;
  549. justify-content: space-between;
  550. .goods-name {
  551. font-size: 28rpx;
  552. color: #333;
  553. line-height: 1.4;
  554. }
  555. .goods-sku {
  556. font-size: 24rpx;
  557. color: #999;
  558. }
  559. .price-box {
  560. display: flex;
  561. justify-content: space-between;
  562. align-items: center;
  563. .price {
  564. font-size: 30rpx;
  565. color: #333;
  566. font-weight: 500;
  567. }
  568. }
  569. }
  570. }
  571. }
  572. .refund-money-box {
  573. display: flex;
  574. align-items: center;
  575. .money {
  576. font-size: 32rpx;
  577. color: #38C148; // Theme color
  578. font-weight: bold;
  579. }
  580. .edit-tag {
  581. display: flex;
  582. align-items: center;
  583. background-color: #f0f0f0;
  584. padding: 4rpx 12rpx;
  585. border-radius: 20rpx;
  586. margin-left: 16rpx;
  587. text {
  588. font-size: 22rpx;
  589. color: #666;
  590. margin-left: 4rpx;
  591. }
  592. }
  593. }
  594. .address-box {
  595. flex: 1;
  596. display: flex;
  597. align-items: center;
  598. justify-content: flex-end;
  599. text-align: right;
  600. color: #333;
  601. font-size: 28rpx;
  602. .addr-detail {
  603. font-size: 24rpx;
  604. color: #999;
  605. max-width: 300rpx;
  606. }
  607. }
  608. .footer-bar {
  609. position: fixed;
  610. bottom: 0;
  611. left: 0;
  612. right: 0;
  613. height: 200rpx;
  614. background-color: #fff;
  615. display: flex;
  616. align-items: center;
  617. padding: 0 30rpx;
  618. box-shadow: 0 -2rpx 10rpx rgba(0, 0, 0, 0.05);
  619. z-index: 100;
  620. padding-bottom: constant(safe-area-inset-bottom);
  621. padding-bottom: env(safe-area-inset-bottom);
  622. .footer-left {
  623. flex: 1;
  624. display: flex;
  625. align-items: center;
  626. .label {
  627. font-size: 26rpx;
  628. color: #333;
  629. }
  630. .amount {
  631. font-size: 36rpx;
  632. color: #38C148;
  633. font-weight: bold;
  634. margin: 0 10rpx;
  635. }
  636. .detail-link {
  637. font-size: 24rpx;
  638. color: #999;
  639. text-decoration: underline;
  640. }
  641. }
  642. .footer-right {
  643. width: 240rpx;
  644. }
  645. }
  646. .popup-container {
  647. padding: 30rpx;
  648. background-color: #fff;
  649. &.full-height {
  650. height: 100%;
  651. display: flex;
  652. flex-direction: column;
  653. }
  654. .popup-header {
  655. display: flex;
  656. justify-content: space-between;
  657. align-items: center;
  658. margin-bottom: 40rpx;
  659. flex-shrink: 0;
  660. .title {
  661. font-size: 32rpx;
  662. font-weight: bold;
  663. color: #333;
  664. }
  665. }
  666. .popup-content {
  667. margin-bottom: 40rpx;
  668. flex: 1;
  669. overflow-y: auto;
  670. .detail-item {
  671. margin-bottom: 30rpx;
  672. .item-row {
  673. display: flex;
  674. align-items: center;
  675. margin-bottom: 10rpx;
  676. .item-label {
  677. flex: 1;
  678. margin-left: 20rpx;
  679. font-size: 30rpx;
  680. color: #333;
  681. }
  682. .item-value {
  683. font-size: 30rpx;
  684. color: #333;
  685. font-weight: 500;
  686. }
  687. }
  688. .sub-list {
  689. padding-left: 60rpx;
  690. .sub-item {
  691. display: flex;
  692. justify-content: space-between;
  693. margin-top: 10rpx;
  694. font-size: 26rpx;
  695. color: #999;
  696. }
  697. }
  698. }
  699. .upload-textarea-box {
  700. background-color: #f9f9f9;
  701. padding: 20rpx;
  702. border-radius: 12rpx;
  703. .counter {
  704. text-align: right;
  705. font-size: 24rpx;
  706. color: #999;
  707. margin: 10rpx 0 0;
  708. }
  709. }
  710. .upload-area {
  711. margin-top: 20rpx;
  712. }
  713. }
  714. .popup-footer {
  715. margin-top: 20rpx;
  716. flex-shrink: 0;
  717. &.safe-area-bottom {
  718. padding-bottom: constant(safe-area-inset-bottom);
  719. padding-bottom: env(safe-area-inset-bottom);
  720. }
  721. }
  722. }
  723. .address-section {
  724. padding: 26rpx 32rpx;
  725. }
  726. .address-text {
  727. color: #333333;
  728. font-family: PingFang SC;
  729. font-weight: 400;
  730. }
  731. .address-label {
  732. font-size: 28rpx;
  733. color: #909399;
  734. margin-right: 20rpx;
  735. width: 140rpx;
  736. }
  737. .u-required {
  738. color: #ff0000;
  739. margin-left: 8rpx;
  740. }
  741. </style>