diff --git a/pages/index/index.vue b/pages/index/index.vue index 8f69321..02d9f9d 100644 --- a/pages/index/index.vue +++ b/pages/index/index.vue @@ -727,7 +727,7 @@ }, getTypeList() { GoodsApi.typeList({ - is_in_store: this.current==0?0:1 + is_in_store: this.current==0?'':1 }).then(res => { if (res.status == 200) { this.tabList = res.data.list; @@ -840,9 +840,10 @@ page: 1, per_page: 100, categoryId: val, - is_brand: 0, + is_brand: '', is_new: 1, order: 1, + is_in_store:'' } GoodsApi.brandList(param).then(res => { let arr = res.data.data @@ -869,10 +870,10 @@ page: 1, per_page: 100, categoryId: val, - is_brand: 1, - is_new: 0, + is_brand: this.current==0?1:'', + is_new: '', order: 1, - is_in_store: this.current==0?0:1 + is_in_store: this.current==0?'':1 } GoodsApi.brandList(param).then(res => { let arr = res.data.data; diff --git a/pages/login/index.vue b/pages/login/index.vue index 221372c..097e977 100644 --- a/pages/login/index.vue +++ b/pages/login/index.vue @@ -125,7 +125,7 @@ return } if (that.semCode == '') { - this.$toast('请输入验证码') + that.$toast('请输入验证码') return } uni.login({ diff --git a/pages/user/vip/goods.vue b/pages/user/vip/goods.vue index 42557de..9c165f5 100644 --- a/pages/user/vip/goods.vue +++ b/pages/user/vip/goods.vue @@ -113,11 +113,11 @@ let pamars = { // store_id: 10001, page: 1, - is_brand: 1, - is_new: 0, + is_brand:this.type==1?'':1, + is_new: '', categoryId: categoryId, order: app.orderSort, - is_in_store:this.type==1?1:0 + is_in_store:this.type==1?1:'' } Api.brandList(pamars) .then(result => {