|
|
<template>
|
|
|
<LayoutApp :show-back="true" :title="title">
|
|
|
<Scroll :scroll-events="['scroll-end','scroll']"
|
|
|
@scroll-end="fetchList"
|
|
|
@scroll-end="fetchList(isMore)"
|
|
|
v-if="favoriteProductList.list.length"
|
|
|
>
|
|
|
<ProductList :list="favoriteProductList.list"></ProductList>
|
...
|
...
|
@@ -43,10 +43,10 @@ export default { |
|
|
this.fetchFavoriteList();
|
|
|
},
|
|
|
methods: {
|
|
|
...mapActions(['fetchFavoriteList','isMore']),
|
|
|
...mapActions(['fetchFavoriteList']),
|
|
|
|
|
|
async fetchList() {
|
|
|
if(isMore){
|
|
|
async fetchList(isMore) {
|
|
|
if(this.isMore){
|
|
|
await this.fetchFavoriteList();
|
|
|
}
|
|
|
|
...
|
...
|
@@ -63,7 +63,7 @@ export default { |
|
|
},
|
|
|
|
|
|
computed: {
|
|
|
...mapState(['favoriteProductList']),
|
|
|
...mapState(['favoriteProductList','isMore']),
|
|
|
},
|
|
|
};
|
|
|
</script>
|
...
|
...
|
|