提交 f3e22201 编写于 作者: guangjun.yang's avatar guangjun.yang

带回手机号码

上级 694302c0
...@@ -135,10 +135,11 @@ ...@@ -135,10 +135,11 @@
this.signAnAgreements(); this.signAnAgreements();
if(sessionStorage.getItem('target_url')) { if(sessionStorage.getItem('target_url')) {
let target_url = decodeURIComponent(sessionStorage.getItem('target_url')) || ''; let target_url = decodeURIComponent(sessionStorage.getItem('target_url')) || '';
let mobile = localStorage.getItem('mobile');
if(target_url.indexOf('?') != -1) { if(target_url.indexOf('?') != -1) {
target_url += `&token=${res.data.token}` target_url += `&token=${res.data.token}&mobile=${mobile}`
} else { } else {
target_url += `?token=${res.data.token}` target_url += `?token=${res.data.token}&mobile=${mobile}`
} }
console.log('登录成功,开始跳转页面>>>>>>', target_url); console.log('登录成功,开始跳转页面>>>>>>', target_url);
window.location.replace(target_url); window.location.replace(target_url);
......
...@@ -101,10 +101,11 @@ ...@@ -101,10 +101,11 @@
this.signAnAgreements(); this.signAnAgreements();
if(sessionStorage.getItem('target_url')) { if(sessionStorage.getItem('target_url')) {
let target_url = decodeURIComponent(sessionStorage.getItem('target_url')); let target_url = decodeURIComponent(sessionStorage.getItem('target_url'));
let mobile = localStorage.getItem('mobile');
if(target_url.indexOf('?') != -1) { if(target_url.indexOf('?') != -1) {
target_url += `&token=${data.token}` target_url += `&token=${data.token}&mobile=${mobile}`
} else { } else {
target_url += `?token=${data.token}` target_url += `?token=${data.token}&mobile=${mobile}`
} }
console.log('登录成功,开始跳转页面>>>>>>', target_url); console.log('登录成功,开始跳转页面>>>>>>', target_url);
window.location.replace(target_url); window.location.replace(target_url);
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册