| | |
| | | |
| | | // 获取用户信息 |
| | | function getUserInfoApi() { |
| | | return $$.request({ url: 'paUser/personal', type: 'get', service: 'cust' }); |
| | | return $$.request({ |
| | | url: 'paUser/personal', |
| | | type: 'get', |
| | | service: 'cust' |
| | | }); |
| | | } |
| | | |
| | | Page({ |
| | |
| | | // 点击完善资料 |
| | | handleGo() { |
| | | let visible = this.data.userInfo.realStatus === '1'; |
| | | wx.navigateTo({ url: visible ? '../../pages/perfectInformation/index?type=improvedata' : '../../pages/perfectInformation/index' }); |
| | | wx.navigateTo({ |
| | | url: visible ? '../../pages/perfectInformation/index?type=improvedata' : '../../pages/perfectInformation/index' |
| | | }); |
| | | }, |
| | | |
| | | // 退出登录 |
| | |
| | | const res = await getUserInfoApi(); |
| | | $$.hideLoading(); |
| | | if (res.type) { |
| | | this.setData({ userInfo: res.data }); |
| | | this.setData({ |
| | | userInfo: res.data |
| | | }); |
| | | } |
| | | }, |
| | | |
| | | onLoad: function () { |
| | | onLoad: function () {}, |
| | | |
| | | onShow(options) { |
| | | this.getUserInfo(); |
| | | }, |
| | | }); |