Authored by 陈轩

fix BLK-956

<template>
<shop-top v-bind:shop-info="shopInfo"></shop-top>
<div v-bind:class='{"shop-goods-top": !shopInfo.isBlkShop}'>
<goods-list v-bind:data="productList"></goods-list>
<goods-list v-bind:data="productList" :empty="empty"></goods-list>
</div>
<filter :config="filterConfig" v-ref:filter></filter>
<top-bar v-bind:share-data="shareData"></top-bar>
</template>
<style>
#shop {
.empty-tip {
margin-top: 40px;
}
}
.shop-goods-top {
margin-top: 140px;
}
... ... @@ -53,6 +58,11 @@
inSearching: false
};
},
computed: {
empty: function() {
return this.page !== 0 && !this.productList.length;
}
},
watch: {
/* order 和 filter 改变 都会触发 重新搜索 (想象成清空所有分页) */
... ...