Commit 417f709f authored by ben.liu's avatar ben.liu

fix:修改获取验证码

parent 0fe6725e
This diff is collapsed.
...@@ -2,7 +2,7 @@ let protocol = window.location.protocol; ...@@ -2,7 +2,7 @@ let protocol = window.location.protocol;
let payHost = protocol + '//mapi-qa.liangkebang.net/pay'; let payHost = protocol + '//mapi-qa.liangkebang.net/pay';
let shenceHost = 'https://bn.xyqb.com/sa?project=default'; // 测试地址 let shenceHost = 'https://bn.xyqb.com/sa?project=default'; // 测试地址
let talosHost = 'http://talos-vcc2.liangkebang.net'; // 电商分期测试环境服务地址 let talosHost = 'http://talos-test1.liangkebang.net'; // 电商分期测试环境服务地址
let operatorHost = 'https://operator.liangkebang.com'; let operatorHost = 'https://operator.liangkebang.com';
const toBHost = 'https://tob.liangkebang.net'; const toBHost = 'https://tob.liangkebang.net';
export default { talosHost, operatorHost, payHost, shenceHost, test: true, toBHost }; export default { talosHost, operatorHost, payHost, shenceHost, test: true, toBHost };
...@@ -26,8 +26,12 @@ export const goUrlExtends = { ...@@ -26,8 +26,12 @@ export const goUrlExtends = {
}); });
} }
const returnUrl = this.getReturnUrl(); const returnUrl = this.getReturnUrl();
let isOrder = true;
if (localStorage.get('hideOrder')) {
this.isOrder = false;
}
setTimeout(() => { setTimeout(() => {
if (returnUrl) { if (returnUrl && isOrder) {
window.location.replace(`${returnUrl}/orderList`); window.location.replace(`${returnUrl}/orderList`);
return; return;
} }
......
...@@ -615,9 +615,13 @@ export default { ...@@ -615,9 +615,13 @@ export default {
}, },
/* 忘记密码 */ /* 忘记密码 */
retrieveLink() { retrieveLink() {
let url = `${this.creditPayInfo.forgetPwdJumpUrl}&vccChannel=${VCC_CHANNEL}&redirectUrl=${window.location.href}`; const { orderNo, hideOrder, returnUrl } = this.$route.query || {};
const redirectUrl = `${window.location.origin}${window.location.pathname}?orderNo=${orderNo}&hideOrder=${hideOrder}&returnUrl=${returnUrl}`;
console.log(VCC_CHANNEL);
let url = `${this.creditPayInfo.forgetPwdJumpUrl}&vccChannel=${VCC_CHANNEL}&redirectUrl=${redirectUrl}`;
url = url.replace('{token}', localStorage.get('vccToken')); url = url.replace('{token}', localStorage.get('vccToken'));
window.location.href = url; console.log(url);
// window.location.href = url;
}, },
getObjectKey(obj) { getObjectKey(obj) {
return Object.keys(obj); return Object.keys(obj);
......
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment