|
@@ -161,12 +161,15 @@
|
161
|
161
|
var pwdFlag=false;
|
162
|
162
|
var pwdConfirmFlag=false;
|
163
|
163
|
var successFlag = false;
|
164
|
|
-
|
|
164
|
+ var user_name = '';
|
|
165
|
+ var book_name = '';
|
|
166
|
+ var avatar = '';
|
|
167
|
+ var user_code = 0;
|
165
|
168
|
|
166
|
169
|
function iknow() {
|
167
|
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
|
174
|
$(".mask").css("visibility","hidden");
|
172
|
175
|
$("#imgYzm").val("")
|
|
@@ -316,6 +319,10 @@
|
316
|
319
|
$(".mask").css("visibility","visible");
|
317
|
320
|
var msg = JSON.parse(res).message[0];
|
318
|
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
|
326
|
successFlag = true;
|
320
|
327
|
}else{
|
321
|
328
|
var msg = JSON.parse(res).message[0]
|