Explorar el Código

🎨 修改细节问题

快乐的梦鱼 hace 2 semanas
padre
commit
32c3d6e5a3

+ 2 - 0
src/pages/article/common/CommonContent.ts

@@ -38,6 +38,7 @@ export function useHomePageMiniCommonListGoMoreAndGoDetail(p: {
   itemType?: string,
   detailsPage: string,
   count?: number,
+  params?: Record<string, any>,
 }) : IHomePageMiniCommonListGoMoreAndGoDetail {
   function goDetail(id: number) {
     navTo(p.detailsPage, {
@@ -62,6 +63,7 @@ export function useHomePageMiniCommonListGoMoreAndGoDetail(p: {
     (await CommonContent.getContentList(new GetContentListParams().setSelfValues({
       mainBodyColumnId: p.mainBodyColumnId,
       modelId: p.modelId,
+      ...p.params,
     }), 1, p.count ?? 4)).list
   );
 

+ 3 - 0
src/pages/article/list.vue

@@ -24,6 +24,9 @@ async function loadData(
   const res = await NewsIndexContent.getContentList(new GetContentListParams()
     .setMainBodyColumnId([228/* , 298, 299 */])
     .setKeywords(searchText)
+    .setSelfValues({
+      platfrom: 327,
+    })
   , page, pageSize);
   return { list: res.list.map((item) => {
     return {

+ 3 - 0
src/pages/discover.vue

@@ -259,6 +259,9 @@ const {
   title: '闽南文化',
   mainBodyColumnId: [228/* , 298, 299 */],
   modelId: NewsIndexContent.modelId,
+  params: {
+    platfrom: 327,
+  },
   itemType: 'article-common',
   detailsPage: '/pages/article/details',
 });