diff --git a/buyer/src/components/Search.vue b/buyer/src/components/Search.vue index f519e160..3ddcd784 100644 --- a/buyer/src/components/Search.vue +++ b/buyer/src/components/Search.vue @@ -93,7 +93,6 @@ export default { const time = new Date().getTime() - 60*60*1000 if (!reloadTime) { hotWords({count: 5}).then(res => { - console.log(res); if (res.success) storage.setItem('hotWordsList', res.result) }) storage.setItem('hotWordsReloadTime',new Date().getTime()) diff --git a/buyer/src/pages/Cart.vue b/buyer/src/pages/Cart.vue index 6284f370..73e655b4 100644 --- a/buyer/src/pages/Cart.vue +++ b/buyer/src/pages/Cart.vue @@ -158,7 +158,6 @@ export default { skuList: [] // sku列表 }; }, - computed: {}, methods: { // 跳转商品详情 goGoodsDetail (skuId, goodsId) { diff --git a/buyer/src/pages/Feedback.vue b/buyer/src/pages/Feedback.vue deleted file mode 100644 index f85b37ed..00000000 --- a/buyer/src/pages/Feedback.vue +++ /dev/null @@ -1,89 +0,0 @@ - - - - - diff --git a/buyer/src/pages/PointMall.vue b/buyer/src/pages/PointMall.vue index 708bdbe4..1ad89ad0 100644 --- a/buyer/src/pages/PointMall.vue +++ b/buyer/src/pages/PointMall.vue @@ -105,7 +105,7 @@ export default { this.getList() }, changePageSize (val) { // 修改页数 - this.pageNumber = 1; + this.params.pageNumber = 1; this.params.pageSize = val; this.getList() } diff --git a/buyer/src/pages/couponCenter.vue b/buyer/src/pages/couponCenter.vue index 3c71aa07..e6220a07 100644 --- a/buyer/src/pages/couponCenter.vue +++ b/buyer/src/pages/couponCenter.vue @@ -32,10 +32,10 @@ @@ -57,11 +57,13 @@ export default { } }, methods: { + // 搜索优惠券 search (item) { this.params.couponName = item this.params.pageNumber = 1 this.getList() }, + // 获取优惠券列表 getList () { this.$Spin.show() couponList(this.params).then(res => { @@ -73,18 +75,18 @@ export default { } }).catch(() => { this.$Spin.hide() }) }, - + // 分页 改变页码 changePageNum (val) { this.params.pageNumber = val; this.getList() }, - + // 分页 改变每页数 changePageSize (val) { - this.pageNumber = 1; + this.params.pageNumber = 1; this.params.pageSize = val; this.getList() }, - + // 领取优惠券 receive (item) { receiveCoupon(item.id).then(res => { if (res.success) { @@ -111,7 +113,7 @@ export default { } }) }, - + // 优惠券可用范围 useScope (type, storeName) { let shop = '平台'; let goods = '全部商品' diff --git a/buyer/src/pages/home/Main.vue b/buyer/src/pages/home/Main.vue index dd3b18a2..24dd1a51 100644 --- a/buyer/src/pages/home/Main.vue +++ b/buyer/src/pages/home/Main.vue @@ -1,43 +1,15 @@