From 7ce14fa7e2744c97010881d7b6b6a70b89f79881 Mon Sep 17 00:00:00 2001 From: xiebing Date: Fri, 28 Nov 2025 18:17:44 +0800 Subject: [PATCH] =?UTF-8?q?=E6=97=A5=E6=9C=9F=E9=80=89=E6=8B=A9=E6=A0=B7?= =?UTF-8?q?=E5=BC=8F=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packageA/pages/selectDate/selectDate.vue | 21 +++++++++++++++++---- 1 file changed, 17 insertions(+), 4 deletions(-) diff --git a/packageA/pages/selectDate/selectDate.vue b/packageA/pages/selectDate/selectDate.vue index 0745cdb..c686301 100644 --- a/packageA/pages/selectDate/selectDate.vue +++ b/packageA/pages/selectDate/selectDate.vue @@ -24,9 +24,9 @@ {{ vItem.title }} { + updateDateArray() if (options.date) { current.value = { date: options?.date || null, @@ -80,8 +83,18 @@ onLoad((options) => { } }); -function machHasZph(item) { - return true +function hasZphInData(item) { + return hasZphDateArray.value.some(date=>date == item.date) +} + +async function updateDateArray() { + if(localStorage.getItem('hasZphDateArray')) hasZphDateArray.value = localStorage.getItem('hasZphDateArray') + + let res = await $api.createRequest('/app/internal/getDateList', {}, 'get') + if(res.data){ + hasZphDateArray.value = res.data + localStorage.setItem('hasZphDateArray',res.data) + } } function backParams() {