瀏覽代碼

📦 非遗同级别显示加地区

imengyu 3 周之前
父節點
當前提交
bd37befead
共有 1 個文件被更改,包括 3 次插入2 次删除
  1. 3 2
      src/pages/inhert/intangible/DetailsCommon.vue

+ 3 - 2
src/pages/inhert/intangible/DetailsCommon.vue

@@ -163,7 +163,7 @@
           ]"
         />
         <!-- 同级别非遗项目显示 -->
-        <view v-if=" content.otherLevel && content.otherLevel.length > 0" class="mt-2">
+        <view v-if="content.otherLevel && content.otherLevel.length > 0" class="mt-2">
           <view 
             v-for="(item, k) in content.otherLevel"
             :key="k"
@@ -174,11 +174,12 @@
           >
             <view class="d-flex flex-row align-center">
               <u-tag 
-                :text="StringUtils.cutString(item.levelText as string, 10)"
+                :text="StringUtils.cutString(item.levelText as string, 3)"
                 size="mini" plain color="#d9492e"
                 class="flex-shrink-0"
               />
               <text class="ml-2">{{ item.title }}</text>
+              <text v-if="item.regionText" class="ml-2">({{ item.regionText }})</text>
             </view>
             <text class="iconfont icon-arrow-right"></text>
           </view>