From b6e54aa6cb04174c2f300cb3278bd5e24379c136 Mon Sep 17 00:00:00 2001 From: fanfan Date: Mon, 4 Mar 2024 21:48:27 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BB=86=E8=8A=82=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/index/index.vue | 11 ++++++----- pages/login/index.vue | 2 +- pages/user/vip/goods.vue | 6 +++--- 3 files changed, 10 insertions(+), 9 deletions(-) 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 => {