12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697 |
- const app = getApp(),
- {
- globalData: {
- util: {
- regeneratorRuntime,
- goLogin,
- navigate_auth_native,
- getUserInfo
- }
- }
- } = app;
- Page({
- onLoad() {
- this.setData({
- topList: [
- {
- title: '系统消息',
- icon: 'systemMsg',
- url: 'message/index',
- },
- {
- title: '用户信息',
- icon: 'material',
- url: 'myInfo/index',
- },
- {
- title: '一键定位',
- icon: 'nav',
- url: 'localtion/index',
- }
- ],
- list: [
- {
- title: '我的办件',
- icon: 'banjian',
- url: 'handling/handling',
- },
- {
- title: '我的预约',
- icon: 'yuyue',
- url: 'reservation/index',
- },
- // {
- // title: '我的排队',
- // icon: 'paidui',
- // url: '',
- // },
- {
- title: '我的材料',
- icon: 'cailiao',
- url: 'myData/myData',
- },
- {
- title: '我的收藏',
- icon: 'shoucang',
- url: 'myCollect/index',
- },
- {
- title: '我的评价',
- icon: 'assess',
- url: 'assess/assess',
- },
- {
- title: '我的咨询',
- icon: 'zixun',
- url: 'advisory/advisory',
- },
- {
- title: '我的投诉',
- icon: 'tousu',
- url: 'complaint/complaint',
- },
- {
- title: '我的设置',
- icon: 'shezhi',
- url: 'setting/index',
- }
- ]
- })
- },
- async onShow() {
- let { viewName = '', photo = '' } = await getUserInfo()
- this.setData({
- photo,
- viewName
- })
- },
- goLogin,
- navigate_auth_native
- })
|