diff --git a/template/uni-app/pages/goods_cate/goods_cate.vue b/template/uni-app/pages/goods_cate/goods_cate.vue index 57a008a49..bb831d0a6 100644 --- a/template/uni-app/pages/goods_cate/goods_cate.vue +++ b/template/uni-app/pages/goods_cate/goods_cate.vue @@ -64,9 +64,10 @@ colorChange('category').then(res => { let status = res.data.status; 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 => { - this.$refs.classOne.is_diy = this.is_diy if (this.status == 2 || this.status == 3) { uni.hideTabBar(); } else if (this.status == 1) { diff --git a/template/uni-app/pages/index/index.vue b/template/uni-app/pages/index/index.vue index 6cb7f9c2d..627bbc9fc 100644 --- a/template/uni-app/pages/index/index.vue +++ b/template/uni-app/pages/index/index.vue @@ -41,7 +41,9 @@ getVersion(name) { getVersion(name).then(res => { this.version = res.data.version + this.isDiy = res.data.is_diy this.loading = true + uni.setStorageSync('is_diy', res.data.is_diy) if (!uni.getStorageSync('DIY_VERSION') || res.data.version != uni.getStorageSync( 'DIY_VERSION')) { if (uni.getStorageSync('DIY_VERSION')) {