bding 9 meses atrás
pai
commit
85a231f515
1 arquivos alterados com 8 adições e 2 exclusões
  1. 8 2
      components/ItemComponent/activityItem.vue

+ 8 - 2
components/ItemComponent/activityItem.vue

@@ -18,8 +18,8 @@
       </block>
     </view>
     <view class="content-type global_title">
-      <view>
-        {{ list.ActivityTypeName || "专项产业调研" }}
+      <view :class="list.ActivityTypeId == 3 && list.IsResearch ? 'text_oneLine' : ''">
+        {{ titleShowTxt(list) }}
       </view>
       <view v-if="list.ResearchTheme && list.City" class="content-city">
         <image src="https://hzchart.oss-cn-shanghai.aliyuncs.com/new_cygx/position.png"></image>
@@ -638,6 +638,12 @@ export default {
         this.isResearchModalShow = true;
       }
     },
+
+    titleShowTxt(list) {
+      let actTitle = list.ActivityTypeName || "专项产业调研";
+      let researchTitle = list.Label;
+      return list.ActivityTypeId == 3 && list.IsResearch ? researchTitle : actTitle;
+    },
   },
 };
 </script>