...
|
...
|
@@ -17,7 +17,7 @@ |
|
|
<input class="search-input" type="search" disabled="true" placeholder="搜索商品名称或货号"/>
|
|
|
</div>
|
|
|
<template v-for="(item, index) in channelList.list">
|
|
|
<Swiper @click="getParams" :list="item.data" :key="index" v-if="item.template_name == 'threePicture'"/>
|
|
|
<Swiper :list="item" :index="index" :key="index" v-if="item.template_name == 'threePicture'"/>
|
|
|
<Hot :list="item.data" :key="index" v-if="item.template_name == 'image_list'"/>
|
|
|
<Banner :list="item.data" :key="index" v-if="item.template_name == 'single_image'"/>
|
|
|
<TwoBanner :list="item.data" :key="index" v-if="item.template_name == 'twoPicture'"/>
|
...
|
...
|
@@ -56,6 +56,7 @@ export default { |
|
|
props: ['hideHeader'],
|
|
|
data() {
|
|
|
return {
|
|
|
reportParams: {},
|
|
|
options: {
|
|
|
pullUpLoad: true,
|
|
|
// pullDownRefresh: true,
|
...
|
...
|
@@ -73,7 +74,6 @@ export default { |
|
|
listBaseParams: {
|
|
|
isHome: true,
|
|
|
},
|
|
|
|
|
|
productList: {
|
|
|
showErrorPage: false,
|
|
|
isFetching: false,
|
...
|
...
|
@@ -118,13 +118,11 @@ export default { |
|
|
if (!this.channelList.list || !this.channelList.list.length) {
|
|
|
this.fetchChannelList();
|
|
|
}
|
|
|
this.init();
|
|
|
},
|
|
|
async serverPrefetch() {
|
|
|
return this.fetchChannelList();
|
|
|
},
|
|
|
mounted() {
|
|
|
this.init();
|
|
|
},
|
|
|
methods: {
|
|
|
...mapActions(['fetchChannelList']),
|
|
|
...mapActionsList(['fetchProductList']),
|
...
|
...
|
@@ -225,9 +223,26 @@ export default { |
|
|
});
|
|
|
},
|
|
|
|
|
|
getParams() {
|
|
|
console.log("2222");
|
|
|
getParams(params) {
|
|
|
this.reportParams = params;
|
|
|
console.log(this.reportParams);
|
|
|
}
|
|
|
|
|
|
// getReportParams(item, index) {
|
|
|
// let { template_id, template_name } = item;
|
|
|
// let PAGE_URL = window.location.href;
|
|
|
|
|
|
// this.searchParams = {
|
|
|
// F_ID: template_id,
|
|
|
// PAGE_URL,
|
|
|
// F_INDEX: index + 1,
|
|
|
// F_NAME: template_name,
|
|
|
// I_INDEX: '',
|
|
|
// F_URL: '',
|
|
|
// }
|
|
|
// console.log(item);
|
|
|
// console.log(this.searchParams);
|
|
|
// }
|
|
|
// onPullingDown() {
|
|
|
// let params = this.searchParams;
|
|
|
|
...
|
...
|
|