.
This commit is contained in:
@@ -21,8 +21,8 @@
|
|||||||
<image
|
<image
|
||||||
class="avatar-img"
|
class="avatar-img"
|
||||||
:src="
|
:src="
|
||||||
isLogin && userInfo.avatar
|
isLogin && uploadAvatarImage
|
||||||
? sheep.$url.cdn(userInfo.avatar)
|
? sheep.$url.cdn(uploadAvatarImage)
|
||||||
: sheep.$url.static('https://puton.huimeimeta.com/imgs/default_avatar.png')
|
: sheep.$url.static('https://puton.huimeimeta.com/imgs/default_avatar.png')
|
||||||
"
|
"
|
||||||
mode="aspectFill"
|
mode="aspectFill"
|
||||||
@@ -73,6 +73,10 @@
|
|||||||
type: String,
|
type: String,
|
||||||
default: '',
|
default: '',
|
||||||
},
|
},
|
||||||
|
uploadAvatarImage: {
|
||||||
|
type: String,
|
||||||
|
default: '',
|
||||||
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
// 是否登录
|
// 是否登录
|
||||||
|
|||||||
@@ -116,6 +116,7 @@
|
|||||||
|
|
||||||
.splash-img {
|
.splash-img {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
height: 1332rpx;
|
||||||
}
|
}
|
||||||
|
|
||||||
.text-box {
|
.text-box {
|
||||||
|
|||||||
@@ -12,6 +12,7 @@
|
|||||||
:userFormData="userFormData"
|
:userFormData="userFormData"
|
||||||
:userFaceInfo="userFaceInfo"
|
:userFaceInfo="userFaceInfo"
|
||||||
:detectionTime="detectionTime"
|
:detectionTime="detectionTime"
|
||||||
|
:uploadAvatarImage="uploadAvatarImage"
|
||||||
v-if="userFaceInfo"
|
v-if="userFaceInfo"
|
||||||
/>
|
/>
|
||||||
|
|
||||||
@@ -74,6 +75,7 @@
|
|||||||
|
|
||||||
getPersonalInfo();
|
getPersonalInfo();
|
||||||
getFaceInfo();
|
getFaceInfo();
|
||||||
|
getUploadFaceImage();
|
||||||
|
|
||||||
dataState.pagination.list = [];
|
dataState.pagination.list = [];
|
||||||
dataState.pagination.total = 0;
|
dataState.pagination.total = 0;
|
||||||
@@ -106,6 +108,14 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const uploadAvatarImage = ref('');
|
||||||
|
async function getUploadFaceImage() {
|
||||||
|
const { data } = await UserApi.getUploadFaceImage();
|
||||||
|
if (data?.list?.length) {
|
||||||
|
uploadAvatarImage.value = data?.list[0]?.userFaceImageUrl || '';
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
onPullDownRefresh(() => {
|
onPullDownRefresh(() => {
|
||||||
sheep.$store('user').updateUserData();
|
sheep.$store('user').updateUserData();
|
||||||
setTimeout(function () {
|
setTimeout(function () {
|
||||||
|
|||||||
@@ -114,6 +114,18 @@ const UserApi = {
|
|||||||
},
|
},
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
// 获取上传的人脸AI信息的图片
|
||||||
|
getUploadFaceImage: (params = {}) => {
|
||||||
|
return request({
|
||||||
|
url: '/digital/triple-image/page',
|
||||||
|
method: 'GET',
|
||||||
|
params,
|
||||||
|
custom: {
|
||||||
|
showLoading: false,
|
||||||
|
auth: true,
|
||||||
|
},
|
||||||
|
});
|
||||||
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
export default UserApi;
|
export default UserApi;
|
||||||
|
|||||||
Reference in New Issue
Block a user