|
@@ -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)
|