|
@@ -30,12 +30,13 @@
|
|
|
</swiper>
|
|
|
</view>
|
|
|
<view class="tab-cont-two">
|
|
|
- <view v-for="(item, index) in tabBarsTow" :key="index" class="scroll-tab-box">
|
|
|
+ <view v-for="(item, index) in strategyDataTab()" :key="index" class="scroll-tab-box">
|
|
|
<view v-for="key in item.Items" :key="key.CategoryId" :id="'__' + index" class="scroll-tab-item" :class="{ active: tabAct_idTwo == key.CategoryId }" @click.stop="toggleTabTwo(key, index)">
|
|
|
{{ key.MatchTypeName }}
|
|
|
<text class="reg-text" v-if="key.IsRed"></text>
|
|
|
</view>
|
|
|
</view>
|
|
|
+ <text v-if="tabAct_id === 23 && strategyDataTab().length" class="read-more-text" @click="clickReadMore"> {{ strategyShowMore ? "收起" : "展开" }}</text>
|
|
|
</view>
|
|
|
<view class="row"> </view>
|
|
|
<block v-if="tabAct_idTwo != 99999">
|
|
@@ -252,6 +253,8 @@ export default {
|
|
|
timeLine: [], //时间线数据
|
|
|
bannerDataList: [],
|
|
|
bulletinData: {},
|
|
|
+
|
|
|
+ strategyShowMore: true, // 策略下的展开收起
|
|
|
};
|
|
|
},
|
|
|
onLoad(option) {
|
|
@@ -339,14 +342,12 @@ export default {
|
|
|
//tabs切换事件
|
|
|
toggleTab(item, index) {
|
|
|
this.strategyIndex = index;
|
|
|
- console.log(this.strategyIndex);
|
|
|
this.tabAct_idTwo = "";
|
|
|
this.deepCoverFocus = [];
|
|
|
this.labelListData = [];
|
|
|
this.tabBarsTow = [];
|
|
|
if (this.tabAct_id !== item.ChartPermissionId) {
|
|
|
this.tabAct_id = item.ChartPermissionId;
|
|
|
- console.log(this.tabAct_id, "this.tabAct_id");
|
|
|
this.$store.dispatch("statistics", {
|
|
|
PageType: "Report",
|
|
|
ChartPermissionId: Number(this.tabAct_id),
|
|
@@ -639,6 +640,14 @@ export default {
|
|
|
url: "/reportPages/selectedBulletin/selectedBulletin",
|
|
|
});
|
|
|
},
|
|
|
+ // 点击了策略下的展开收起
|
|
|
+ clickReadMore() {
|
|
|
+ this.strategyShowMore = !this.strategyShowMore;
|
|
|
+ },
|
|
|
+ // 策略的tab数据处理
|
|
|
+ strategyDataTab() {
|
|
|
+ return this.tabAct_id != 23 ? this.tabBarsTow : this.strategyShowMore ? this.tabBarsTow : [this.tabBarsTow[0]];
|
|
|
+ },
|
|
|
},
|
|
|
/* 触底 */
|
|
|
onReachBottom: Throttle(function () {
|