ccjgmwz há 3 anos atrás
pai
commit
c365f5390a

+ 1 - 1
pages/public/code.vue

@@ -173,7 +173,7 @@
 							username: "13333333333"}).then(res => {})
 							uni.setStorageSync('userInfo', res.data.data)
 					        that.$store.commit('login', res.data.data)
-					        that.liangxinLogin()
+					        // that.liangxinLogin()
 					        uni.switchTab({
 								url: '/pages/sale/information'
 								});

+ 6 - 6
pages/public/login.vue

@@ -147,7 +147,7 @@
 					console.log(res)
 					uni.setStorageSync('userInfo', res.data)
 					that.$store.commit('login', res.data)
-					that.liangxinLogin()
+					// that.liangxinLogin()
 					uni.switchTab({
 						url: '/pages/sale/information'
 					});
@@ -317,7 +317,7 @@
 								res.data.phone = e.userInfo.phone
 								uni.setStorageSync('userInfo', res.data)
 								that.$store.commit('login', res.data)
-								that.liangxinLogin()
+								// that.liangxinLogin()
 							})
 						},
 						complete: (e) => {
@@ -398,7 +398,7 @@
 					 	that.$store.commit('login', that.userInfo)
 					 	that.$api.setUserInfo(that.userInfo)
 					 	uni.hideLoading()
-						that.liangxinLogin()
+						// that.liangxinLogin()
 					 }) 
 					 if(res.data.phoneNumber){
 						uni.switchTab({
@@ -526,7 +526,7 @@
 					 						res.data.gender = userInfo.gender
 					 						if(userInfo.phone){
 					 							res.data.phone = userInfo.phone
-					 							that.liangxinLogin()
+					 							// that.liangxinLogin()
 					 						}
 					 						uni.setStorageSync('userInfo', res.data)
 					 						that.$store.commit('login', res.data)
@@ -629,7 +629,7 @@
 													url: '/pages/sale/information'
 												});
 												console.log("complete")
-												that.liangxinLogin()
+												// that.liangxinLogin()
 											}
 										})		
 										console.log( 'wx.getUserProfile=>用户允许了授权' );
@@ -729,7 +729,7 @@
 										res.data.gender = e.userInfo.gender
 										if(res.data.phone){
 											res.data.phone = e.userInfo.phone
-											that.liangxinLogin()
+											// that.liangxinLogin()
 										}
 										
 										uni.setStorageSync('userInfo', res.data)

+ 6 - 6
pages/public/login_account_number.vue

@@ -105,7 +105,7 @@ username: "13333333333"}).then(res => {
 							
 						})
 						that.$store.commit('login', res.data.data)
-						that.liangxinLogin()
+						// that.liangxinLogin()
 						
 						uni.switchTab({
 							url: '/pages/sale/information'
@@ -304,7 +304,7 @@ username: "13333333333"}).then(res => {
 								res.data.phone = e.userInfo.phone
 								uni.setStorageSync('userInfo', res.data)
 								that.$store.commit('login', res.data)
-								that.liangxinLogin()
+								// that.liangxinLogin()
 							})
 						},
 						complete: (e) => {
@@ -385,7 +385,7 @@ username: "13333333333"}).then(res => {
 					 	that.$store.commit('login', that.userInfo)
 					 	that.$api.setUserInfo(that.userInfo)
 					 	uni.hideLoading()
-						that.liangxinLogin()
+						// that.liangxinLogin()
 					 }) 
 					 if(res.data.phoneNumber){
 						uni.switchTab({
@@ -513,7 +513,7 @@ username: "13333333333"}).then(res => {
 					 						res.data.gender = userInfo.gender
 					 						if(userInfo.phone){
 					 							res.data.phone = userInfo.phone
-					 							that.liangxinLogin()
+					 							// that.liangxinLogin()
 					 						}
 					 						uni.setStorageSync('userInfo', res.data)
 					 						that.$store.commit('login', res.data)
@@ -616,7 +616,7 @@ username: "13333333333"}).then(res => {
 													url: '/pages/sale/information'
 												});
 												console.log("complete")
-												that.liangxinLogin()
+												// that.liangxinLogin()
 											}
 										})		
 										console.log( 'wx.getUserProfile=>用户允许了授权' );
