|
@@ -22,12 +22,16 @@
|
|
<view class="strategy" v-if="strategyIndex >= 4">
|
|
<view class="strategy" v-if="strategyIndex >= 4">
|
|
<view class="banne-content" v-if="strategyIndex == 4">
|
|
<view class="banne-content" v-if="strategyIndex == 4">
|
|
<swiper autoplay :interval="4000" circular indicator-dots>
|
|
<swiper autoplay :interval="4000" circular indicator-dots>
|
|
- <view v-for="item in bannerDataList" :key="item.BannerId" @click="bannerSwiperHandler(item)">
|
|
|
|
|
|
+ <view v-for="(bannerItem, index) in bannerDataList" :key="index" @click.native="bannerSwiperHandler(bannerItem)">
|
|
<swiper-item>
|
|
<swiper-item>
|
|
- <image :src="item.IndexImg"></image>
|
|
|
|
|
|
+ <image :src="bannerItem.IndexImg"></image>
|
|
</swiper-item>
|
|
</swiper-item>
|
|
</view>
|
|
</view>
|
|
</swiper>
|
|
</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>
|
|
<view class="tab-cont-two">
|
|
<view class="tab-cont-two">
|
|
<block v-for="(item, index) in tabBarsTow" :key="item.CategoryId">
|
|
<block v-for="(item, index) in tabBarsTow" :key="item.CategoryId">
|
|
@@ -241,6 +245,7 @@ export default {
|
|
}, //第一项是为了获取当前手机下,三行是多少相对高度
|
|
}, //第一项是为了获取当前手机下,三行是多少相对高度
|
|
],
|
|
],
|
|
bannerDataList: [],
|
|
bannerDataList: [],
|
|
|
|
+ bulletinData: {},
|
|
};
|
|
};
|
|
},
|
|
},
|
|
onLoad(option) {
|
|
onLoad(option) {
|
|
@@ -561,36 +566,25 @@ export default {
|
|
},
|
|
},
|
|
// 获取banner 列表
|
|
// 获取banner 列表
|
|
async getBannerList() {
|
|
async getBannerList() {
|
|
- const res = await Home.bannerList();
|
|
|
|
|
|
+ const res = await Reports.collectionBannerList();
|
|
if (res.Ret === 200) {
|
|
if (res.Ret === 200) {
|
|
- this.bannerDataList = res.Data.List || [];
|
|
|
|
|
|
+ console.log(res);
|
|
|
|
+ this.bannerDataList = res.Data.ListA || [];
|
|
|
|
+ console.log(this.bannerDataList);
|
|
|
|
+ this.bulletinData = res.Data.ListB || {};
|
|
}
|
|
}
|
|
},
|
|
},
|
|
// bannaer 点击事件
|
|
// bannaer 点击事件
|
|
- async bannerSwiperHandler(item) {
|
|
|
|
- let { Type, SourceId, Path } = item.BannerUrlResp;
|
|
|
|
- if (Type == 1) return;
|
|
|
|
- await Home.bannerHistory({
|
|
|
|
- BannerId: item.BannerId,
|
|
|
|
|
|
+ bannerSwiperHandler(item) {
|
|
|
|
+ uni.navigateTo({
|
|
|
|
+ url: item.Path,
|
|
|
|
+ });
|
|
|
|
+ },
|
|
|
|
+ // 精选看板的点击事件
|
|
|
|
+ lookBulletinhandler() {
|
|
|
|
+ uni.navigateTo({
|
|
|
|
+ url: "/reportPages/selectedBulletin/selectedBulletin",
|
|
});
|
|
});
|
|
- if (Type == 5) {
|
|
|
|
- let obj = {
|
|
|
|
- BackgroundImg: "https://hzchart.oss-cn-shanghai.aliyuncs.com/cygx/czbk/my_log.png",
|
|
|
|
- Id: SourceId,
|
|
|
|
- PlaySeconds: "15",
|
|
|
|
- ResourceUrl: "https://hzstatic.hzinsights.com/static/yb/video/8617330c2a76e0c35999f6466b4470c4.mp4",
|
|
|
|
- Title: "三分钟了解弘则研究体系和方法论",
|
|
|
|
- Type: "三分钟了解弘则研究体系和方法论",
|
|
|
|
- };
|
|
|
|
- this.videoPopListUp = obj;
|
|
|
|
- this.showVideoPopUp = true;
|
|
|
|
- await Mine.addHistory();
|
|
|
|
- } else {
|
|
|
|
- Path &&
|
|
|
|
- uni.navigateTo({
|
|
|
|
- url: Path + SourceId,
|
|
|
|
- });
|
|
|
|
- }
|
|
|
|
},
|
|
},
|
|
},
|
|
},
|
|
/* 触底 */
|
|
/* 触底 */
|
|
@@ -765,18 +759,39 @@ export default {
|
|
font-size: 24rpx;
|
|
font-size: 24rpx;
|
|
}
|
|
}
|
|
.banne-content {
|
|
.banne-content {
|
|
- height: 200rpx;
|
|
|
|
- width: 682rpx;
|
|
|
|
|
|
+ height: 110rpx;
|
|
|
|
+ width: 100%;
|
|
|
|
+ padding: 0 30rpx;
|
|
overflow: hidden;
|
|
overflow: hidden;
|
|
margin: 20rpx auto;
|
|
margin: 20rpx auto;
|
|
border-radius: 8rpx;
|
|
border-radius: 8rpx;
|
|
|
|
+ display: flex;
|
|
|
|
+ justify-content: space-between;
|
|
swiper {
|
|
swiper {
|
|
- height: 202rpx;
|
|
|
|
|
|
+ width: 447rpx;
|
|
|
|
+ height: 110rpx;
|
|
|
|
+ border-radius: 16rpx;
|
|
|
|
+ overflow: hidden;
|
|
}
|
|
}
|
|
image {
|
|
image {
|
|
width: 100%;
|
|
width: 100%;
|
|
height: 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 {
|
|
.content-intimate {
|