...
|
...
|
@@ -30,7 +30,7 @@ |
|
|
</div>
|
|
|
<div class="list-wrap" :style="{minHeight: total + 'px'}">
|
|
|
<ProductList ref="product" :list="productList.list" :yasParams="listYasParams" v-if="productList.list.length > 0"></ProductList>
|
|
|
<UfoNoItem :tip="`暂无数据`" v-else></UfoNoItem>
|
|
|
<UfoNoItem class="channel-no-item" :tip="`暂无数据`" v-else></UfoNoItem>
|
|
|
</div>
|
|
|
</div>
|
|
|
</Scroll>
|
...
|
...
|
@@ -106,6 +106,11 @@ export default { |
|
|
page: null, // 当前页号
|
|
|
coupon_token: null, // 优惠券token
|
|
|
},
|
|
|
selectedCategory: {
|
|
|
pagename: "productList",
|
|
|
productPool: "66",
|
|
|
title: "热门"
|
|
|
}
|
|
|
};
|
|
|
},
|
|
|
computed: {
|
...
|
...
|
@@ -121,6 +126,7 @@ export default { |
|
|
},
|
|
|
activated() {
|
|
|
this.PAGE_URL = window.location.href;
|
|
|
this.fetchList(this.selectedCategory);
|
|
|
// 首页进入上报
|
|
|
this.$store.dispatch('reportYas', {
|
|
|
params: {
|
...
|
...
|
@@ -237,6 +243,7 @@ export default { |
|
|
}
|
|
|
},
|
|
|
getIndex({index,params}) {
|
|
|
this.selectedCategory = params;
|
|
|
this.setYasParam({index,...params});
|
|
|
this.active = Number(index);
|
|
|
this.$refs.scroll.scrollTo(0, -this.navTop, 300);
|
...
|
...
|
@@ -271,7 +278,8 @@ export default { |
|
|
// this.$refs.scroll.forceUpdate();
|
|
|
// return;
|
|
|
// }
|
|
|
await this.fetchList();
|
|
|
|
|
|
await this.fetchList(this.selectedCategory);
|
|
|
this.$refs.scroll.forceUpdate();
|
|
|
},
|
|
|
|
...
|
...
|
@@ -325,6 +333,9 @@ export default { |
|
|
list[key] = data[key];
|
|
|
}
|
|
|
}
|
|
|
if(!Object.keys(data).includes('product_list')) {
|
|
|
list.list = []
|
|
|
}
|
|
|
this.productList = list;
|
|
|
}
|
|
|
}catch(e) {
|
...
|
...
|
@@ -446,6 +457,10 @@ export default { |
|
|
position: relative;
|
|
|
z-index: 1;
|
|
|
}
|
|
|
|
|
|
.channel-no-item {
|
|
|
padding-top: 200px;
|
|
|
}
|
|
|
}
|
|
|
.yohoufo-channel-page {
|
|
|
/deep/ .cube-pullup-wrapper {
|
...
|
...
|
|