@@ -716,7 +716,7 @@ username: "13333333333"}).then(res => {
 										res.data.gender = e.userInfo.gender
 										if(res.data.phone){
 											res.data.phone = e.userInfo.phone
-											that.liangxinLogin()
+											// that.liangxinLogin()
 										}
 										
 										uni.setStorageSync('userInfo', res.data)

+ 7 - 7
pages/public/register.vue

@@ -227,7 +227,7 @@
 								username: "13333333333"}).then(res => {})
 								uni.setStorageSync('userInfo', res.data)
 								that.$store.commit('login', res.data)
-								that.liangxinLogin()
+								// that.liangxinLogin()
 								uni.switchTab({
 									url: '/pages/sale/information'
 								});
@@ -291,7 +291,7 @@
 					console.log(res)
 					uni.setStorageSync('userInfo', res.data)
 					that.$store.commit('login', res.data)
-					that.liangxinLogin()
+					// that.liangxinLogin()
 					uni.switchTab({
 						url: '/pages/sale/information'
 					});
@@ -461,7 +461,7 @@
 								res.data.phone = e.userInfo.phone
 								uni.setStorageSync('userInfo', res.data)
 								that.$store.commit('login', res.data)
-								that.liangxinLogin()
+								// that.liangxinLogin()
 							})
 						},
 						complete: (e) => {
@@ -542,7 +542,7 @@
 					 	that.$store.commit('login', that.userInfo)
 					 	that.$api.setUserInfo(that.userInfo)
 					 	uni.hideLoading()
-						that.liangxinLogin()
+						// that.liangxinLogin()
 					 }) 
 					 if(res.data.phoneNumber){
 						uni.switchTab({
@@ -670,7 +670,7 @@
 					 						res.data.gender = userInfo.gender
 					 						if(userInfo.phone){
 					 							res.data.phone = userInfo.phone
-					 							that.liangxinLogin()
+					 							// that.liangxinLogin()
 					 						}
 					 						uni.setStorageSync('userInfo', res.data)
 					 						that.$store.commit('login', res.data)
@@ -773,7 +773,7 @@
 													url: '/pages/sale/information'
 												});
 												console.log("complete")
-												that.liangxinLogin()
+												// that.liangxinLogin()
 											}
 										})		
 										console.log( 'wx.getUserProfile=>用户允许了授权' );
@@ -873,7 +873,7 @@
 										res.data.gender = e.userInfo.gender
 										if(res.data.phone){
 											res.data.phone = e.userInfo.phone
-											that.liangxinLogin()
+											// that.liangxinLogin()
 										}
 										
 										uni.setStorageSync('userInfo', res.data)

+ 5 - 5
pages/public/reset.vue

@@ -149,7 +149,7 @@
 							username: "13333333333"}).then(res => {})
 							uni.setStorageSync('userInfo', req.data.data)
 							that.$store.commit('login', req.data.data)
-							that.liangxinLogin()
+							// that.liangxinLogin()
 							uni.switchTab({
 								url: '/pages/sale/information'
 							});
@@ -283,7 +283,7 @@
 					 	that.$store.commit('login', that.userInfo)
 					 	that.$api.setUserInfo(that.userInfo)
 					 	uni.hideLoading()
-						that.liangxinLogin()
+						// that.liangxinLogin()
 					 }) 
 					 if(res.data.phoneNumber){
 						uni.switchTab({
@@ -411,7 +411,7 @@
 					 						res.data.gender = userInfo.gender
 					 						if(userInfo.phone){
 					 							res.data.phone = userInfo.phone
-					 							that.liangxinLogin()
+					 							// that.liangxinLogin()
 					 						}
 					 						uni.setStorageSync('userInfo', res.data)
 					 						that.$store.commit('login', res.data)
@@ -514,7 +514,7 @@
 													url: '/pages/sale/information'
 												});
 												console.log("complete")
-												that.liangxinLogin()
+												// that.liangxinLogin()
 											}
 										})		
 										console.log( 'wx.getUserProfile=>用户允许了授权' );
@@ -614,7 +614,7 @@
 										res.data.gender = e.userInfo.gender
 										if(res.data.phone){
 											res.data.phone = e.userInfo.phone
-											that.liangxinLogin()
+											// that.liangxinLogin()
 										}
 										
 										uni.setStorageSync('userInfo', res.data)

+ 1 - 1
webim.js

@@ -62,7 +62,7 @@ const WEBIM = {
 				});
 			}
 			if(packet&&!packet.success){
-				this.liangxinLogin()
+				// this.liangxinLogin()
 			}
 		});
 		WEBIM.server.onNetworkChange(WEBIM.options);