From 0b96a8102160ee6299bee1e209926d25d5b9bd8a Mon Sep 17 00:00:00 2001 From: kenny <879464294@qq.com> Date: Sun, 12 Oct 2025 08:16:59 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=A2=9E=E5=8A=A0=E6=95=B0=E6=8D=AE?= =?UTF-8?q?=E8=8E=B7=E5=8F=96=E6=8E=A5=E5=8F=A3=E8=AF=B7=E6=B1=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/base-info/index.vue | 1 - pages/report/component/Header/index.vue | 16 ++++-- pages/report/index.vue | 72 ++++++++++++------------- sheep/api/report/index.js | 6 +++ 4 files changed, 54 insertions(+), 41 deletions(-) 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 @@