From 6c5af931dd41e202bd0d0893f66ae70d83c9c1f5 Mon Sep 17 00:00:00 2001 From: From-wh Date: Thu, 2 Mar 2023 14:51:48 +0800 Subject: [PATCH] =?UTF-8?q?improve:=20=E5=88=86=E7=B1=BB=E6=95=B0=E6=8D=AE?= =?UTF-8?q?=E8=8E=B7=E5=8F=96=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- template/uni-app/pages/goods_cate/goods_cate.vue | 2 +- template/uni-app/pages/goods_cate/goods_cate2.vue | 2 +- template/uni-app/pages/goods_cate/goods_cate3.vue | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/template/uni-app/pages/goods_cate/goods_cate.vue b/template/uni-app/pages/goods_cate/goods_cate.vue index bb831d0a6..4215d07ae 100644 --- a/template/uni-app/pages/goods_cate/goods_cate.vue +++ b/template/uni-app/pages/goods_cate/goods_cate.vue @@ -66,11 +66,11 @@ this.category = status uni.setStorageSync('is_diy', res.data.is_diy) this.status = res.data.status - this.$refs.classOne.is_diy = res.data.is_diy this.$nextTick(e => { if (this.status == 2 || this.status == 3) { uni.hideTabBar(); } else if (this.status == 1) { + this.$refs.classOne.is_diy = res.data.is_diy this.$refs.classOne.getNav(); } if (status == 2) { diff --git a/template/uni-app/pages/goods_cate/goods_cate2.vue b/template/uni-app/pages/goods_cate/goods_cate2.vue index 68f69c87c..0965258fb 100644 --- a/template/uni-app/pages/goods_cate/goods_cate2.vue +++ b/template/uni-app/pages/goods_cate/goods_cate2.vue @@ -674,7 +674,7 @@ that.navActive = 0; that.tabClick = 0; that.categoryList = data; - that.categoryErList = res.data[0].children ? res.data[0].children : []; + that.categoryErList = data[0].children ? data[0].children : []; that.page = 1; that.loadend = false; that.tempArr = []; diff --git a/template/uni-app/pages/goods_cate/goods_cate3.vue b/template/uni-app/pages/goods_cate/goods_cate3.vue index 2e6ae5b38..d9800904a 100644 --- a/template/uni-app/pages/goods_cate/goods_cate3.vue +++ b/template/uni-app/pages/goods_cate/goods_cate3.vue @@ -710,7 +710,7 @@ that.navActive = 0; that.tabClick = 0; that.categoryList = data; - that.categoryErList = res.data[0].children ? res.data[0].children : []; + that.categoryErList = data[0].children ? data[0].children : []; that.page = 1; that.loadend = false; that.tempArr = [];