Explorar o código

📦 非遗同级别显示加地区

imengyu hai 3 semanas
pai
achega
bd37befead
Modificáronse 1 ficheiros con 3 adicións e 2 borrados
  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>