增加支付延迟,修复首页公告不显示

This commit is contained in:
2025-10-29 10:27:07 +08:00
parent 64b7c90278
commit 16c36577e7
2 changed files with 12 additions and 29 deletions

View File

@@ -165,6 +165,7 @@ onReachBottom(() => {
// 公告
async function getMsg() {
let res = await messageselectMessage();
console.log('res',res)
let arr = [];
let ids = uni.getStorageSync('ids');
res.list.forEach((ele) => {
@@ -177,7 +178,7 @@ async function getMsg() {
arr.push(ele);
}
});
datas.noticeList = arr;
datas.noticeList = res.list;
if (arr.length) {
if (ids.length) {
uni.setStorageSync('ids', [...uni.getStorageSync('ids'), datas.noticeList[datas.cloneNum].id]);