Browse Source

调整移动端的消息

Lijy 3 years ago
parent
commit
c2d6f7f6d1

+ 3 - 1
fhKeeper/formulahousekeeper/timesheet_h5/src/views/index/index.vue

@@ -57,7 +57,6 @@
         created() {
             let index = this.active + 1;
             this.list = this[`list${index}`]; // this.list1
-            
         },
         mounted() {
             var ua = navigator.userAgent.toLowerCase();
@@ -243,6 +242,9 @@
                     } 
                 }).catch(err=> {toast.clear();});
             },
+        },
+        activated(){
+            this.getMessage()
         }
     };
 </script>

+ 10 - 1
fhKeeper/formulahousekeeper/timesheet_h5/src/views/msg/index.vue

@@ -50,7 +50,7 @@
                 var item = this.list[index];
                 if (item.type == 0) {
                     //日报
-                    var date = item.content;
+                    var date = item.content; 
                     this.$axios.post("/information/check", {id:item.id
                     })
                     .then(res => {
@@ -60,6 +60,15 @@
                             this.$router.push('/edit?date='+date);
                         } 
                     }).catch(err=> {toast.clear();});
+                } else {
+                    var date = item.content; 
+                    this.$axios.post("/information/check", {id:item.id
+                    })
+                    .then(res => {
+                        if(res.code == "ok") {
+                            this.getMessage()
+                        } 
+                    }).catch(err=> {toast.clear();});
                 }
                 
             },