Browse Source

feat(article): 合并重复的文章列表页为知识中心,统一入口到 article-center

保留 pages/article-center/index.vue(含搜索/维度/分类筛选)作为唯一知识中心,
废弃 mind-extra/articles 和 mind-detail/articles,6 处入口重定向并删除注册
liaoxg 2 tháng trước cách đây
mục cha
commit
4ee757e7d7

+ 0 - 18
cfc-frontend/pages.json

@@ -1039,12 +1039,6 @@
             "navigationBarTitleText": "心"
           }
         },
-        {
-          "path": "articles",
-          "style": {
-            "navigationBarTitleText": "心智成长"
-          }
-        },
         {
           "path": "training",
           "style": {
@@ -1387,18 +1381,6 @@
         }
       ]
     },
-    {
-      "root": "pages/mind-extra",
-      "pages": [
-        {
-          "path": "articles",
-          "style": {
-            "navigationBarTitleText": "心智成长",
-            "navigationStyle": "custom"
-          }
-        }
-      ]
-    },
     {
       "root": "pages/discover",
       "pages": [

+ 1 - 1
cfc-frontend/pages/discover/index.vue

@@ -217,7 +217,7 @@ export default {
       return config.API_BASE_URL + path
     },
     goKnowledgeCenter() {
-      uni.navigateTo({ url: '/pages/mind-extra/articles' })
+      uni.navigateTo({ url: '/pages/article-center/index' })
     }
   }
 }

+ 1 - 1
cfc-frontend/pages/home-pages/parent-index.vue

@@ -1253,7 +1253,7 @@ export default {
       })
     },
     goArticles: function() {
-      uni.navigateTo({ url: '/pages/mind-detail/articles' })
+      uni.navigateTo({ url: '/pages/article-center/index' })
     },
     goArticleDetail: function(articleOrId) {
       var id = typeof articleOrId === 'object' ? articleOrId.id : articleOrId

+ 1 - 1
cfc-frontend/pages/index-home/index.vue

@@ -1236,7 +1236,7 @@ membershipDays: 0,
       uni.navigateTo({ url: '/pages/health/challenge-manage' })
     },
     goArticles: function() {
-      uni.navigateTo({ url: '/pages/mind-detail/articles' })
+      uni.navigateTo({ url: '/pages/article-center/index' })
     },
     goArticleDetail: function(article) {
       var id = article && article.id ? article.id : article

+ 1 - 1
cfc-frontend/pages/mind-detail/index.vue

@@ -227,7 +227,7 @@ components: { TabTransition, PageBanner, RadarChart, FamilyEnergyBar, PsychCrisi
 
       // 功能入口
       funcList: [
-        { icon: '\u{1F4D6}', label: '阅读', needLogin: false, page: '/pages/mind-extra/articles' },
+        { icon: '\u{1F4D6}', label: '阅读', needLogin: false, page: '/pages/article-center/index?dimension=mind' },
         { icon: '\u{1F4CA}', label: '测评报告', needLogin: true, page: '/pages/mind/emotion-report' },
         { icon: '\u{1F4DD}', label: '成长记录', needLogin: true, page: '/pages/growth-main/index' },
         { icon: '\u{2728}', label: '情绪打卡', needLogin: true, page: '/pages/mind-detail/emotion-checkin' },

+ 1 - 1
cfc-frontend/pages/wisdom-detail/index.vue

@@ -244,7 +244,7 @@ export default {
         { icon: '\u{1F4CA}', label: '认知报告', needLogin: true, page: '/pages/wisdom-detail/cognitive-report' },
         { icon: '\u{1F9E0}', label: '训练中心', needLogin: true, page: '/pages/wisdom-detail/training-hub' },
         { icon: '\u{1F3AF}', label: '测评预约', needLogin: false, page: '/pages/assessment/apply' },
-        { icon: '\u{1F4D6}', label: '阅读天地', needLogin: false, page: '/pages/mind-extra/articles' }
+        { icon: '\u{1F4D6}', label: '阅读天地', needLogin: false, page: '/pages/article-center/index?dimension=wisdom' }
       ]
     }
   },