bding hace 9 meses
padre
commit
85a231f515
Se han modificado 1 ficheros con 8 adiciones y 2 borrados
  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>