开发消息页弹窗,创建考试排行榜页面

This commit is contained in:
田岩
2025-08-20 09:22:26 +08:00
parent fc2e831f71
commit 1c3c45f944
5 changed files with 44 additions and 15 deletions
+8 -3
View File
@@ -66,7 +66,7 @@
{{ item.noticeContent }}
</view>
<!-- <view class="num_div"></view> -->
<view class="read_div" v-if="item.isRead"></view>
<view class="read_div" v-if="item?.isRead === '01'"></view>
</view>
</view>
</view>
@@ -174,9 +174,14 @@
};
const readMessage = () => {
readNotice({ noticeId: popup_info.id }).then(() => {
// todo
readNotice({ noticeId: popup_info.id }).then((res) => {
popup.value.close();
data_list.forEach((item) => {
if (item.noticeId === popup_info.id) {
item.isRead = res.body.isRead;
return;
}
});
});
};
// 读取消息