|
@@ -5,7 +5,7 @@
|
|
<view class="top-tabs">
|
|
<view class="top-tabs">
|
|
<block v-for="item in topTabBars" :key="item.Id">
|
|
<block v-for="item in topTabBars" :key="item.Id">
|
|
<view v-if="item.IsShow" :class="['item', item.Id == topTabsActive && 'tabs-active']" @click="topTabsChange(item)">
|
|
<view v-if="item.IsShow" :class="['item', item.Id == topTabsActive && 'tabs-active']" @click="topTabsChange(item)">
|
|
- {{ item.Name}}
|
|
|
|
|
|
+ {{ item.Name }}
|
|
<block v-if="(item.Id === 3 || item.Name == '图表') && wholeShowListData.IsShowChart">
|
|
<block v-if="(item.Id === 3 || item.Name == '图表') && wholeShowListData.IsShowChart">
|
|
<image class="limit-img tabs-img" src="https://hzchart.oss-cn-shanghai.aliyuncs.com/cygx/czbk/limit_icon.png" mode=""></image>
|
|
<image class="limit-img tabs-img" src="https://hzchart.oss-cn-shanghai.aliyuncs.com/cygx/czbk/limit_icon.png" mode=""></image>
|
|
</block>
|
|
</block>
|
|
@@ -486,8 +486,14 @@ export default {
|
|
PageRouter: this.$store.state.pageRouterReport,
|
|
PageRouter: this.$store.state.pageRouterReport,
|
|
});
|
|
});
|
|
if (res.Ret === 200) {
|
|
if (res.Ret === 200) {
|
|
- let index = this.roadshowPageList.findIndex((key) => key.Id == item.Id);
|
|
|
|
- res.Data.Status == 1 ? (this.roadshowPageList[index].IsCollect = true) : (this.roadshowPageList[index].IsCollect = false);
|
|
|
|
|
|
+ let index = this.roadshowPageList.findIndex((key) => key.SourceId == item.SourceId && key.Type == item.Type);
|
|
|
|
+ console.log(index);
|
|
|
|
+ // this.$nextTick(() => {
|
|
|
|
+
|
|
|
|
+ // });
|
|
|
|
+ res.Data.Status == 1 ? this.$set(this.roadshowPageList[index], "IsCollect", true) : this.$set(this.roadshowPageList[index], "IsCollect", false);
|
|
|
|
+ console.log(this.roadshowPageList[index]);
|
|
|
|
+
|
|
uni.showToast({
|
|
uni.showToast({
|
|
title: res.Msg,
|
|
title: res.Msg,
|
|
duration: 2000,
|
|
duration: 2000,
|