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

+ 9 - 0
src/components/display/parse/ParseNodeRender.vue

@@ -7,6 +7,7 @@
     :style="node.attrs?.style || {}" 
     :src="node.attrs?.src || ''" 
     mode="widthFix" 
+    @click="preview(node.attrs?.src as string)"
   />
   
   <!-- 换行 -->
@@ -152,6 +153,14 @@ const linkTap = (e: any) => {
   }
 };
 
+function preview(url: string) {
+  if (url) {
+    uni.previewImage({
+      urls: [url],
+    })
+  }
+}
+
 defineOptions({
   options: {
     inheritAttrs: false,

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

@@ -67,6 +67,7 @@ export function resolveCommonContentIchData(item: GetContentListItem[]) {
       it.ichTypeText, 
       it.batchText,
       it.regionText,
+      it.age, 
     ]
   })
   return item;

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

@@ -192,7 +192,7 @@
                     "type": "serializedApi",
                     "name": "CharacterContent"
                   },
-                  "dataSolve": [ "common" ],
+                  "dataSolve": [ "common", "ich" ],
                   "detailsPage": "/pages/introduction/character/details",
                   "morePage": "/pages/introduction/character/list",
                   "type": ""

+ 5 - 2
src/pages/inhert/inheritor/details.vue

@@ -31,7 +31,7 @@
     <template #extraTabs="{ content, tabCurrentId }">
       <template v-if="tabCurrentId==TAB_ID_PRIZE">
         <!-- 荣誉奖项 -->
-        <Parse :content="content.prize" />
+        <Parse :content="(content.prize as string)" />
       </template>
       <template v-else-if="tabCurrentId==TAB_ID_ASSOCIATION_ME">
         <!-- 非遗项目 -->
@@ -108,7 +108,10 @@
             label: '单位',
             value: content.unit,
           },
-          
+          {
+            label: '年代',
+            value: content.age,
+          },
           {
             label: '传承项目',
             value: content.associationMeList[0]?.title,