| | |
| | | <text class="loading-more-text">加载更多...</text> |
| | | </view> |
| | | </scroll-view> |
| | | |
| | | <DownloadProgressMask /> |
| | | </view> |
| | | </template> |
| | | |
| | |
| | | import { onShow } from "@dcloudio/uni-app"; |
| | | import { listNotice, confirmMessage, getNoticeCount } from "@/api/login.js"; |
| | | import useUserStore from "@/store/modules/user"; |
| | | import DownloadProgressMask from "@/components/DownloadProgressMask.vue"; |
| | | |
| | | // 标签页数据 |
| | | const tabList = [ |
| | |
| | | const handleTabChange = val => { |
| | | console.log(val); |
| | | activeTab.value = val.id; |
| | | page.current = 1; |
| | | page.current = 2; |
| | | loadMessages(false); |
| | | }; |
| | | |
| | |
| | | const onRefresh = () => { |
| | | triggered.value = true; |
| | | // 重置页码 |
| | | page.current = 1; |
| | | page.current = 2; |
| | | // 重新加载消息 |
| | | loadMessages(false).finally(() => { |
| | | // 关闭刷新状态 |