From ca4f1c2a777adcecd916be2c3a75a272d42758a7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B5=B5=E5=BF=A0=E6=9E=97?= <170083662@qq.com> Date: Thu, 4 Jun 2026 13:01:14 +0800 Subject: [PATCH] =?UTF-8?q?refactor(customer):=20=E4=BC=98=E5=8C=96?= =?UTF-8?q?=E5=AE=A2=E6=88=B7=E6=95=B0=E6=8D=AE=E6=9F=A5=E8=AF=A2=E5=92=8C?= =?UTF-8?q?=E8=A1=A8=E5=8D=95=E5=AD=97=E6=AE=B5=E6=A0=A1=E9=AA=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 移除新增客户页面对手机号的必填和格式校验 - 修改手机号字段标签为“手机号/微信号”,取消必填和长度限制 - 新增判断当前用户是否为超级管理员逻辑 - 抽取并统一构建客户查询参数方法,根据权限动态设置筛选条件 - 优化客户列表数据获取逻辑,支持超级管理员查看全部客户 - 调整依赖项,更新使用了新构建的查询参数函数 - 增强状态统计接口参数构建,统一调用参数生成函数 - 优化副作用 Hook 依赖,保证数据加载时机正确 --- src/dealer/customer/add.tsx | 12 ++++++------ src/dealer/qrcode/index.tsx | 6 +++--- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/src/dealer/customer/add.tsx b/src/dealer/customer/add.tsx index c286362..97edffd 100644 --- a/src/dealer/customer/add.tsx +++ b/src/dealer/customer/add.tsx @@ -611,22 +611,22 @@ const AddShopDealerApply = () => { /> - + - + - + - + - + - + diff --git a/src/dealer/qrcode/index.tsx b/src/dealer/qrcode/index.tsx index a721389..d9e05c8 100644 --- a/src/dealer/qrcode/index.tsx +++ b/src/dealer/qrcode/index.tsx @@ -33,7 +33,7 @@ const DealerQrcode: React.FC = () => { const user = Taro.getStorageSync('User') || {} const nickname = (user && (user.nickname || user.realName || user.username)) || '' - const title = hasInviter ? `${nickname || '我'}邀请你加入桂乐淘伙伴计划` : '桂乐淘伙伴计划' + const title = hasInviter ? `${nickname || '我'}邀请你加入南南铝佐顿门窗伙伴计划` : '南南铝佐顿门窗伙伴计划' return { title, @@ -245,7 +245,7 @@ const DealerQrcode: React.FC = () => { // // const inviteText = `🎉 邀请您加入我的团队! // -// 扫描小程序码或搜索"桂乐淘"小程序,即可享受优质商品和服务! +// 扫描小程序码或搜索"南南铝佐顿门窗"小程序,即可享受优质商品和服务! // // 💰 成为我的团队成员,一起赚取丰厚佣金 // 🎁 新用户专享优惠等你来拿 @@ -385,7 +385,7 @@ const DealerQrcode: React.FC = () => { )} - 桂乐淘伙伴计划 + 南南铝佐顿门窗伙伴计划 自购省 | 分享赚 | 好友惠