xiuli.gao 6 years ago
parent
commit
5dddef0f40
1 changed files with 10 additions and 3 deletions
  1. 10 3
      shareBooks/bindingPhone.html

+ 10 - 3
shareBooks/bindingPhone.html

161
 	var pwdFlag=false;
161
 	var pwdFlag=false;
162
 	var pwdConfirmFlag=false;
162
 	var pwdConfirmFlag=false;
163
 	var successFlag = false;
163
 	var successFlag = false;
164
-	
164
+	var user_name = '';
165
+	var book_name = '';
166
+	var avatar = '';
167
+	var user_code = 0;
165
 	
168
 	
166
 	function iknow() {
169
 	function iknow() {
167
 		if(successFlag){
170
 		if(successFlag){
168
-			var addUrl = localStorage.getItem('addUrl')
169
-			window.location.href=addUrl;
171
+//			var addUrl = localStorage.getItem('addUrl')
172
+			window.location.href='/shareBooks/wechatAddSuccess.html?appUrl=https%3A%2F%2Fitunes.apple.com%2Fcn%2Fapp%2F%2Fid1300097774%3Fmt%3D8&code=0&message=成功&avatar=' + avatar + "&userName=" + user_name + "&bookName=" + book_name;
170
 		}
173
 		}
171
 		$(".mask").css("visibility","hidden");
174
 		$(".mask").css("visibility","hidden");
172
 		$("#imgYzm").val("")
175
 		$("#imgYzm").val("")
316
 					$(".mask").css("visibility","visible");
319
 					$(".mask").css("visibility","visible");
317
 					var msg = JSON.parse(res).message[0];
320
 					var msg = JSON.parse(res).message[0];
318
 					$(".content p").html('手机号绑定成功');
321
 					$(".content p").html('手机号绑定成功');
322
+					user_name = JSON.parse(res).res.user_name;
323
+					book_name = JSON.parse(res).res.book_name;
324
+					avatar = JSON.parse(res).res.avatar;
325
+					avatar = encodeURIComponent(avatar);
319
 					successFlag = true;
326
 					successFlag = true;
320
 				}else{
327
 				}else{
321
 					var msg = JSON.parse(res).message[0]
328
 					var msg = JSON.parse(res).message[0]