From 28329ebfd2b1f28cfe4cbb3bb0e0eb9bcf3eeecb Mon Sep 17 00:00:00 2001 From: hzj <1304805162@qq.com> Date: Mon, 15 Sep 2025 19:03:09 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E7=AE=A1=E7=90=86=E5=91=98=E8=B5=A0?= =?UTF-8?q?=E9=80=81):=20=E5=95=86=E5=93=81=E6=9C=89=E6=95=88=E6=9C=9F?= =?UTF-8?q?=E8=AE=BE=E7=BD=AEvip=E4=B8=BA3=E5=A4=A9=EF=BC=8C=E5=85=B6?= =?UTF-8?q?=E4=BB=96=E4=B8=BA7=E5=A4=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/ItemDistribution.vue | 24 ++++++++++++++---------- 1 file changed, 14 insertions(+), 10 deletions(-) diff --git a/src/views/ItemDistribution.vue b/src/views/ItemDistribution.vue index 2ffdcb1..3b1646c 100644 --- a/src/views/ItemDistribution.vue +++ b/src/views/ItemDistribution.vue @@ -106,7 +106,7 @@
Validity: - 7day + {{ validityPeriod }}day
{ } } -onMounted(() => { - console.log('onMounted') - - if (tabItems.value.length > 0) { - underlineStyle.value // 触发计算属性更新 - } - loadProps() -}) - // 虚拟商品数据 const productList = ref([]) // 选中商品 const selectedGoods = ref({}) +const validityPeriod = computed(() => { + return currentTab.value == 'Vip' ? '3' : '7' +}) + // 获取本地图片 const getImageUrl = (imgUrl) => { return new URL(imgUrl, import.meta.url).href @@ -298,6 +293,15 @@ const closedPopup = () => { targetUserId.value = '' dialogshow.value = false } + +onMounted(() => { + console.log('onMounted') + + if (tabItems.value.length > 0) { + underlineStyle.value // 触发计算属性更新 + } + loadProps() +})