...
|
...
|
@@ -49,9 +49,13 @@ $(document).ajaxError((event, xhr) => { |
|
|
if (yoho.isApp) {
|
|
|
yoho.goLogin(window.location.href);
|
|
|
} else {
|
|
|
if (/AliApp/i.test(navigator.userAgent)) {
|
|
|
window.location.href = '//xianyu.yohobuy.com/xianyu/passport/login/taobao';
|
|
|
} else {
|
|
|
window.location.href = `/signin.html?refer=${encodeURIComponent(window.location.href)}`;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
} else if (xhr.status === 510) {
|
|
|
if (xhr.responseJSON.data && xhr.responseJSON.data.refer) {
|
|
|
window.location.href = xhr.responseJSON.data.refer;
|
...
|
...
|
|