feat: 增加数据获取接口请求
This commit is contained in:
@@ -19,7 +19,7 @@
|
||||
<view class="">
|
||||
<view class="info-main">
|
||||
<view class="info-basic">
|
||||
<text class="gender">{{ userFaceInfo.gender }}</text>
|
||||
<text class="gender">{{ userFaceInfo.sex }}</text>
|
||||
<text class="birthday">| {{ userFaceInfo.createTime }}</text>
|
||||
</view>
|
||||
<view class="info-desc">
|
||||
@@ -35,11 +35,11 @@
|
||||
<view class="info-columns">
|
||||
<view class="col-item">
|
||||
<text class="col-label">身高</text>
|
||||
<text class="col-value">{{ userFaceInfo.stature || "-" }}cm</text>
|
||||
<text class="col-value">{{ userFaceInfo.height || "-" }}cm</text>
|
||||
</view>
|
||||
<view class="col-item">
|
||||
<text class="col-label">体重</text>
|
||||
<text class="col-value">{{ userFaceInfo.bodyWeight || "-" }}kg</text>
|
||||
<text class="col-value">{{ userFaceInfo.weight || "-" }}kg</text>
|
||||
</view>
|
||||
<view class="col-item">
|
||||
<text class="col-label">修饰目标</text>
|
||||
@@ -62,13 +62,21 @@ const props = defineProps({
|
||||
default: {},
|
||||
},
|
||||
});
|
||||
|
||||
|
||||
// console.log('9999999999999999999999999', props.userFaceInfo)
|
||||
|
||||
|
||||
|
||||
const userFaceInfo = ref({});
|
||||
|
||||
watch(
|
||||
() => props.userFaceInfo,
|
||||
(newVal) => {
|
||||
console.log('newVal: xxxxxxxx', newVal);
|
||||
userFaceInfo.value = newVal;
|
||||
},
|
||||
{ deep: true }
|
||||
{ deep: true, immediate: true }
|
||||
);
|
||||
</script>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user