...
|
...
|
@@ -9,11 +9,11 @@ |
|
|
@scroll="scrollHandler"
|
|
|
@scroll-end="scrollEndHandler"
|
|
|
@pulling-up="onPullingUp" >
|
|
|
<div class="channel-body" ref="body">
|
|
|
<div ref="body">
|
|
|
<div ref="topSource" class="channel-html">
|
|
|
<div class="search-header middle" @click="goSearch">
|
|
|
<div class="search-img"></div>
|
|
|
<input class="search-input" type="search" disabled="true" placeholder="搜索商品名称或货号"/>
|
|
|
<input class="search-input" type="search" disabled="true" :placeholder="defaultSearchWord || '搜索商品名称或货号'"/>
|
|
|
</div>
|
|
|
<template v-for="(item, index) in channelList.list">
|
|
|
<Swiper :list="item.data" :ref="index" :PAGE_URL="PAGE_URL" :key="index" v-if="item.template_name == 'threePicture'"/>
|
...
|
...
|
@@ -111,7 +111,7 @@ export default { |
|
|
};
|
|
|
},
|
|
|
computed: {
|
|
|
...mapState(['channelList', 'contentCode']),
|
|
|
...mapState(['channelList', 'contentCode', 'defaultSearchWord']),
|
|
|
navList() {
|
|
|
return get(find(this.channelList.list, ['template_name', 'guessLike']), 'data') || [];
|
|
|
},
|
...
|
...
|
@@ -151,6 +151,8 @@ export default { |
|
|
this.init();
|
|
|
// this.getAllInboxCatInfo();
|
|
|
|
|
|
this.fetchDefaultSearchWord()
|
|
|
|
|
|
this.PAGE_URL = window.location.href;
|
|
|
|
|
|
if (!this.reported) {
|
...
|
...
|
@@ -189,7 +191,7 @@ export default { |
|
|
this.reported = true;
|
|
|
},
|
|
|
methods: {
|
|
|
...mapActions(['fetchChannelList', 'getAllInboxCatInfo']),
|
|
|
...mapActions(['fetchChannelList', 'getAllInboxCatInfo', 'fetchDefaultSearchWord']),
|
|
|
...mapActionsList(['fetchProductList']),
|
|
|
init() {
|
|
|
this.$nextTick(() => {
|
...
|
...
|
@@ -489,7 +491,7 @@ export default { |
|
|
content: "";
|
|
|
width: 520px;
|
|
|
height: 28px;
|
|
|
background-image: url("~statics/image/channel/server.png");
|
|
|
background-image: url("~statics/image/channel/service-info.png");
|
|
|
background-size: 100% 100%;
|
|
|
margin: 10px auto 20px;
|
|
|
display: block;
|
...
|
...
|
|