| | |
| | | this.userInfo.status = 1 |
| | | } |
| | | updateUserInfo(this.userInfo).then(res => { |
| | | console.log(res) |
| | | console.log("**********userInfo*************", res) |
| | | let userInfo = uni.getStorageSync("userInfo") |
| | | userInfo.status = this.userInfo.status |
| | | uni.setStorageSync("userInfo", userInfo) |
| | | }) |
| | | } |
| | | } |
| | |
| | | } else { |
| | | this.onLine = false |
| | | } |
| | | // console.log(data) |
| | | }); |
| | | |
| | | // data.forEach((item, index) => { |
| | | // if (item.roleName == "居民") { |
| | | // item.icon = "/static/icon/user-01.png" |
| | | // } |
| | | // }) |
| | | |
| | | // this.roleData = data; |
| | | this.loading = !this.loading |
| | | }, |
| | | |