diff --git a/pages/home/index.vue b/pages/home/index.vue index 80d16ce..489b41e 100644 --- a/pages/home/index.vue +++ b/pages/home/index.vue @@ -256,11 +256,6 @@ export default { this.searchAnimate(); // #endif let appId = getApp().globalData.appId; - if (this.appInfo.noticeImg) { - this.noticeImg = this.appInfo.noticeImg; - } else { - this.noticeImg = "https://bocai-cms.oss-cn-beijing.aliyuncs.com/web-resource/pugongying/notice/noticeDefault.png"; - } that.isshowskit = false; // console.log("=========", that); that.usetype = "share"; @@ -335,6 +330,11 @@ export default { } uni.setStorageSync("miniApp-info", obj); this.appInfo = obj; + if (this.appInfo.noticeImg) { + this.noticeImg = this.appInfo.noticeImg; + } else { + this.noticeImg = "https://bocai-cms.oss-cn-beijing.aliyuncs.com/web-resource/pugongying/notice/noticeDefault.png"; + } uni.setStorageSync("pgy-agency-id", res.agency.id); uni.setStorageSync("ai-name", res.agency.aiRobotName); @@ -343,6 +343,12 @@ export default { } else { // 如果缓存中有数据,则直接使用 this.appInfo = miniAppInfo; + + if (this.appInfo.noticeImg) { + this.noticeImg = this.appInfo.noticeImg; + } else { + this.noticeImg = "https://bocai-cms.oss-cn-beijing.aliyuncs.com/web-resource/pugongying/notice/noticeDefault.png"; + } } // setTimeout(() => {