improve: 分类数据获取问题

This commit is contained in:
From-wh 2023-03-02 14:51:48 +08:00
parent 2542d1e434
commit 6c5af931dd
3 changed files with 3 additions and 3 deletions

View File

@ -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) {

View File

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

View File

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