From 15930787d62c3b2c4eedecbfede114189470badb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B5=B5=E5=BF=A0=E6=9E=97?= <170083662@qq.com> Date: Fri, 24 Oct 2025 11:43:08 +0800 Subject: [PATCH] =?UTF-8?q?feat(dealer):=20=E6=9B=B4=E6=96=B0=E6=8F=90?= =?UTF-8?q?=E7=8E=B0=E5=8A=9F=E8=83=BD=E5=B9=B6=E4=BC=98=E5=8C=96=E8=AF=B7?= =?UTF-8?q?=E6=B1=82=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 移除开户行名称、银行开户名和银行卡号的输入长度限制 - 在提现数据模型中新增备注字段 comments- 提现时自动生成包含手续费和预计到账金额的备注信息 -优化提现记录展示,显示备注信息而非账户信息 -修复开发环境请求地址配置注释问题,启用本地代理地址 --- src/api/shop/shopDealerWithdraw/model/index.ts | 2 ++ src/dealer/bank/add.tsx | 6 +++--- src/dealer/withdraw/index.tsx | 7 ++++--- src/utils/request.ts | 2 +- 4 files changed, 10 insertions(+), 7 deletions(-) diff --git a/src/api/shop/shopDealerWithdraw/model/index.ts b/src/api/shop/shopDealerWithdraw/model/index.ts index 4fd07d9..c892e42 100644 --- a/src/api/shop/shopDealerWithdraw/model/index.ts +++ b/src/api/shop/shopDealerWithdraw/model/index.ts @@ -30,6 +30,8 @@ export interface ShopDealerWithdraw { rejectReason?: string; // 来源客户端(APP、H5、小程序等) platform?: string; + // 备注 + comments?: string; // 租户id tenantId?: number; // 创建时间 diff --git a/src/dealer/bank/add.tsx b/src/dealer/bank/add.tsx index ef11e80..67750a4 100644 --- a/src/dealer/bank/add.tsx +++ b/src/dealer/bank/add.tsx @@ -122,13 +122,13 @@ const AddUserAddress = () => { > - + - + - + diff --git a/src/dealer/withdraw/index.tsx b/src/dealer/withdraw/index.tsx index 17591cc..0d9a3df 100644 --- a/src/dealer/withdraw/index.tsx +++ b/src/dealer/withdraw/index.tsx @@ -252,7 +252,8 @@ const DealerWithdraw: React.FC = () => { platform: 'MiniProgram', bankCard: bank.bankCard, bankAccount: bank.bankAccount, - bankName: bank.bankName + bankName: bank.bankName, + comments: `提现费3元/笔,预计到账金额¥${calculateExpectedAmount(withdrawAmount)}`, } await addShopDealerWithdraw(withdrawData) @@ -403,10 +404,10 @@ const DealerWithdraw: React.FC = () => { - 提现金额:¥{record.money} + 提现金额:¥{Number(record.money).toFixed(2)} - 提现账户:{record.accountDisplay} + {record.comments} diff --git a/src/utils/request.ts b/src/utils/request.ts index d515bf9..3a47418 100644 --- a/src/utils/request.ts +++ b/src/utils/request.ts @@ -57,7 +57,7 @@ let baseUrl = Taro.getStorageSync('ApiUrl') || BaseUrl; // 开发环境配置 if (process.env.NODE_ENV === 'development') { - // baseUrl = 'http://localhost:9200/api' + baseUrl = 'http://localhost:9200/api' } // 请求拦截器