完成:黄家明项目的开发并存档

This commit is contained in:
2025-06-23 21:40:59 +08:00
parent 1b143c0c1f
commit a4130940c0
25 changed files with 551 additions and 275 deletions

View File

@@ -228,6 +228,7 @@ function Home() {
if (!Taro.getStorageSync('access_token')) {
return false;
}
pageHjmCarByMap(latitude, longitude)
if (!isAdmin) {
return false;
}
@@ -315,6 +316,9 @@ function Home() {
console.log('交警', '12312')
setIsAdmin(true)
}
if (Taro.getStorageSync('RoleCode') == 'Installer') {
setIsAdmin(true)
}
setUserInfo(data)
setIsLogin(true);
Taro.setStorageSync('UserId', data.userId)