From 8c70aa238f07f96dae7fa6a1c099dc6acfd7b449 Mon Sep 17 00:00:00 2001 From: fanfan Date: Fri, 30 Aug 2024 20:40:39 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BB=86=E8=8A=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/goods/list.vue | 19 +++++++++++++------ pages/news1/MerchantSettlement.vue | 27 ++++++++++++--------------- pages/news1/MerchantSupplier.vue | 28 ++++++++++++++-------------- pages/user/index.vue | 3 ++- 4 files changed, 41 insertions(+), 36 deletions(-) diff --git a/pages/goods/list.vue b/pages/goods/list.vue index 40d7ffe..998d28b 100644 --- a/pages/goods/list.vue +++ b/pages/goods/list.vue @@ -270,8 +270,8 @@ searchText: '', banrdType: [], keyName1: '', - isBanrdActive: '', - isActive: '', + isBanrdActive: 0, + isActive: 0, goodsType: [], keyName2: '', showView: false, // 列表显示方式 (true列表、false平铺) @@ -346,7 +346,7 @@ handleSortType1() { this.factoryShow = true }, - actionSheetCallback(index){ + actionSheetCallback(index) { this.is_grad = index; // this.$refs.uWaterfall1.clear(); this.factoryShow = false; @@ -397,6 +397,7 @@ }) }, onChage(item, type, index) { + console.log(item) if (type == 1) { if (this.tabbar && this.tabbar[index].children && this.tabbar[index].children.length > 0) { this.goodsType = this.tabbar[index].children; @@ -473,15 +474,21 @@ if (this.keyName2) { keywords.push(this.keyName2) } + let categoryId = 0 + if (this.isActive) { + categoryId = this.isActive + } else { + categoryId = this.isBanrdActive >0? this.isBanrdActive : ((app.options.categoryId || app.options.categoryId != undefined) ? app.options + .categoryId : 0) + } const param = { sortType: app.sortType != 'city' ? app.sortType : '', sortPrice: Number(app.sortPrice), - categoryId: (app.options.categoryId || app.options.categoryId != undefined) ? app.options - .categoryId : 0, + categoryId:categoryId, merchantId: app.options.merchantId, // goodsName: app.options.search || '', page: pageNo, - keywords: keywords.length > 0 ? keywords.join(',') : '', + // keywords: keywords.length > 0 ? keywords.join(',') : '', keyword: app.options.search || '', is_grad: app.is_grad // goods_source: this.multiIndex > -1 ? this.multiArray[this.multiIndex].value : '' diff --git a/pages/news1/MerchantSettlement.vue b/pages/news1/MerchantSettlement.vue index f720b52..9aa9da8 100644 --- a/pages/news1/MerchantSettlement.vue +++ b/pages/news1/MerchantSettlement.vue @@ -1,8 +1,8 @@