| | |
| | | }); |
| | | this.$reqGet('getUserEntity').then(res => { |
| | | uni.hideLoading(); |
| | | this.userInfo = res.data; |
| | | this.editUserInfo = this.userInfo = res.data; |
| | | this.editUserInfo.password = "" |
| | | uni.setStorageSync('carImg', this.userInfo.carImg); |
| | | uni.setStorageSync('drivingImg', this.userInfo.drivingImg); |
| | | uni.setStorageSync('bodyofcarJpg', this.userInfo.bodyofcarJpg) |
| | | if (this.fileList1.length == 0) { |
| | | |
| | | this.fileList1.push({ |
| | | url: `${BaseUrl}${this.userInfo.carImg}` |
| | | }); |
| | | }) |
| | | } |
| | | if (this.fileList2.length == 0) { |
| | | if (!this.userInfo.drivingImg) return |
| | | this.fileList2.push({ |
| | | url: `${BaseUrl}${this.userInfo.drivingImg}` |
| | | }); |
| | |
| | | }); |
| | | } |
| | | } |
| | | Object.keys(this.editUserInfo).map(item => { |
| | | if (res.data[item]) { |
| | | this.editUserInfo[item] = res.data[item]; |
| | | this.editUserInfo.password = '' |
| | | } |
| | | }); |
| | | }); |
| | | }, |
| | | // 修改按钮点击 |