7.15
This commit is contained in:
@@ -20,7 +20,8 @@
|
||||
<swiper-item>
|
||||
<scroll-view style="width:100%;height:100%" scroll-y="true">
|
||||
<view class="box">
|
||||
<indexad style="width:690rpx"></indexad>
|
||||
<!-- <indexad style="width:690rpx"></indexad> -->
|
||||
<u-swiper mode="dot" :list="indexImageSwiper" name="adv_code"></u-swiper>
|
||||
<view class="list">
|
||||
<view >
|
||||
<videoItem v-for="item in articleList.filter((_, index) => !(index&1))" :key="item.article_id" :item="item" @getArticlelist="getArticlelist"></videoItem>
|
||||
@@ -35,7 +36,7 @@
|
||||
<swiper-item>
|
||||
<scroll-view style="width:100%;height:100%" scroll-y="true">
|
||||
<view class="box">
|
||||
<indexad style="width:690rpx"></indexad>
|
||||
<u-swiper mode="dot" :list="zhiboImageSwiper" name="adv_code"></u-swiper>
|
||||
<view class="list">
|
||||
<view >
|
||||
<zhiboItem v-for="item in 10"></zhiboItem>
|
||||
@@ -185,6 +186,8 @@ export default {
|
||||
page: 0, // 0即第一页
|
||||
articleList: [],
|
||||
recommendList: [], // 推荐达人
|
||||
indexImageSwiper: [],
|
||||
zhiboImageSwiper: [],
|
||||
}
|
||||
},
|
||||
components:{
|
||||
@@ -196,8 +199,24 @@ export default {
|
||||
onShow(){
|
||||
this.getArticlelist();
|
||||
this.getRecommendList();
|
||||
this.getSwiper();
|
||||
this.getZhiBoSwiper();
|
||||
},
|
||||
methods:{
|
||||
getSwiper() {
|
||||
this.$u.api.getIndexSwiper().then(res => {
|
||||
if(res.errCode == 0) {
|
||||
this.indexImageSwiper = res.data;
|
||||
}
|
||||
})
|
||||
},
|
||||
getZhiBoSwiper() {
|
||||
this.$u.api.getZhiBoSwiper().then(res => {
|
||||
if(res.errCode == 0) {
|
||||
this.zhiboImageSwiper = res.data;
|
||||
}
|
||||
})
|
||||
},
|
||||
dianji(a){
|
||||
// console.log(a)
|
||||
if(typeof a == "object"){
|
||||
|
||||
Reference in New Issue
Block a user