diff --git a/assets/img/banner/1.jpg b/assets/img/banner/1.jpg new file mode 100644 index 0000000..33a8733 Binary files /dev/null and b/assets/img/banner/1.jpg differ diff --git a/assets/img/banner/2.jpg b/assets/img/banner/2.jpg new file mode 100644 index 0000000..a8a1646 Binary files /dev/null and b/assets/img/banner/2.jpg differ diff --git a/assets/img/banner/3.jpg b/assets/img/banner/3.jpg new file mode 100644 index 0000000..27ea7f4 Binary files /dev/null and b/assets/img/banner/3.jpg differ diff --git a/assets/img/banner/4.jpg b/assets/img/banner/4.jpg new file mode 100644 index 0000000..ae4d6ff Binary files /dev/null and b/assets/img/banner/4.jpg differ diff --git a/assets/img/banner/jlp.jpg b/assets/img/banner/jlp.jpg new file mode 100644 index 0000000..796b72b Binary files /dev/null and b/assets/img/banner/jlp.jpg differ diff --git a/assets/img/banner/zbk.jpg b/assets/img/banner/zbk.jpg new file mode 100644 index 0000000..7cfdc69 Binary files /dev/null and b/assets/img/banner/zbk.jpg differ diff --git a/assets/img/home/icon-app.png b/assets/img/home/icon-app.png index 5e7dfea..70b88aa 100644 Binary files a/assets/img/home/icon-app.png and b/assets/img/home/icon-app.png differ diff --git a/assets/img/home/icon-message.png b/assets/img/home/icon-message.png index 0c74a3d..c3be6d5 100644 Binary files a/assets/img/home/icon-message.png and b/assets/img/home/icon-message.png differ diff --git a/components/BsAddress.vue b/components/BsAddress.vue index 4f0fc66..87651af 100644 --- a/components/BsAddress.vue +++ b/components/BsAddress.vue @@ -99,7 +99,7 @@ :class="isAccount ? 'clearmargin' : ''" > 取消

为你精选

-
+
切换推荐 换一组
@@ -23,6 +23,8 @@ export default { components: { UiGoodsItem }, data() { return { + pages: 0, + pageIndex: 1, recommendedData: [], }; }, @@ -30,17 +32,22 @@ export default { this.getRecommendedGoodsList(); }, methods: { + onRest() { + this.pageIndex < this.pages ? this.pageIndex++ : (this.pageIndex = 1); + this.getRecommendedGoodsList(); + }, async getRecommendedGoodsList() { let vm = this; let res = await ApiGetGoodsList({ length: 20, - pageIndex: 1, + pageIndex: vm.pageIndex, name: "", categoryId: "", order: "", }); - console.log(res.result) + console.log(res.result); vm.recommendedData = res.result.records; + vm.pages = res.result.pages; }, }, }; diff --git a/components/UiGoodsItem.vue b/components/UiGoodsItem.vue index 074d468..91a72bf 100644 --- a/components/UiGoodsItem.vue +++ b/components/UiGoodsItem.vue @@ -51,24 +51,30 @@ export default { diff --git a/pages/index/module/Seckill.vue b/pages/index/module/Seckill.vue index 8af8201..2da6fc3 100644 --- a/pages/index/module/Seckill.vue +++ b/pages/index/module/Seckill.vue @@ -34,7 +34,7 @@
@@ -75,7 +78,7 @@