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 = [];