Commit d15c4af4 authored by Mac's avatar Mac

1

parent 168e2c0b
...@@ -141,6 +141,7 @@ ...@@ -141,6 +141,7 @@
nomore: "没有更多了", nomore: "没有更多了",
}, },
windowWidth: 0, windowWidth: 0,
showone:true,
msgType: { msgType: {
} }
...@@ -164,6 +165,10 @@ ...@@ -164,6 +165,10 @@
if (this.page_count == 1) { if (this.page_count == 1) {
this.status = "nomore"; this.status = "nomore";
} }
if(this.showone == true && this.g.length>0){
this.setAllMsgSee()
this.showone = false
}
} }
} }
); );
...@@ -252,9 +257,7 @@ ...@@ -252,9 +257,7 @@
uni.setNavigationBarTitle({ uni.setNavigationBarTitle({
title: this.pageTitle, title: this.pageTitle,
}); });
if(this.g.length>0){
this.setAllMsgSee()
}
}, },
onLoad(options) { onLoad(options) {
......
...@@ -63,6 +63,7 @@ ...@@ -63,6 +63,7 @@
loading: "努力加载中", loading: "努力加载中",
nomore: "没有更多了", nomore: "没有更多了",
}, },
showone:true
} }
}, },
methods: { methods: {
...@@ -81,6 +82,10 @@ ...@@ -81,6 +82,10 @@
if (this.pageCount == 1) { if (this.pageCount == 1) {
this.status = "nomore"; this.status = "nomore";
} }
if( this.showone == true && this.sysMsgData.length>0){
this.setAllMsgSee()
this.showone = false
}
} }
} }
); );
...@@ -132,9 +137,7 @@ ...@@ -132,9 +137,7 @@
}, },
onShow() { onShow() {
this.getMiaiMessagePageList(); this.getMiaiMessagePageList();
if(this.sysMsgData.length>0){
this.setAllMsgSee()
}
}, },
mounted() { mounted() {
uni.setNavigationBarTitle({ uni.setNavigationBarTitle({
......
...@@ -111,6 +111,7 @@ ...@@ -111,6 +111,7 @@
loading: "努力加载中", loading: "努力加载中",
nomore: "没有更多了", nomore: "没有更多了",
}, },
showone:true
} }
}, },
methods: { methods: {
...@@ -151,6 +152,10 @@ ...@@ -151,6 +152,10 @@
if (this.pageCount == 1) { if (this.pageCount == 1) {
this.status = "nomore"; this.status = "nomore";
} }
if(this.showone == true && this.visitorData.length>0){
this.setAllMsgSee()
this.showone = false
}
} }
} }
); );
...@@ -215,9 +220,7 @@ ...@@ -215,9 +220,7 @@
uni.setNavigationBarTitle({ uni.setNavigationBarTitle({
title: this.pageTitle, title: this.pageTitle,
}); });
if(this.visitorData.length>0){
this.setAllMsgSee()
}
}, },
updated() { updated() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment