|
@@ -12,12 +12,7 @@
|
|
|
</template>
|
|
|
</search-bar>
|
|
|
<view class="second-tabs">
|
|
|
- <view
|
|
|
- :class="['item', item.ChartPermissionId == tabAct_id && 'tabs-active']"
|
|
|
- v-for="(item, index) in tabBars"
|
|
|
- :key="item.ChartPermissionId"
|
|
|
- @click="toggleTab(item, index)"
|
|
|
- >
|
|
|
+ <view :class="['item', item.ChartPermissionId == tabAct_id && 'tabs-active']" v-for="(item, index) in tabBars" :key="item.ChartPermissionId" @click="toggleTab(item, index)">
|
|
|
{{ item.PermissionName }}
|
|
|
<view class="active" v-if="item.ChartPermissionId == tabAct_id"></view>
|
|
|
</view>
|
|
@@ -25,14 +20,22 @@
|
|
|
</view>
|
|
|
<!-- 内容 -->
|
|
|
<view class="strategy" v-if="strategyIndex >= 4">
|
|
|
+ <view class="banne-content" v-if="strategyIndex == 4">
|
|
|
+ <swiper autoplay :interval="4000" circular>
|
|
|
+ <view v-for="(bannerItem, index) in bannerDataList" :key="index" @click.native="bannerSwiperHandler(bannerItem)">
|
|
|
+ <swiper-item>
|
|
|
+ <image :src="bannerItem.IndexImg"></image>
|
|
|
+ </swiper-item>
|
|
|
+ </view>
|
|
|
+ </swiper>
|
|
|
+ <view class="bulletin" @click="lookBulletinhandler">
|
|
|
+ <image :src="bulletinData.IndexImg"></image>
|
|
|
+ <image v-if="bulletinData.IsShowSustainable" class="limit-img" src="https://hzchart.oss-cn-shanghai.aliyuncs.com/cygx/czbk/limit_icon.png"></image>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
<view class="tab-cont-two">
|
|
|
<block v-for="(item, index) in tabBarsTow" :key="item.CategoryId">
|
|
|
- <view
|
|
|
- :id="'__' + index"
|
|
|
- class="scroll-tab-item"
|
|
|
- :class="{ active: tabAct_idTwo == item.CategoryId }"
|
|
|
- @click.stop="toggleTabTwo(item, index)"
|
|
|
- >
|
|
|
+ <view :id="'__' + index" class="scroll-tab-item" :class="{ active: tabAct_idTwo == item.CategoryId }" @click.stop="toggleTabTwo(item, index)">
|
|
|
{{ item.MatchTypeName }}
|
|
|
<text class="reg-text" v-if="item.IsRed"></text>
|
|
|
</view>
|
|
@@ -80,12 +83,7 @@
|
|
|
</view>
|
|
|
</view>
|
|
|
<view v-if="labelListData.length" :class="[labelListData.length > 9 ? 'label-content-column' : 'label-content']">
|
|
|
- <view
|
|
|
- @click="strategyLabelHadel(item)"
|
|
|
- :class="['item', item.Stock.length > 6 && 'item-size', 'text_oneLine']"
|
|
|
- v-for="item in labelListData"
|
|
|
- :key="item.ArticleId"
|
|
|
- >
|
|
|
+ <view @click="strategyLabelHadel(item)" :class="['item', item.Stock.length > 6 && 'item-size', 'text_oneLine']" v-for="item in labelListData" :key="item.ArticleId">
|
|
|
{{ item.Stock }}
|
|
|
</view>
|
|
|
</view>
|
|
@@ -127,12 +125,7 @@
|
|
|
</view>
|
|
|
<view class="content-box" @click="goIndustryReport(item.IndustrialManagementId)">
|
|
|
<view class="read-more">
|
|
|
- <view
|
|
|
- class="industry-video-item"
|
|
|
- @click.stop="handelVideoPlay(item)"
|
|
|
- :style="{ 'background-image': 'url(' + item.IndustryVideo.BackgroundImg + ')' }"
|
|
|
- v-if="item.IndustryVideo"
|
|
|
- >
|
|
|
+ <view class="industry-video-item" @click.stop="handelVideoPlay(item)" :style="{ 'background-image': 'url(' + item.IndustryVideo.BackgroundImg + ')' }" v-if="item.IndustryVideo">
|
|
|
5min
|
|
|
<br />
|
|
|
逻辑解析
|
|
@@ -142,14 +135,10 @@
|
|
|
</view>
|
|
|
<block v-if="item.IndustrialSubjectList">
|
|
|
<view v-if="item.IndustryVideo" style="display: flex; flex-wrap: wrap; width: 420rpx">
|
|
|
- <view v-for="val in item.IndustrialSubjectList.slice(0, 4)" :key="val.IndustrialSubjectId" class="text-box">{{
|
|
|
- val.SubjectName
|
|
|
- }}</view>
|
|
|
+ <view v-for="val in item.IndustrialSubjectList.slice(0, 4)" :key="val.IndustrialSubjectId" class="text-box">{{ val.SubjectName }}</view>
|
|
|
</view>
|
|
|
<block v-if="item.IndustryVideo && item.IndustrialSubjectList.length > 4">
|
|
|
- <view v-for="val in item.IndustrialSubjectList.slice(4)" :key="val.IndustrialSubjectId" class="text-box">{{
|
|
|
- val.SubjectName
|
|
|
- }}</view>
|
|
|
+ <view v-for="val in item.IndustrialSubjectList.slice(4)" :key="val.IndustrialSubjectId" class="text-box">{{ val.SubjectName }}</view>
|
|
|
</block>
|
|
|
<block v-if="!item.IndustryVideo">
|
|
|
<view v-for="val in item.IndustrialSubjectList" :key="val.IndustrialSubjectId" class="text-box">{{ val.SubjectName }}</view>
|
|
@@ -179,12 +168,7 @@
|
|
|
<freeCharge class="free-charge" :isShowFreeBtn="isShowFree" />
|
|
|
<!-- 视频模块 -->
|
|
|
<videoModule :showVideoPop.sync="showVideoPop" :videoPopList="videoPopList" />
|
|
|
- <modalDialog
|
|
|
- :isShowhasPermission="isShowhasPermission"
|
|
|
- :applyForIsShow="applyForIsShow"
|
|
|
- :jurisdictionList="jurisdictionList"
|
|
|
- :hasPermission="hasPermission"
|
|
|
- />
|
|
|
+ <modalDialog :isShowhasPermission="isShowhasPermission" :applyForIsShow="applyForIsShow" :jurisdictionList="jurisdictionList" :hasPermission="hasPermission" />
|
|
|
<Loading />
|
|
|
</view>
|
|
|
</template>
|
|
@@ -198,7 +182,7 @@ import modalDialog from "@/components/modalDialog.vue";
|
|
|
import SearchBar from "@/components/search-bar/searchBar.vue";
|
|
|
import TimeLine from "@/components/report/timeLine.vue";
|
|
|
|
|
|
-import { Reports } from "@/config/api.js";
|
|
|
+import { Reports, Home } from "@/config/api.js";
|
|
|
let app = getApp();
|
|
|
export default {
|
|
|
components: {
|
|
@@ -260,10 +244,13 @@ export default {
|
|
|
Content: "<p>hello,world</p><p>hello,world</p><p>hello,world</p>",
|
|
|
}, //第一项是为了获取当前手机下,三行是多少相对高度
|
|
|
],
|
|
|
+ bannerDataList: [],
|
|
|
+ bulletinData: {},
|
|
|
};
|
|
|
},
|
|
|
onLoad(option) {
|
|
|
this.loadList(option);
|
|
|
+ this.getBannerList();
|
|
|
},
|
|
|
watch: {
|
|
|
//监听tabs的变化
|
|
@@ -577,6 +564,28 @@ export default {
|
|
|
//去往文章详情页面
|
|
|
uni.navigateTo({ url: "/pageMy/reportDetail/reportDetail?id=" + item.ArticleId });
|
|
|
},
|
|
|
+ // 获取banner 列表
|
|
|
+ async getBannerList() {
|
|
|
+ const res = await Reports.collectionBannerList();
|
|
|
+ if (res.Ret === 200) {
|
|
|
+ console.log(res);
|
|
|
+ this.bannerDataList = res.Data.ListA || [];
|
|
|
+ console.log(this.bannerDataList);
|
|
|
+ this.bulletinData = res.Data.ListB || {};
|
|
|
+ }
|
|
|
+ },
|
|
|
+ // bannaer 点击事件
|
|
|
+ bannerSwiperHandler(item) {
|
|
|
+ uni.navigateTo({
|
|
|
+ url: item.Path,
|
|
|
+ });
|
|
|
+ },
|
|
|
+ // 精选看板的点击事件
|
|
|
+ lookBulletinhandler() {
|
|
|
+ uni.navigateTo({
|
|
|
+ url: "/reportPages/selectedBulletin/selectedBulletin",
|
|
|
+ });
|
|
|
+ },
|
|
|
},
|
|
|
/* 触底 */
|
|
|
onReachBottom: Throttle(function () {
|
|
@@ -749,6 +758,41 @@ export default {
|
|
|
.label-content-column .item-size {
|
|
|
font-size: 24rpx;
|
|
|
}
|
|
|
+ .banne-content {
|
|
|
+ // height: 110rpx;
|
|
|
+ width: 100%;
|
|
|
+ padding: 20rpx 30rpx 0;
|
|
|
+ overflow: hidden;
|
|
|
+ margin: 0 auto 20rpx;
|
|
|
+ border-radius: 8rpx;
|
|
|
+ display: flex;
|
|
|
+ justify-content: space-between;
|
|
|
+ swiper {
|
|
|
+ width: 447rpx;
|
|
|
+ height: 110rpx;
|
|
|
+ border-radius: 16rpx;
|
|
|
+ overflow: hidden;
|
|
|
+ }
|
|
|
+ image {
|
|
|
+ width: 100%;
|
|
|
+ height: 100%;
|
|
|
+ }
|
|
|
+ .bulletin {
|
|
|
+ position: relative;
|
|
|
+ width: 214rpx;
|
|
|
+ height: 110rpx;
|
|
|
+ border-radius: 16rpx;
|
|
|
+ overflow: hidden;
|
|
|
+ .limit-img {
|
|
|
+ position: absolute;
|
|
|
+ top: 0;
|
|
|
+ right: 0;
|
|
|
+ width: 50rpx;
|
|
|
+ height: 26rpx;
|
|
|
+ z-index: 1;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|
|
|
.content-intimate {
|
|
|
position: fixed;
|