|
@@ -31,7 +31,7 @@
|
|
|
<text class="text_oneLine" style="display: inline"> # {{ item.IndustryName }} </text>
|
|
|
<image class="new-img" v-if="item.IsNew" src="https://hzchart.oss-cn-shanghai.aliyuncs.com/cygx/czbk/new_icon.png"></image>
|
|
|
</view>
|
|
|
- <text :class="item.IsFollw ? 'cancel-attention' : 'attention'" @click="isAttention(item, '主题')">{{ item.IsFollw ? "取消关注" : "+ 关注" }}</text>
|
|
|
+ <text :class="item.IsFollow ? 'cancel-attention' : 'attention'" @click="isAttention(item, '主题')">{{ item.IsFollow ? "取消关注" : "+ 关注" }}</text>
|
|
|
</view>
|
|
|
<view class="li-item read-more" @click="themeDetails(item)">
|
|
|
<text class="text-box text_oneLine" v-for="val in item.IndustrialSubjectList" :key="val.IndustrialSubjectId">
|
|
@@ -149,7 +149,7 @@ export default {
|
|
|
},
|
|
|
//去往主题详情
|
|
|
themeDetails(item) {
|
|
|
- this.$store.dispatch("checkHandle", "/reportPages/researchTheme/researchTheme?id=" + item.IndustrialManagementId);
|
|
|
+ this.$store.dispatch("checkHandle", "/reportPages/researchTheme/researchTheme?id=" + item.IndustrialManagementId+"&source=2");
|
|
|
},
|
|
|
//计算遍历的颜色
|
|
|
serialBackground(index) {
|
|
@@ -160,7 +160,8 @@ export default {
|
|
|
async isAttention(item, val) {
|
|
|
const res = val === "主题" ? await Reports.reportFllow({ IndustrialManagementId: item.IndustrialManagementId }) : await Reports.reportFllowDepartment({ DepartmentId: item.DepartmentId });
|
|
|
if (res.Ret === 200) {
|
|
|
- item.IsFollw = !item.IsFollw;
|
|
|
+ console.log(item);
|
|
|
+ item.IsFollow = !item.IsFollow;
|
|
|
if (res.Data.Status == 1) {
|
|
|
this.goFollowShow = true;
|
|
|
this.confirmText = res.Data.GoFollow ? "去关注" : "知道了";
|
|
@@ -188,6 +189,11 @@ export default {
|
|
|
}
|
|
|
this.goFollowShow = false;
|
|
|
},
|
|
|
+ goDetail(item) {
|
|
|
+ uni.navigateTo({
|
|
|
+ url: "/pageMy/reportDetail/reportDetail?id=" + item.ArticleId,
|
|
|
+ });
|
|
|
+ },
|
|
|
},
|
|
|
onLoad() {
|
|
|
this.getTabList();
|