|
@ -1,4 +1,4 @@ |
|
|
import { bannerList, getAllSituation, getSurvey, getToken, getIndexPanelV2 } from '../../api/index' |
|
|
import { bannerList, getAllSituation, getSurvey, getToken, getIndexPanelV2, getResidentConfig } from '../../api/index' |
|
|
import { checkUpdateAvatar, updateAvatar } from '../../api/clerkOnline' |
|
|
import { checkUpdateAvatar, updateAvatar } from '../../api/clerkOnline' |
|
|
import { logout } from '../../api/setUp' |
|
|
import { logout } from '../../api/setUp' |
|
|
// @ts-ignore
|
|
|
// @ts-ignore
|
|
@ -483,9 +483,9 @@ Page({ |
|
|
}, |
|
|
}, |
|
|
// 跳转到用户分析模块
|
|
|
// 跳转到用户分析模块
|
|
|
navigateToUserNum() { |
|
|
navigateToUserNum() { |
|
|
wx.navigateTo({ |
|
|
// 获取街道id
|
|
|
url: '/subpages/userNum/pages/userAnalysis/userAnalysis' |
|
|
this.getResidentConfig() |
|
|
}) |
|
|
// url: '/subpages/userNum/pages/userAnalysis/userAnalysis' 瑜山只有一个街道所以不再跳转到这个页面
|
|
|
}, |
|
|
}, |
|
|
// 跳转到议题总数详情
|
|
|
// 跳转到议题总数详情
|
|
|
navigateToyt() { |
|
|
navigateToyt() { |
|
@ -604,5 +604,19 @@ Page({ |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
}) |
|
|
}) |
|
|
|
|
|
}, |
|
|
|
|
|
// 小程序配置通用接口,这里主要获取默认街道id
|
|
|
|
|
|
async getResidentConfig (){ |
|
|
|
|
|
const para = { |
|
|
|
|
|
residentType: 'business_street_id' |
|
|
|
|
|
} |
|
|
|
|
|
try { |
|
|
|
|
|
const res: any = await getResidentConfig(para) |
|
|
|
|
|
wx.navigateTo({ |
|
|
|
|
|
url: `/subpages/userNum/pages/streetDetail/streetDetail?deptId=${res.data[0].residentCode}&deptName=${res.data[0].residentValue}` |
|
|
|
|
|
}) |
|
|
|
|
|
} catch (error) { |
|
|
|
|
|
console.log(error) |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
}) |
|
|
}) |
|
|