Ver Fonte

no message

linwenxin há 1 ano atrás
pai
commit
d67f9b0201
2 ficheiros alterados com 11 adições e 9 exclusões
  1. 1 1
      src/App.vue
  2. 10 8
      src/pages/message/index.vue

+ 1 - 1
src/App.vue

@@ -87,4 +87,4 @@
   @import "uview-ui/index.scss";
 
   @import "styles/iconfont.css";
-</style>
+</style>

+ 10 - 8
src/pages/message/index.vue

@@ -49,16 +49,9 @@
 <script>
   import api from '@/common/http/'
   export default {
-    // #ifdef H5
-    data() {
-      return {
-        imageUrl: this.$imageUrl,
-        scrollTop: 0,
-        list: []
-      }
-    },
     onShow() {
       uni.$emit("updateUserInfo")
+      // #ifdef H5
       var getList = () => {
         if (this.timeId) {
           clearTimeout(this.timeId)
@@ -73,6 +66,15 @@
         })
       }
       getList()
+      // #endif
+    },
+    // #ifdef H5
+    data() {
+      return {
+        imageUrl: this.$imageUrl,
+        scrollTop: 0,
+        list: []
+      }
     },
     onHide() {
       if (this.timeId) {