|
|
@@ -214,7 +214,7 @@
|
|
|
|
|
|
<!-- 性别选择 -->
|
|
|
<u-picker :show="genderShow" keyName="gender" @confirm="sureChooseGender" :columns="genderList"></u-picker>
|
|
|
- <cropper selWidth="660rpx" selHeight="660rpx" ref="cropper" quality="0.5" @uploadImg="uploadCropImg" @upload="facePhotoUrl" avatarStyle="width:100vw;height:100vw;"/>
|
|
|
+ <cropper selWidth="660rpx" selHeight="660rpx" ref="cropper" quality="0.5" @uploadImg="uploadCropImg" @upload="facePhotoUrl.facePhotoUrl" />
|
|
|
|
|
|
</view>
|
|
|
</template>
|
|
|
@@ -227,7 +227,6 @@ export default {
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
|
- facePhotoUrl:'',
|
|
|
accessToken: null,
|
|
|
isAuthUpdate: false,
|
|
|
serviceProjectList: [],
|
|
|
@@ -293,7 +292,9 @@ export default {
|
|
|
this.userInfo.nickName = data.nickName;
|
|
|
this.userInfo.remark = data.remark;
|
|
|
this.userInfo.id = data.id;
|
|
|
- this.getServiceObjectPhotoRecord(this.userInfo.id)
|
|
|
+ if (this.userInfo.id){
|
|
|
+ this.getServiceObjectPhotoRecord(this.userInfo.id)
|
|
|
+ }
|
|
|
console.log('+++++++JSON.parse(option.data)++++++', this.userInfo)
|
|
|
}
|
|
|
|
|
|
@@ -324,7 +325,7 @@ export default {
|
|
|
}
|
|
|
res.data.url.replace("http", "https");
|
|
|
this.verifyFace(res.data)
|
|
|
- this.facePhotoUrl = res.data.url.replace("http", "https");
|
|
|
+ this.userInfo.facePhotoUrl = res.data.url.replace("http", "https");
|
|
|
}
|
|
|
});
|
|
|
}
|