Explorar el Código

授权修改2

junyuanz hace 4 años
padre
commit
83ae2110ef
Se han modificado 1 ficheros con 5 adiciones y 4 borrados
  1. 5 4
      pages/user/all/all.js

+ 5 - 4
pages/user/all/all.js

@@ -185,6 +185,7 @@ Page({
       wx.showLoading({
         title: '加载中'
       })
+	  console.log('val',val)
       _request.sendInfo(val, channel_id, invite, that)
       
       that.onShow();
@@ -216,16 +217,16 @@ Page({
 		  channel_id = Number(channel.parent_id)
 		}
 		var that = this
-		console.log('res.userInfo',res.userInfo);
-		// if (res.userInfo.detail.errMsg === 'getUserInfo:ok') {
+		console.log('res',res);
+		if (res.errMsg === "getUserProfile:ok") {
 		  wx.showLoading({
 		    title: '加载中'
 		  })
-		  _request.sendInfo(res.userInfo, channel_id, invite, that)
+		  _request.sendInfo(res, channel_id, invite, that)
 		  
 		  that.onShow();
-		// }
 		}
+	  }
 	})
   },
   getVersion: function (val) {