Authored by 李奇

列表页this修正

... ... @@ -13,8 +13,10 @@
</ul>
</div>
<div class="filter-detail" v-show="!filterDown">
<filter-item v-for="item in filterItems" :key="item.name" :name="item.name" :choices="item.choices"
v-if="item.choices.length"></filter-item>
<div class="filter-items">
<filter-item v-for="item in filterItems" :key="item.name" :name="item.name" :choices="item.choices"
v-if="item.choices.length"></filter-item>
</div>
<div class="action">
<p class="tip">您可以选择一个或多个筛选项进行筛选</p>
<v-touch tag="a" class="action-btn filter-btn" @tap="filterSearch">筛选</v-touch>
... ... @@ -412,6 +414,11 @@ export default {
overflow: auto;
background-color: #fff;
.filter-items {
max-height: 540px;
overflow: auto;
}
.action {
padding: 0 30px;
... ...
... ... @@ -99,11 +99,11 @@
}, locationQuery, this.filter))
.done(res => {
if (res.data) {
self.page = res.data.page;
self.totalPage = res.data.page_total;
this.page = res.data.page;
this.totalPage = res.data.page_total;
this.productList = this.productList.concat(res.data.product_list);
if (!self.filterConfig) {
if (!this.filterConfig) {
this.filterConfig = res.data.filter;
}
}
... ...