From dacc25b2815f3d0928a35548a69e5b96d60ac5a1 Mon Sep 17 00:00:00 2001 From: jinhhanhan <1683105490@qq.com> Date: Fri, 7 Aug 2026 18:13:35 +0800 Subject: [PATCH] =?UTF-8?q?chore=EF=BC=9A=E5=BE=AE=E4=BF=A1=E5=B0=8F?= =?UTF-8?q?=E7=A8=8B=E5=BA=8F=E6=8E=A8=E8=8D=90=E7=A0=81=E7=99=BB=E5=BD=95?= =?UTF-8?q?=E6=8C=89=E9=92=AE=E6=AD=A3=E5=B8=B8=E5=BC=B9=E5=87=BA=E6=89=8B?= =?UTF-8?q?=E6=9C=BA=E5=8F=B7=E6=8E=88=E6=9D=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .local.config.js | 2 +- components-diy/diy-recommend-code.vue | 19 ++++++++++++------- 2 files changed, 13 insertions(+), 8 deletions(-) diff --git a/.local.config.js b/.local.config.js index db94927..6a3ef91 100644 --- a/.local.config.js +++ b/.local.config.js @@ -169,7 +169,7 @@ const localDevConfig = ({ // })['2724']; // 生物菌肥 // })['2811']; // 选择要使用的环境配置 // })['local-11']; // 选择要使用的环境配置 -})['192.168.8.118-1']; // 本地 +})['2811']; // 本地 // })['local-2']; // 本地 // })['local-11']; // 本地 // })['1-test']; // test diff --git a/components-diy/diy-recommend-code.vue b/components-diy/diy-recommend-code.vue index 02db0aa..bc68dc2 100644 --- a/components-diy/diy-recommend-code.vue +++ b/components-diy/diy-recommend-code.vue @@ -1132,14 +1132,19 @@ onShareClick() { this.$nextTick(() => this.loadCode(false)); }, - /** 点击未登录卡片 → 跳转登录页(和页面顶部"点击登录"一致) */ + /** 点击未登录卡片 → 弹出微信手机号授权框(与会员中心登录一致) */ goLogin() { - uni.navigateTo({ - url: '/pages_tool/login/login', - fail: () => { - uni.redirectTo({ url: '/pages_tool/login/login' }); - } - }); + if (this.$refs.nsLoginBox && this.$refs.nsLoginBox.open) { + this.$refs.nsLoginBox.open(); + } else { + // 降级:ns-login 未就绪时跳转登录页 + uni.navigateTo({ + url: '/pages_tool/login/login', + fail: () => { + uni.redirectTo({ url: '/pages_tool/login/login' }); + } + }); + } } } };