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()
+})