修复:已知问题

This commit is contained in:
2025-06-26 17:01:05 +08:00
parent bd676b3147
commit ed80e2db40
10 changed files with 138 additions and 19 deletions

View File

@@ -118,7 +118,7 @@ function Home() {
}
// 已认证用户
if (Taro.getStorageSync('certification')) {
if (Taro.getStorageSync('Certification')) {
setIsAdmin(true)
setScale(11)
// pageHjmCarByMap(res.latitude, res.longitude)
@@ -149,6 +149,10 @@ function Home() {
// 搜索条件
const where = {}
// 交警和邮管不能在小程序主界面地图上看到任何一个车辆的定位
if(Taro.getStorageSync('RoleCode') == 'jiaojing' || Taro.getStorageSync('RoleCode') == 'youzheng'){
return false
}
if (latitude) {
// @ts-ignore
where.latitude = latitude
@@ -207,6 +211,7 @@ function Home() {
if (!Taro.getStorageSync('access_token')) {
return false;
}
pageHjmCarByMap(latitude, longitude)
if (!isAdmin) {
return false;
@@ -293,7 +298,7 @@ function Home() {
setIsAdmin(true)
}
// 是否交警
if (Taro.getStorageSync('certification') == 'jj') {
if (Taro.getStorageSync('Certification') == 'jj') {
console.log('交警', '12312')
setIsAdmin(true)
}