|
|
@ -46,7 +46,7 @@
|
|
|
|
class="main__pagination flex flex-right"
|
|
|
|
class="main__pagination flex flex-right"
|
|
|
|
@current-change="handleCurrentChange"
|
|
|
|
@current-change="handleCurrentChange"
|
|
|
|
:current-page.sync="params.pageIndex"
|
|
|
|
:current-page.sync="params.pageIndex"
|
|
|
|
:page-size="100"
|
|
|
|
:page-size="20"
|
|
|
|
layout="prev, pager, next, jumper"
|
|
|
|
layout="prev, pager, next, jumper"
|
|
|
|
:total="total"
|
|
|
|
:total="total"
|
|
|
|
>
|
|
|
|
>
|
|
|
@ -77,6 +77,7 @@ export default {
|
|
|
|
};
|
|
|
|
};
|
|
|
|
},
|
|
|
|
},
|
|
|
|
async created() {
|
|
|
|
async created() {
|
|
|
|
|
|
|
|
this.params.name = this.$route.query.keyword;
|
|
|
|
this.getGoodsListData();
|
|
|
|
this.getGoodsListData();
|
|
|
|
},
|
|
|
|
},
|
|
|
|
methods: {
|
|
|
|
methods: {
|
|
|
@ -125,6 +126,14 @@ export default {
|
|
|
|
vm.getGoodsListData();
|
|
|
|
vm.getGoodsListData();
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
watch: {
|
|
|
|
|
|
|
|
//监听路由
|
|
|
|
|
|
|
|
//监听路由的categoryId属性的数据变化
|
|
|
|
|
|
|
|
"$route.query.keyword": function () {
|
|
|
|
|
|
|
|
this.params.name = this.$route.query.keyword;
|
|
|
|
|
|
|
|
this.getGoodsListData();
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
},
|
|
|
|
};
|
|
|
|
};
|
|
|
|
</script>
|
|
|
|
</script>
|
|
|
|
<style lang="scss" scoped>
|
|
|
|
<style lang="scss" scoped>
|
|
|
|