ソースを参照

简历刷新次数还没有做

lifanagju_citu 4 ヶ月 前
コミット
beeb27f397
1 ファイル変更11 行追加9 行削除
  1. 11 9
      pagesA/vip/index.vue

+ 11 - 9
pagesA/vip/index.vue

@@ -22,7 +22,7 @@
           :clickable="true"
           :key="item.title"
           :title="item.title"
-          showArrow
+          :showArrow="!item.hideArrow"
           :rightText="item.rightTex || ''"
           @click="handleToLink(item)"
         >
@@ -44,9 +44,9 @@ const userInfo = computed(() => useUserStore?.userInfo)
 
 
 let list = [
-	{	title: '简历模板', key: 'resumeRefreshCount', show: true,	path: '/pagesA/vip/template/index'	},					
-	{	title: '简历模板', key: 'resumeTemplate', show: false,	path: '/pagesA/vip/template/index'	},					
-	{	title: '屏蔽企业', key: 'viewersList', show: true,	path: '/pagesA/vip/blockEnt/index'	},			
+	// {	title: '简历刷新次数', key: 'resumeRefreshCount', show: false,	path: '', hideArrow: true },
+	{	title: '简历模板', key: 'resumeTemplate', show: false,	path: '/pagesA/vip/template/index' },
+	{	title: '简历屏蔽', key: 'resumePrivacy', show: false,	path: '/pagesA/vip/blockEnt/index' },
 ]
 const listKeys = list.map(e => e.key)
 
@@ -60,12 +60,12 @@ watch(() => userInfo.value?.entitlement,
     if (newVal && listKeys?.length) {
       listKeys.forEach(key => {
         const item = list.find(e => e.key === key)
-        if (!item || item.show) return
+        if (!item) return
         //
         if (key === 'resumeRefreshCount') { // 简历刷新次数
           item.rightTex = '剩余 ' + (newVal[key] ? newVal[key] : 0) + ' 次'
         }
-        else if (newVal[key]) item.show = true
+        item.show = Boolean(newVal[key] || newVal[key] === 0)
       })
       menuList.value = list.filter(e => e.show)
     }
@@ -86,9 +86,11 @@ const remaining = computed(() => {
 
 // 列表跳转
 const handleToLink = (item) => {
-	uni.navigateTo({
-		url: item.path
-	})
+  if (item?.path) {
+    uni.navigateTo({
+      url: item.path
+    })
+  }
 }
 const pName = ref('')
 let getPNameNum = 0