diff --git a/manifest.json b/manifest.json index df30c27..66f1af8 100644 --- a/manifest.json +++ b/manifest.json @@ -137,7 +137,7 @@ "quickapp" : {}, /* 小程序特有相关 */ "mp-weixin" : { - "appid" : "wx15bc9c758f4eb129", + "appid" : "wxfab5320942daaafa", "setting" : { "urlCheck" : false, "es6" : true, diff --git a/pages/home/index.vue b/pages/home/index.vue index 161dfac..7487434 100644 --- a/pages/home/index.vue +++ b/pages/home/index.vue @@ -301,11 +301,11 @@ export default { console.log("that.showNotic1", that.showNotic); that.getJobNum(); setTimeout(() => { - if (uni.getStorageSync("miniApp-info").notice) { - let notice = uni.getStorageSync("miniApp-info").notice || '愿祖国繁荣富强,山河锦绣如画;盼华夏儿女同心,共筑盛世中华!'; + let _notice = uni.getStorageSync("miniApp-info").notice || '愿祖国繁荣富强,山河锦绣如画;盼华夏儿女同心,共筑盛世中华!'; + if (_notice) { var reg = /[\r\n]/g; - notice = notice.replace(reg, ""); - that.noticList = [notice]; + _notice = _notice.replace(reg, ""); + that.noticList = [_notice]; that.noticeColor = uni.getStorageSync("miniApp-info").noticeColor; that.showNotic = "play"; } @@ -392,11 +392,11 @@ export default { setTimeout(() => { - if (uni.getStorageSync("miniApp-info").notice) { - let notice = uni.getStorageSync("miniApp-info").notice || '愿祖国繁荣富强,山河锦绣如画;盼华夏儿女同心,共筑盛世中华!'; + let _notice = uni.getStorageSync("miniApp-info").notice || '愿祖国繁荣富强,山河锦绣如画;盼华夏儿女同心,共筑盛世中华!'; + if (_notice) { var reg = /[\r\n]/g; - notice = notice.replace(reg, ""); - that.noticList = [notice]; + notice = _notice.replace(reg, ""); + that.noticList = [_notice]; that.noticeColor = uni.getStorageSync("miniApp-info").noticeColor; that.showNotic = "play"; }