From 5c5a0ab6bb5a26f1a97ad6a495ff42b2c25f016d Mon Sep 17 00:00:00 2001 From: longjieli <11918793+longjieli@user.noreply.gitee.com> Date: Mon, 30 Dec 2024 19:59:56 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=A0=B7=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/api.js | 14 +- api/http.js | 14 +- components/couponPopup/couponPopup.vue | 7 +- components/product/productItem.vue | 142 ++++++---- components/user/couponList.vue | 195 ------------- pages.json | 3 + pages/index/category.vue | 19 +- pages/index/center.vue | 16 +- pages/index/index.vue | 9 +- pages/index/order.vue | 126 ++++----- pages_order/auth/wxLogin.vue | 4 +- pages_order/auth/wxUserInfo.vue | 2 +- pages_order/mine/memberCenter.vue | 2 +- pages_order/mine/moreCommodity.vue | 2 +- pages_order/mine/partner.vue | 12 +- pages_order/mine/recruit.vue | 4 +- pages_order/mine/withdraw.vue | 416 ++++++++++++++++------------ pages_order/order/createOrder.vue | 4 +- static/image/cart/1.png | Bin 1933 -> 0 bytes static/image/cart/2.png | Bin 5540 -> 0 bytes static/image/center/head-img.png | Bin 2994 -> 2425 bytes uni_modules/uv-ui-tools/libs/css/color.scss | 2 +- 22 files changed, 445 insertions(+), 548 deletions(-) delete mode 100644 components/user/couponList.vue delete mode 100644 static/image/cart/1.png delete mode 100644 static/image/cart/2.png diff --git a/api/api.js b/api/api.js index 349142f..caa54c6 100644 --- a/api/api.js +++ b/api/api.js @@ -46,13 +46,13 @@ export function api(key, data, callback, loadingTitle) { } //必须登录 - if (req.auth) { - if (!uni.getStorageSync('token')) { - utils.toLogin() - console.error('需要登录') - return - } - } + // if (req.auth) { + // if (!uni.getStorageSync('token')) { + // utils.toLogin() + // console.error('需要登录') + // return + // } + // } // 接口防抖 if(req.debounce){ diff --git a/api/http.js b/api/http.js index 8f2e8b8..1d37fa6 100644 --- a/api/http.js +++ b/api/http.js @@ -25,13 +25,13 @@ function http(uri, data, callback, method = 'GET', showLoading, title) { uni.hideLoading(); } - if(res.statusCode == 401 || - res.data.message == '操作失败,token非法无效!' || - res.data.message == '操作失败,用户不存在!'){ - uni.removeStorageSync('token') - console.error('登录过期'); - utils.toLogin() - } + // if(res.statusCode == 401 || + // res.data.message == '操作失败,token非法无效!' || + // res.data.message == '操作失败,用户不存在!'){ + // uni.removeStorageSync('token') + // console.error('登录过期'); + // utils.toLogin() + // } if(res.statusCode == 200 && res.data.code != 200 && res.data.code != 902){ diff --git a/components/couponPopup/couponPopup.vue b/components/couponPopup/couponPopup.vue index 24f3913..ea0a3c2 100644 --- a/components/couponPopup/couponPopup.vue +++ b/components/couponPopup/couponPopup.vue @@ -19,7 +19,7 @@ class="register-success"> (购物即可抵扣!) - + @@ -36,6 +36,11 @@ //关闭新人优惠券活动 closeCouponPopup() { this.show = false; + }, + + //查看优惠券 + examineCoupon() { + this.$emit("examine") } }, computed: { diff --git a/components/product/productItem.vue b/components/product/productItem.vue index 9d0f64e..0008a76 100644 --- a/components/product/productItem.vue +++ b/components/product/productItem.vue @@ -1,39 +1,49 @@ @@ -43,13 +53,7 @@ props: { item: { default: {} - }, - width : { - default : '100%', - }, - titleWidth : { - default : '100px' - }, + } }, data() { return { @@ -64,6 +68,7 @@ \ No newline at end of file diff --git a/pages.json b/pages.json index dc17df4..ce99883 100644 --- a/pages.json +++ b/pages.json @@ -128,6 +128,9 @@ }, { "path": "mine/moreCommodity" + }, + { + "path": "mine/coupon" } ] }], diff --git a/pages/index/category.vue b/pages/index/category.vue index 34b543a..6be8330 100644 --- a/pages/index/category.vue +++ b/pages/index/category.vue @@ -1,7 +1,7 @@