xuxh 5 年之前
父节点
当前提交
5f46b960b0
共有 1 个文件被更改,包括 16 次插入13 次删除
  1. 16 13
      pages/attention/attention.js

+ 16 - 13
pages/attention/attention.js

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