Parcourir la source

📦 修改非遗项目显示

imengyu il y a 1 mois
Parent
commit
f6007cd60f

+ 12 - 0
src/pages/inhert/inheritor/details.vue

@@ -60,6 +60,18 @@
         small
         :descItems="[
           {
+            label: '传承项目',
+            value: content.associationMeList[0]?.title || '暂无',
+          }, 
+          {
+            label: '级别',
+            value: content.levelLext || '暂无',
+          }, 
+          {
+            label: '生日',
+            value: content.dateBirth,
+          }, 
+          {
             label: '生日',
             value: content.dateBirth,
           }, 

+ 26 - 8
src/pages/inhert/intangible/details.vue

@@ -69,14 +69,31 @@
     </template>
     <template #titleExtra="{ content }">
       <view class="d-flex flex-col">
-        <text class="color-text-content-second size-s">
-          <text class="iconfont icon-place mr-2"></text>
-          {{ content.address || content.regionText }}
-        </text>
-        <text class="color-text-content-second size-s">
-          <text class="iconfont icon-go mr-2"></text>
-          {{ content.ichTypeText || '非遗项目' }}
-        </text>
+        <IntroBlock 
+          small
+          :descItems="[
+            {
+              label: '级别',
+              value: content.levelText ,
+            },
+            {
+              label: '类别',
+              value: content.batch ,
+            },
+            {
+              label: '批次',
+              value: content.ichTypeText ,
+            },
+            {
+              label: '所属区域',
+              value: content.regionText ,
+            },
+            {
+              label: '单位',
+              value: content.unit 
+            },
+          ]"
+        />
       </view>
     </template>
   </DetailTabPage>
@@ -90,6 +107,7 @@ import type { Ref } from "vue";
 import InheritorContent from "@/api/inheritor/InheritorContent";
 import ProductsContent from "@/api/inheritor/ProductsContent";
 import SeminarContent from "@/api/inheritor/SeminarContent";
+import IntroBlock from "@/pages/article/common/IntroBlock.vue";
 
 async function load(id: number, tabsArray: Ref<TabControlItem[]>) {
   const d = await ProjectsContent.getContentDetail(id);