diff --git a/pages/home/index.vue b/pages/home/index.vue index 568316e..80d16ce 100644 --- a/pages/home/index.vue +++ b/pages/home/index.vue @@ -348,6 +348,19 @@ export default { // setTimeout(() => { // that.appInfo = uni.getStorageSync("miniApp-info"); // }, 100); + + setTimeout(() => { + if (uni.getStorageSync("miniApp-info").notice) { + let notice = uni.getStorageSync("miniApp-info").notice; + var reg = /[\r\n]/g; + notice = notice.replace(reg, ""); + that.noticList = []; + // that.noticList = notice; + that.noticList.push(notice); + that.showNotic = "play"; + } + console.log("that.noticList", that.noticList); + }, 100); }, data() { return { diff --git a/root/merchantManagement/dynamicNotice.vue b/root/merchantManagement/dynamicNotice.vue index 35a9708..0429383 100644 --- a/root/merchantManagement/dynamicNotice.vue +++ b/root/merchantManagement/dynamicNotice.vue @@ -100,9 +100,11 @@ export default { }); that.isChange = false; that.G.getAgencyInfo(()=>{ - uni.switchTab({ - url:'/pages/home/index' - }) + setTimeout(()=>{ + uni.switchTab({ + url:'/pages/home/index' + }) + },500) }); },()=>{ that.isSubmit = false;