|
@@ -70,31 +70,12 @@
|
|
|
<image src="https://hzchart.oss-cn-shanghai.aliyuncs.com/cygx/czbk/property_ico.png" style="height: 50rpx"></image>
|
|
|
<text class="text-sub">细分产业</text>
|
|
|
</view>
|
|
|
- <!-- <van-dropdown-menu active-color="#333333">
|
|
|
- <van-dropdown-item id="menuItem" @open="isscroll" :title="overallArrangementName">
|
|
|
- <view class="menu-items">
|
|
|
- <view class="menu-items-box" @click="overallBtn(index, item)" v-for="(item, index) in overallArrangement" :key="item.id">
|
|
|
- <view class="items-box">
|
|
|
- <u-icon v-show="item.isShow" name="checkbox-mark" color="#2C83FF" size="24"> </u-icon>
|
|
|
- </view>
|
|
|
- <text>{{ item.name }}</text>
|
|
|
- </view>
|
|
|
- </view>
|
|
|
- <view class="replacement-box">
|
|
|
- <view class="replacement">
|
|
|
- <text @click="replacementBtn" class="replacement-box">重置</text>
|
|
|
- <text @click="replacementConfirm">确定</text>
|
|
|
- </view>
|
|
|
- </view>
|
|
|
- </van-dropdown-item>
|
|
|
- </van-dropdown-menu> -->
|
|
|
- <!-- <view class="new-recommend">
|
|
|
- <text :class="[pitchOnId == item.id ? 'items-act' : '']" v-for="(item, index) in pitchOn" :key="item.id" @click="pitchClick(item, index)">{{ item.name }}</text>
|
|
|
- </view> -->
|
|
|
- <checkbox-group class="checkbox-content">
|
|
|
- <label style="margin-right:30rpx"> <checkbox value="cb" color="#3385FF" style="transform:scale(0.6)" />深度覆盖 </label>
|
|
|
- <label> <checkbox value="cb" color="#3385FF" style="transform:scale(0.6)" />推荐关注</label>
|
|
|
- </checkbox-group>
|
|
|
+ <view class="checkbox-content">
|
|
|
+ <van-checkbox-group class="checkbox-ui" :value="deepCoverFocus" @change="checkboxChange">
|
|
|
+ <van-checkbox style="margin-right: 30rpx" name="cover" icon-size="14" shape="square">深度覆盖</van-checkbox>
|
|
|
+ <van-checkbox name="focus" icon-size="14" shape="square">推荐关注</van-checkbox>
|
|
|
+ </van-checkbox-group>
|
|
|
+ </view>
|
|
|
</view>
|
|
|
<!-- 需要循环的地方 -->
|
|
|
<view class="forindustry" v-for="item in industryList" :key="item.IndustrialManagementId">
|
|
@@ -108,7 +89,7 @@
|
|
|
<view class="ndustry-box-read">
|
|
|
<text>{{ item.IndustryName }}</text>
|
|
|
<image class="hot-icon" v-if="item.IsHot" src="https://hzchart.oss-cn-shanghai.aliyuncs.com/cygx/hot_report.png" mode=""></image>
|
|
|
- <image src="https://hzchart.oss-cn-shanghai.aliyuncs.com/cygx/new_report.png" mode=""></image>
|
|
|
+ <image v-if="item.IsNew" src="https://hzchart.oss-cn-shanghai.aliyuncs.com/cygx/new_report.png" mode=""></image>
|
|
|
</view>
|
|
|
<view class="ndustry-box-arrow">
|
|
|
<text v-if="item.IsRed" class="read"></text>
|
|
@@ -181,18 +162,6 @@ export default {
|
|
|
backgroundImage: "none",
|
|
|
},
|
|
|
tabBarsTow: [],
|
|
|
- // pitchOn: [
|
|
|
- // {
|
|
|
- // name: "最新",
|
|
|
- // id: "NewTime",
|
|
|
- // },
|
|
|
- // {
|
|
|
- // name: "关注度",
|
|
|
- // id: "Recommend",
|
|
|
- // },
|
|
|
- // ],
|
|
|
- // pitchOnId: "NewTime",
|
|
|
- //pitchOnName: '按最近更新排序',
|
|
|
isNum: 1,
|
|
|
strategyIndex: "",
|
|
|
strategyIndexTwo: 0,
|
|
@@ -212,20 +181,7 @@ export default {
|
|
|
haveData: true,
|
|
|
totalPage: "",
|
|
|
matchTypeName: "",
|
|
|
- // overallArrangement: [
|
|
|
- // {
|
|
|
- // name: "新布局产业",
|
|
|
- // id: "1",
|
|
|
- // isShow: false,
|
|
|
- // },
|
|
|
- // {
|
|
|
- // name: "深度研究产业",
|
|
|
- // id: "2",
|
|
|
- // isShow: false,
|
|
|
- // },
|
|
|
- // ],
|
|
|
- // overallArrangementId: "",
|
|
|
- // overallArrangementName: "全部产业",
|
|
|
+ deepCoverFocus: [], //深度覆盖 //推荐关注
|
|
|
isScrollShow: false,
|
|
|
isGuideShow: false,
|
|
|
limitIsShow: false, //限免显示隐藏
|
|
@@ -289,6 +245,7 @@ export default {
|
|
|
//tabs切换事件
|
|
|
toggleTab(item, index) {
|
|
|
this.strategyIndex = index;
|
|
|
+ this.deepCoverFocus = [];
|
|
|
if (this.tabAct_id !== item.ChartPermissionId) {
|
|
|
this.tabAct_id = item.ChartPermissionId;
|
|
|
this.$store.dispatch("statistics", {
|
|
@@ -327,17 +284,6 @@ export default {
|
|
|
});
|
|
|
}
|
|
|
},
|
|
|
- //点击产业报告的筛选条件
|
|
|
- // pitchClick(item) {
|
|
|
- // this.pitchOnName = item.name;
|
|
|
- // this.OrderColumn = item.id;
|
|
|
- // if (this.pitchOnId !== item.id) {
|
|
|
- // this.pitchOnId = item.id;
|
|
|
- // }
|
|
|
- // this.page_no = 1;
|
|
|
- // this.status = "loadmore";
|
|
|
- // this.getIndustryList();
|
|
|
- // },
|
|
|
//获取报告所有品种接口
|
|
|
getTradeList() {
|
|
|
Reports.getTradeList({
|
|
@@ -355,8 +301,8 @@ export default {
|
|
|
OrderColumn: this.OrderColumn,
|
|
|
PageSize: this.pageSize,
|
|
|
CurrentIndex: this.page_no,
|
|
|
- // IsNewLabel: this.overallArrangementId.includes(1) ? "1" : "0",
|
|
|
- // IsDeepLabel: this.overallArrangementId.includes(2) ? "1" : "0",
|
|
|
+ DeepCover: this.deepCoverFocus.includes("cover") ? 1 : 0,
|
|
|
+ RecommendFocus: this.deepCoverFocus.includes("focus") ? 1 : 0,
|
|
|
}).then((res) => {
|
|
|
// this.industryList=res.Data.List
|
|
|
this.status = this.page_no < res.Data.Paging.Pages ? "loadmore" : "nomore";
|
|
@@ -437,42 +383,6 @@ export default {
|
|
|
hideIsred(is) {
|
|
|
this.tabBarsTow[this.strategyIndexTwo].IsRed = is;
|
|
|
},
|
|
|
- /* 新布局产业选项*/
|
|
|
- // overallBtn(index, item) {
|
|
|
- // this.overallArrangement.forEach((key) => {
|
|
|
- // if (key.id == item.id) {
|
|
|
- // key.isShow = !key.isShow;
|
|
|
- // }
|
|
|
- // });
|
|
|
- // },
|
|
|
- /* 新布局产业选项确定按钮 */
|
|
|
- // replacementConfirm() {
|
|
|
- // const arr = [];
|
|
|
- // const arrName = [];
|
|
|
- // this.overallArrangement.forEach((key) => {
|
|
|
- // if (key.isShow) {
|
|
|
- // arr.push(key.id);
|
|
|
- // arrName.push(key.name);
|
|
|
- // }
|
|
|
- // });
|
|
|
- // this.overallArrangementId = arr.join(",");
|
|
|
- // this.overallArrangementName = arrName.join(",") || "全部产业";
|
|
|
- // this.page_no = 1;
|
|
|
- // this.status = "loadmore";
|
|
|
- // this.getIndustryList();
|
|
|
- // this.selectComponent("#menuItem").toggle();
|
|
|
- // },
|
|
|
- /* 新布局产业选项重置按钮 */
|
|
|
- // replacementBtn() {
|
|
|
- // this.OrderColumn = "NewTime";
|
|
|
- // this.pitchOnId = "NewTime";
|
|
|
- // this.overallArrangement.forEach((key) => (key.isShow = false));
|
|
|
- // this.overallArrangementName = "全部产业";
|
|
|
- // },
|
|
|
- /* 判断页面滚动 */
|
|
|
- // isscroll: Debounce(function () {
|
|
|
- // this.isScrollShow = true;
|
|
|
- // }),
|
|
|
/* 搜索 */
|
|
|
async goSearch() {
|
|
|
await this.$store.dispatch("checkHandle", "/reportPages/reportSearch/reportSearch?id=报告");
|
|
@@ -480,21 +390,12 @@ export default {
|
|
|
/* 初始 */
|
|
|
initList() {
|
|
|
if (this.tabAct_id && this.strategyIndex !== 4 && this.strategyIndex !== 5) {
|
|
|
- // this.OrderColumn = "NewTime";
|
|
|
- // this.pitchOnId = "NewTime";
|
|
|
- // this.overallArrangementName = "全部产业";
|
|
|
- // this.overallArrangementId = "";
|
|
|
this.page_no = 1;
|
|
|
this.refresh = true;
|
|
|
this.getIndustryList();
|
|
|
this.getTradeList();
|
|
|
- // this.overallArrangement.forEach((key) => (key.isShow = false));
|
|
|
}
|
|
|
this.strategyIndex == 4 ? this.getstrategyAll() : (this.tabAct_idTwo = "");
|
|
|
- // if (this.isScrollShow) {
|
|
|
- // this.selectComponent("#menuItem").toggle(false);
|
|
|
- // this.isScrollShow = false;
|
|
|
- // }
|
|
|
this.isNum = 1;
|
|
|
},
|
|
|
/* 页面加载 */
|
|
@@ -528,6 +429,12 @@ export default {
|
|
|
url: "/reportPages/hotList/hotList",
|
|
|
});
|
|
|
},
|
|
|
+ //点击了checkbox
|
|
|
+ checkboxChange(e) {
|
|
|
+ this.deepCoverFocus = e.detail;
|
|
|
+ this.page_no = 1;
|
|
|
+ this.getIndustryList();
|
|
|
+ },
|
|
|
},
|
|
|
/* 触底 */
|
|
|
onReachBottom: Throttle(function () {
|
|
@@ -577,7 +484,7 @@ export default {
|
|
|
fail: (err) => {},
|
|
|
};
|
|
|
},
|
|
|
-
|
|
|
+
|
|
|
onHide() {
|
|
|
if (this.showTransition) {
|
|
|
this.showTransition = false;
|