Browse Source

1.清空无用信息

zhangmengjie 5 years ago
parent
commit
981729e8f8
1 changed files with 1 additions and 17 deletions
  1. 1 17
      pages/Login.js

+ 1 - 17
pages/Login.js

@@ -144,7 +144,7 @@ export default class Login extends BasePage {
 			};
 			http_user.mobileLoginAndReg(option).then((result) => {
 				if (result.code == 200) {
-					// ToastAndroid.show("", ToastAndroid.SHORT);
+					//登陆成功了,可以存储用户数据到本地
 					this.clearPageToNext('SchoolAge');
 				} else {
 					ToastAndroid.show(result.message, ToastAndroid.SHORT);
@@ -156,21 +156,6 @@ export default class Login extends BasePage {
 	}
 
 	wechatLogin() {
-		//网络请求 status 500
-		/**
-         * {
-	        "channel": "006",
-	        "deviceCode": "fb3dcd333348ZX1G42CPJD",
-	        "openId": "odI7ls2Bk_0A2_Y0E6D4dAKuSsqs",
-        	"unionId": "o8sgct5UksQ7kfrSGTBRRgwY5oVU",
-        	"avatar": "",
-	        "sex": "2",
-        	"nickName": "雨露"
-            }
-         * 
-         * 
-         * 
-         */
 		console.log('this.state.deviceCode:' + this.state.deviceCode);
 		wechat.wechatLogin((user) => {
 			let option = {
@@ -188,7 +173,6 @@ export default class Login extends BasePage {
 			http_user.wechatLogin(option).then((result) => {
 				if (result.code == 200) {
 					//登陆成功了,可以存储用户数据到本地
-					// ToastAndroid.show(result.message, ToastAndroid.SHORT);
 					this.clearPageToNext('SchoolAge');
 				} else {
 					ToastAndroid.show(result.message, ToastAndroid.SHORT);