From ff92fd8d7649b64052a298589aaa48964b05fbcf Mon Sep 17 00:00:00 2001 From: mabo Date: Fri, 30 Jul 2021 18:17:01 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0pc=E7=AB=AF=E4=BB=A3=E7=A0=81?= =?UTF-8?q?=E6=B3=A8=E9=87=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- buyer/src/components/Search.vue | 1 - buyer/src/pages/Cart.vue | 1 - buyer/src/pages/Feedback.vue | 89 ------------------ buyer/src/pages/PointMall.vue | 2 +- buyer/src/pages/couponCenter.vue | 14 +-- buyer/src/pages/home/Main.vue | 86 +++--------------- buyer/src/pages/home/MyShoppingCart.vue | 90 ------------------- .../pages/home/memberCenter/CommentList.vue | 2 +- .../pages/home/memberCenter/ComplainList.vue | 2 +- buyer/src/pages/home/userCenter/Coupons.vue | 6 +- .../pages/home/userCenter/MoneyManagement.vue | 56 ++++++------ buyer/src/pages/home/userCenter/MyTracks.vue | 2 +- buyer/src/pages/payment/Pay.vue | 22 +---- buyer/src/pages/payment/PayMent.vue | 1 - buyer/src/pages/shopEntry/first-apply.vue | 23 +++-- buyer/src/pages/shopEntry/second-apply.vue | 1 + buyer/src/pages/shopEntry/shop-entry.vue | 2 +- buyer/src/pages/shopEntry/third-apply.vue | 19 ++-- buyer/src/router/index.js | 15 ---- 19 files changed, 85 insertions(+), 349 deletions(-) delete mode 100644 buyer/src/pages/Feedback.vue delete mode 100644 buyer/src/pages/home/MyShoppingCart.vue 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 @@