fix(login): 移除安卓系统判断逻辑并更新应用版本

- 注释掉获取系统信息和判断安卓系统的代码
- 简化首次登录跳转条件,移除操作系统类型检查
- 更新应用版本号从 2.3.9 到 2.3.10
- 更新版本代码从 249 到 251
- 添加启动屏配置选项 useOriginalMsgbox
dev-2.0
wangpeng 2026-08-26 15:47:01 +08:00
parent e9a0908bb1
commit 25350f4dcb
2 changed files with 14 additions and 10 deletions

View File

@ -2,8 +2,8 @@
"name" : "秦港安全", "name" : "秦港安全",
"appid" : "__UNI__DB65C6B", "appid" : "__UNI__DB65C6B",
"description" : "秦港双控-监管端", "description" : "秦港双控-监管端",
"versionName" : "2.3.9", "versionName" : "2.3.10",
"versionCode" : 249, "versionCode" : 251,
"transformPx" : false, "transformPx" : false,
/* 5+App /* 5+App
android:value="uni.UN5E8A412|__UNI__DB65C6B|124611200205|common" */ android:value="uni.UN5E8A412|__UNI__DB65C6B|124611200205|common" */
@ -116,6 +116,9 @@
"spotlight@3x" : "unpackage/res/icons/120x120.png" "spotlight@3x" : "unpackage/res/icons/120x120.png"
} }
} }
},
"splashscreen" : {
"useOriginalMsgbox" : true
} }
} }
}, },

View File

@ -99,14 +99,15 @@ export default {
}); });
uni.setStorageSync('token', token); uni.setStorageSync('token', token);
uni.setStorageSync('tokenTime', dayjs().format("YYYY-MM-DD HH:mm:ss")); uni.setStorageSync('tokenTime', dayjs().format("YYYY-MM-DD HH:mm:ss"));
const { osName } = await uni.getSystemInfoSync(); // const { osName } = await uni.getSystemInfoSync();
let osInt; // let osInt;
if (osName === "android") { // if (osName === "android") {
osInt = "1"; // osInt = "1";
} else { // } else {
osInt = "2"; // osInt = "2";
} // }
if (firstLogin === 1 && osInt === "1") { // if (firstLogin === 1 && osInt === "1") {
if (firstLogin === 1) {
uni.$u.route({ uni.$u.route({
url: '/pages/login/change-password/change-password', url: '/pages/login/change-password/change-password',
type: 'reLaunch' type: 'reLaunch'