From 709eff18c3fb12955a97e94d58a9770a617ca3e4 Mon Sep 17 00:00:00 2001 From: gyq <875626088@qq.com> Date: Tue, 5 Aug 2025 18:54:40 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E6=B3=A8=E5=86=8C=E6=B8=A0?= =?UTF-8?q?=E9=81=93=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- commons/config.js | 2 +- pages/login/register.vue | 10 +++++++--- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/commons/config.js b/commons/config.js index 68e9c70..c66a277 100644 --- a/commons/config.js +++ b/commons/config.js @@ -33,7 +33,7 @@ export function returnShareUrl() { return 'https://dj-h5.hnsiyao.cn' } if (env === 'php_production') { - return 'https://playlet.test.h5.sxczgkj.com/' + return 'https://playlet.test.h5.sxczgkj.com' } if (env === 'local') { return AppConfig[env] diff --git a/pages/login/register.vue b/pages/login/register.vue index 2dc059e..8d876c8 100644 --- a/pages/login/register.vue +++ b/pages/login/register.vue @@ -78,16 +78,20 @@ let data = reactive({ }); onLoad(async (options) => { - if (uni.getStorageSync('qdCodeion')) { - data.qdCodeion = uni.getStorageSync('qdCodeion'); + let localQdCodeion = uni.getStorageSync('qdCodeion'); + if (localQdCodeion && localQdCodeion != 'null') { + data.qdCodeion = localQdCodeion; } - if (options.qdCode) { + if (options.qdCode && options.qdCode != 'null') { data.qdCodeion = options.qdCode; } if (options.invitation) { data.invitation = options.invitation; } + console.log('localQdCodeion===', localQdCodeion); + console.log('options.qdCode===', typeof options.qdCode); + let res = await commonType(3); data.isregisterCode = res.value; });