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 @@