diff --git a/App.vue b/App.vue index 5d069b0..8cda793 100644 --- a/App.vue +++ b/App.vue @@ -12,6 +12,14 @@ console.log('App Launch') // 移除初始化背景音乐的调用 // this.initBackgroundMusic(); + // 审核 + this.Post({id: 10217},'/api/article/getArticleById').then(res => { + try { + // let SHFlag = res.data.title + let SHFlag = res.data.subtitle + uni.setStorageSync('SHFlag', SHFlag) + } catch(e) {} + }); }, onShow: function() { console.log('App Show') diff --git a/components/CustomTabBar.vue b/components/CustomTabBar.vue index be846bc..c6c3274 100644 --- a/components/CustomTabBar.vue +++ b/components/CustomTabBar.vue @@ -1,20 +1,15 @@ @@ -41,9 +36,9 @@ export default { text: "阅读体", }, { - pagePath: "pages/index/timeShopBank", + pagePath: "pages/index/sensoryStore", selectColor: "#00FF00", - text: "时间银行", + text: "有感商店", }, { pagePath: "pages/index/intelligentAgent", @@ -56,11 +51,20 @@ export default { text: "iSoul", }, ], + tabBarShowList: [], }; }, onLoad() { this.getCurrentTab(); }, + mounted() { + this.tabBarShowList = uni + .getStorageSync("SHFlag") + .split(",") + .map((item) => { + return item.trim().toLowerCase() === "true"; + }); + }, methods: { getCurrentTab() { const pages = getCurrentPages();