|
|
@@ -28,7 +28,7 @@
|
|
|
import Tabs from "@/components/plugin/tabs";
|
|
|
import AppWrapperEmpty from "@/components/app-wrapper-empty";
|
|
|
import { list } from "@/mixins";
|
|
|
-import { getNotifyList,readNotify,allReadNotify } from "@/api/notice";
|
|
|
+import { getNotifyList,allReadNotify } from "@/api/notice";
|
|
|
export default {
|
|
|
name: "index",
|
|
|
components: { Tabs, AppWrapperEmpty },
|
|
|
@@ -70,6 +70,10 @@ export default {
|
|
|
uni.stopPullDownRefresh()
|
|
|
}
|
|
|
},
|
|
|
+ onShow(){
|
|
|
+ this.resetList()
|
|
|
+ this.getNoticeList()
|
|
|
+ },
|
|
|
methods: {
|
|
|
allRead(){
|
|
|
let that = this
|
|
|
@@ -102,10 +106,6 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
goTo(item) {
|
|
|
- if(item.read == 0){
|
|
|
- item.read = 1
|
|
|
- readNotify({id:item.id})
|
|
|
- }
|
|
|
if (item.page && !this.$util.isEmpty(item.page)){
|
|
|
this.$util.pageTo({url: item.page})
|
|
|
}
|