From 25350f4dcb0207cdef658bfd562308b1937cffd0 Mon Sep 17 00:00:00 2001 From: wangpeng Date: Wed, 26 Aug 2026 15:47:01 +0800 Subject: [PATCH] =?UTF-8?q?fix(login):=20=E7=A7=BB=E9=99=A4=E5=AE=89?= =?UTF-8?q?=E5=8D=93=E7=B3=BB=E7=BB=9F=E5=88=A4=E6=96=AD=E9=80=BB=E8=BE=91?= =?UTF-8?q?=E5=B9=B6=E6=9B=B4=E6=96=B0=E5=BA=94=E7=94=A8=E7=89=88=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 注释掉获取系统信息和判断安卓系统的代码 - 简化首次登录跳转条件,移除操作系统类型检查 - 更新应用版本号从 2.3.9 到 2.3.10 - 更新版本代码从 249 到 251 - 添加启动屏配置选项 useOriginalMsgbox --- manifest.json | 7 +++++-- pages/login/login.vue | 17 +++++++++-------- 2 files changed, 14 insertions(+), 10 deletions(-) diff --git a/manifest.json b/manifest.json index 54392c9..88fbfd8 100644 --- a/manifest.json +++ b/manifest.json @@ -2,8 +2,8 @@ "name" : "秦港安全", "appid" : "__UNI__DB65C6B", "description" : "秦港双控-监管端", - "versionName" : "2.3.9", - "versionCode" : 249, + "versionName" : "2.3.10", + "versionCode" : 251, "transformPx" : false, /* 5+App特有相关 android:value="uni.UN5E8A412|__UNI__DB65C6B|124611200205|common" */ @@ -116,6 +116,9 @@ "spotlight@3x" : "unpackage/res/icons/120x120.png" } } + }, + "splashscreen" : { + "useOriginalMsgbox" : true } } }, diff --git a/pages/login/login.vue b/pages/login/login.vue index 789b836..8e07cf8 100644 --- a/pages/login/login.vue +++ b/pages/login/login.vue @@ -99,14 +99,15 @@ export default { }); uni.setStorageSync('token', token); uni.setStorageSync('tokenTime', dayjs().format("YYYY-MM-DD HH:mm:ss")); - const { osName } = await uni.getSystemInfoSync(); - let osInt; - if (osName === "android") { - osInt = "1"; - } else { - osInt = "2"; - } - if (firstLogin === 1 && osInt === "1") { + // const { osName } = await uni.getSystemInfoSync(); + // let osInt; + // if (osName === "android") { + // osInt = "1"; + // } else { + // osInt = "2"; + // } + // if (firstLogin === 1 && osInt === "1") { + if (firstLogin === 1) { uni.$u.route({ url: '/pages/login/change-password/change-password', type: 'reLaunch'