| | |
| | | this.$reqGet('getUserEntity').then(res => { |
| | | uni.hideLoading(); |
| | | this.userInfo = res.data; |
| | | this.userInfo.idCard = this.userInfo.idCard.slice(0, 6) + '********' + this.userInfo.idCard |
| | | .slice(-4) |
| | | uni.setStorageSync('carImg', this.userInfo.carImg); |
| | | uni.setStorageSync('drivingImg', this.userInfo.drivingImg); |
| | | uni.setStorageSync('roadTransportImg', this.userInfo.roadTransportImg); |
| | |
| | | Object.keys(this.editUserInfo).map(item => { |
| | | if (res.data[item]) { |
| | | this.editUserInfo[item] = res.data[item]; |
| | | this.editUserInfo.idCard = this.userInfo.idCard.slice(0, 6) + '********' + this |
| | | .editUserInfo.idCard |
| | | .slice(-4) |
| | | } |
| | | }); |
| | | this.editUserInfo.password = '' |