快乐的梦鱼 1 неделя назад
Родитель
Сommit
f1fdd462ef

+ 6 - 0
src/pages.json

@@ -146,6 +146,12 @@
       }
     },
     {
+      "path": "pages/inhert/songs/details",
+      "style": {
+        "navigationBarTitleText": "详情"
+      }
+    },
+    {
       "path": "pages/inhert/village/list",
       "style": {
         "navigationBarTitleText": "村落列表",

+ 17 - 1
src/pages/article/data/CommonCategoryBlocks.vue

@@ -33,6 +33,22 @@
               @click="category.detailsPage(item)"
             />
           </template>
+          <template v-else-if="category.type === 'large-image'">
+            <FlexCol>
+              <Box2LineLargeImageUserShadow
+                v-for="(item, i) in category.data.content.value"
+                titleColor="title-text"
+                fixSize
+                title1
+                :key="i"
+                :title="item.title"
+                :desc="item.desc"
+                :image="item.image"
+                :tags="(item.bottomTags as string[])"
+                @click="category.detailsPage(item)"
+              />
+            </FlexCol>
+          </template>
           <template v-else-if="category.type === 'large-image2'">
             <scroll-view scroll-x>
               <FlexRow>
@@ -169,7 +185,7 @@ export interface CategoryDefine extends Omit<IHomeCommonCategoryListTabNestCateg
   title: string;
   showTitle: boolean;
   content: CommonContentApi|IHomeCommonCategoryBlock|HomeCommonCategoryBlockProps|null;
-  type?: 'article'|'large-image2'|'horizontal-large'|'large-grid2'|'small-grid2'|'simple-text'
+  type?: 'article'|'large-image2'|'horizontal-large'|'large-image'|'large-grid2'|'small-grid2'|'simple-text'
     |'CalendarBlock'|'StatsBlock'|'MapBlock'|'CalendarBlock'
     |undefined;
 }

+ 2 - 2
src/pages/article/data/DefaultCategory.json

@@ -263,8 +263,8 @@
                     }
                   },
                   "morePage": "/pages/travel/fashion/list",
-                  "detailsPage": "/pages/video/details",
-                  "type": "large-grid2"
+                  "detailsPage": "/pages/inhert/songs/details",
+                  "type": "large-image"
                 },
                 {
                   "text": "“世界闽南语金曲盛典”",

+ 18 - 0
src/pages/inhert/songs/details.vue

@@ -0,0 +1,18 @@
+<template>
+  <DetailsCommon ref="pageRef" commonRefName="活动" commonRefTarget="product" />
+</template>
+
+<script setup lang="ts">
+import { ref } from 'vue';
+import DetailsCommon from '../intangible/DetailsCommon.vue';
+import { onShareAppMessage, onShareTimeline } from '@dcloudio/uni-app';
+
+const pageRef = ref();
+
+onShareTimeline(() => {
+  return pageRef.value?.getPageShareData() || {}; 
+})
+onShareAppMessage(() => {
+  return pageRef.value?.getPageShareData() || {};
+})
+</script>