...
|
...
|
@@ -3,8 +3,8 @@ |
|
|
<cheader :title="sortName" class="list-header">
|
|
|
<i class="icon icon-filter" slot="right" @click="openFilter"></i>
|
|
|
</cheader>
|
|
|
<order :config="orderConfig" :val="order"></order>
|
|
|
<List :data="productList"></List>
|
|
|
<order :config="orderConfig" :val="order" V-if="!empty"></order>
|
|
|
<List :data="productList" :empty="empty"></List>
|
|
|
<Filter :config="filterConfig" v-ref:filter></Filter>
|
|
|
</div>
|
|
|
</template>
|
...
|
...
|
@@ -49,6 +49,11 @@ |
|
|
inSearching: false // 请求中
|
|
|
};
|
|
|
},
|
|
|
computed: {
|
|
|
empty: function() {
|
|
|
return this.page !== 0 && !this.productList.length;
|
|
|
}
|
|
|
},
|
|
|
components: {
|
|
|
cheader,
|
|
|
list,
|
...
|
...
|
@@ -60,7 +65,6 @@ |
|
|
const self = this;
|
|
|
const nextPage = this.page + 1;
|
|
|
|
|
|
console.log(nextPage);
|
|
|
if (this.inSearching) {
|
|
|
return;
|
|
|
}
|
...
|
...
|
@@ -98,10 +102,6 @@ |
|
|
this.$refs.filter.isVisible = true;
|
|
|
},
|
|
|
|
|
|
// openFilterSub: function(classify) {
|
|
|
// console.log('TODO: open filter sub', classify);
|
|
|
// },
|
|
|
|
|
|
/**
|
|
|
* 清空数据(page=0) 重新搜索
|
|
|
*/
|
...
|
...
|
|