Browse Source

微信登录

jack 8 years ago
parent
commit
4d5e95a7bc
1 changed files with 4 additions and 6 deletions
  1. 4 6
      app/js/backBindOn.js

+ 4 - 6
app/js/backBindOn.js

75
					console.log(data.data)
75
					console.log(data.data)
76
					if(data.data != "null" && data.data != null) {
76
					if(data.data != "null" && data.data != null) {
77
						var userId = data.data.id;
77
						var userId = data.data.id;
78
						plus.storage.setItem('userid', userId);
79
						alert(333)
80
						buildingWeiChat(userId);
78
						buildingWeiChat(userId);
81
						firstLogin();
82
					} else {
79
					} else {
83
						plus.nativeUI.toast("帐号和密码不匹配,请检查后重试", toastStyle);
80
						plus.nativeUI.toast("帐号和密码不匹配,请检查后重试", toastStyle);
84
						return;
81
						return;
105
				success: function(data) {
102
				success: function(data) {
106
					console.log(JSON.stringify(data));
103
					console.log(JSON.stringify(data));
107
					if(data.success) {
104
					if(data.success) {
108
						alert(444);
105
						plus.storage.setItem('userid', id);
106
						firstLogin();
109
					}else{
107
					}else{
110
						if(data.code==2) {
108
						if(data.code==2) {
111
							
109
							plus.nativeUI.toast("该账号已绑定微信号", toastStyle);
110
							return;
112
						}
111
						}
113
					}
112
					}
114
				},
113
				},
130
				success: function(data) {
129
				success: function(data) {
131
					console.log(JSON.stringify(data))
130
					console.log(JSON.stringify(data))
132
					if(data.success) {
131
					if(data.success) {
133
						alert(555)
134
						if(data.data.authentication < 0){
132
						if(data.data.authentication < 0){
135
							var productView = mui.preload({
133
							var productView = mui.preload({
136
								url: '../html/fillinfo.html',
134
								url: '../html/fillinfo.html',