xuxh 5 yıl önce
ebeveyn
işleme
5f46b960b0
1 değiştirilmiş dosya ile 16 ekleme ve 13 silme
  1. 16 13
      pages/attention/attention.js

+ 16 - 13
pages/attention/attention.js

@@ -64,26 +64,14 @@ Page({
   },
   onLoad: function() {
     var that = this;
-    // 获取系统信息 
-    wx.getSystemInfo({
-      success: function(res) {    
-        that.setData({
-          winWidth: res.windowWidth,
-          winHeight: res.windowHeight
-        });
-      }
-    });
     // 获取关注的信息
     var userId={
       userId:wx.getStorageSync('openid')
       // userId:'ocVI541TGfnTChi5DlIa7beac2YM'
     }
     console.log(userId);
-    this.getFollow(userId);
-
-  },
-  getFollow:function(userId){
     var that = this;
+    // this.getFollow(userId);
     wxRequest.followList(userId).then((res)=>{
       console.log(res);
       console.log(res.data.data);     
@@ -100,6 +88,21 @@ Page({
       }
     
     })
+    // 获取系统信息 
+    wx.getSystemInfo({
+      success: function(res) {    
+        that.setData({
+          winWidth: res.windowWidth,
+          winHeight: res.windowHeight
+        });
+      }
+    });
+    
+
+  },
+  getFollow:function(userId){
+   
+    
   },
   open: function (e) {
     console.log(e)