diff --git a/pages/base-info/index.vue b/pages/base-info/index.vue index fbfd806..ba0ef79 100644 --- a/pages/base-info/index.vue +++ b/pages/base-info/index.vue @@ -102,7 +102,6 @@ const token = ref(''); onLoad((e) => { - console.log('onLoad: ---------', e); token.value = e.token; uni.setStorageSync('token', e.token); }); diff --git a/pages/report/component/Header/index.vue b/pages/report/component/Header/index.vue index 0b2aced..68490ab 100644 --- a/pages/report/component/Header/index.vue +++ b/pages/report/component/Header/index.vue @@ -19,7 +19,7 @@ - {{ userFaceInfo.gender }} + {{ userFaceInfo.sex }} | {{ userFaceInfo.createTime }} @@ -35,11 +35,11 @@ 身高 - {{ userFaceInfo.stature || "-" }}cm + {{ userFaceInfo.height || "-" }}cm 体重 - {{ userFaceInfo.bodyWeight || "-" }}kg + {{ userFaceInfo.weight || "-" }}kg 修饰目标 @@ -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 } ); diff --git a/pages/report/index.vue b/pages/report/index.vue index 9f24cbf..1494f3f 100644 --- a/pages/report/index.vue +++ b/pages/report/index.vue @@ -1,7 +1,9 @@