junyuanz 4 vuotta sitten
vanhempi
commit
6ddf63882d
2 muutettua tiedostoa jossa 11 lisäystä ja 9 poistoa
  1. 1 1
      pages/projects/project-detail/project-detail.js
  2. 10 8
      pages/user/all/all.js

+ 1 - 1
pages/projects/project-detail/project-detail.js

@@ -698,7 +698,7 @@ Page({
   },
   createPoster () {
   	let that = this;
-  	if(this.data.check && this.data.check.wx_user_id && this.data.check.wx_user_id > 0 && this.data.check.user_id > 0){
+  	if(this.data.info && this.data.info.wx_user.id && this.data.info.wx_user.id > 0 && this.data.info.user.id > 0){
   		that.projectImageLoading()
   	
   	

+ 10 - 8
pages/user/all/all.js

@@ -44,9 +44,11 @@ Page({
 //  }
 //  var that = this
 	this.checkLogin();
+	this.info();
   },
   onShow: function () {
     var that = this;
+	// that.checkLogin();
     this.info();
     // if (this.data.bindTel) {
     //   this.getBalanceInfo()
@@ -59,10 +61,6 @@ Page({
     //   // this.info()
     // }
     
-	// that.checkLogin();
-    
-
-    
     
     //原登陆检测
   },
@@ -94,8 +92,10 @@ Page({
 							that.setData({
 								userInfo: userInfo
 							})
+							that.info()
 							that.getBalanceInfo()
 							that.getIntegralInfo()
+							
 							// if (that.data.checkData.merchant_id > 0) {
 							//   that.getmerchant()
 							// }
@@ -134,8 +134,8 @@ Page({
 															userinfo: JSON.stringify(res3.userInfo)
 														  }
 														  var success = function (res4) {
-																console.log('authorize',res4)
-																that.onShow()
+																console.log('authorize',res4);
+																that.onLoad()
 														  }
 														  _request.$post(url, params, success)
 														}
@@ -205,7 +205,7 @@ Page({
 	  console.log('val',val)
       // _request.sendInfo(val, channel_id, invite, that)
       
-      that.onShow();
+      that.onLoad();
       
       
 //    wx.showToast({
@@ -262,7 +262,7 @@ Page({
 				  }
 				  var success = function (res4) {
 						console.log('authorize',res4)
-						that.onShow()
+						that.onLoad()
 				  }
 				  _request.$post(url, params, success)
 				}
@@ -285,7 +285,9 @@ Page({
       })
 	  console.log('untel',res.data.user.tel)
 	  
+	  console.log('res.data.wx_user',res.data.wx_user)
 	  if(res.data.wx_user.head == ''){
+		  console.log('indddddddddddddddddddddddd')
 		  that.setData({
 		  	    userInfo: 'nologin'
 		  	  })