修复:已知问题
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user