From 42a187459ebd50c49cc0f05d2c468bd07d0b446e Mon Sep 17 00:00:00 2001 From: huxuejian Date: Wed, 4 Feb 2026 13:28:47 +0800 Subject: [PATCH 1/3] =?UTF-8?q?fix:=20=20bug=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages.json | 3 +- pages/archive/edit-archive.vue | 8 +- pages/home/home.vue | 2 +- pages/login/login.vue | 260 +++++++++++++++++++++++++++------ pages/login/redirect-page.vue | 56 +++++-- routes/index.js | 2 +- static/background.png | Bin 0 -> 27157 bytes utils/api.js | 4 +- 8 files changed, 273 insertions(+), 62 deletions(-) create mode 100644 static/background.png diff --git a/pages.json b/pages.json index 2c91e8a..12c41b2 100644 --- a/pages.json +++ b/pages.json @@ -35,7 +35,8 @@ { "path": "pages/login/login", "style": { - "navigationBarTitleText": "柚健康" + "navigationBarTitleText": "柚健康", + "navigationStyle": "custom" } }, { diff --git a/pages/archive/edit-archive.vue b/pages/archive/edit-archive.vue index 159734c..5164395 100644 --- a/pages/archive/edit-archive.vue +++ b/pages/archive/edit-archive.vue @@ -55,7 +55,12 @@ const customerArchive = ref(null); const verifyVisible = ref(false); const visible = ref(false); -const formData = computed(() => ({ ...customer.value, ...form.value })); +const formData = computed(() => { + if (customerId.value) { + return { ...customer.value, ...form.value } + } + return { ...customer.value, ...form.value, mobile: account.value?.mobile } +}); function change({ title, value }) { if (title) { @@ -72,6 +77,7 @@ function change({ title, value }) { } function confirm() { + console.log(formData.value) if (!tempRef.value.verify()) return; if (customerId.value) { updateArchive(); diff --git a/pages/home/home.vue b/pages/home/home.vue index d84891e..c4e65de 100644 --- a/pages/home/home.vue +++ b/pages/home/home.vue @@ -57,7 +57,7 @@ async function changeTeam({ teamId, corpId, corpName }) { async function getTeams() { loading.value = true; - const res = await api('queryWxJoinedTeams', { openid: account.value.openid }); + const res = await api('getWxappRelateTeams', { openid: account.value.openid }); teams.value = res && Array.isArray(res.data) ? res.data : []; const validTeam = teams.value.find(item => team.value && item.teamId === team.value.teamId) || teams.value[0]; if (validTeam) { diff --git a/pages/login/login.vue b/pages/login/login.vue index 00897cf..3fb4c96 100644 --- a/pages/login/login.vue +++ b/pages/login/login.vue @@ -1,38 +1,54 @@ +