Преглед изворни кода

Merge branch 'master' of ssh://192.168.1.202:8088/lx/shares

lx пре 5 година
родитељ
комит
6354453b99
2 измењених фајлова са 8 додато и 8 уклоњено
  1. 7 8
      pages/attention/attention.js
  2. 1 0
      project.config.json

+ 7 - 8
pages/attention/attention.js

@@ -60,22 +60,21 @@ Page({
       onInit: initChart
     },
     array:[],
+    currentPage:1
 
   },
   onLoad: function() {
     var that = this;
     // 获取关注的信息
+    console.log(this.data.currentPage)
     var userId={
-      userId:wx.getStorageSync('openid')
-      // userId:'ocVI541TGfnTChi5DlIa7beac2YM'
-    }
-    // console.log(userId);
+      userId:wx.getStorageSync('openid'),
+      currPage:this.data.currentPage
+    };
     var that = this;
-    // this.getFollow(userId);
     wx.showLoading({title: '加载中…'})
-    wxRequest.followList(userId).then((res)=>{
-      
-      // console.log(res);
+    wxRequest.followList(userId).then((res)=>{     
+      console.log(res);
       // console.log(res.data.data); 
       wx.hideLoading()    
       if(res.statusCode==200){

+ 1 - 0
project.config.json

@@ -20,6 +20,7 @@
 		"checkInvalidKey": true,
 		"checkSiteMap": true,
 		"uploadWithSourceMap": true,
+		"compileHotReLoad": false,
 		"babelSetting": {
 			"ignore": [],
 			"disablePlugins": [],