判断在闲鱼中,未登录时跳转用闲鱼UFO的登录页
Showing
1 changed file
with
5 additions
and
1 deletions
@@ -49,7 +49,11 @@ $(document).ajaxError((event, xhr) => { | @@ -49,7 +49,11 @@ $(document).ajaxError((event, xhr) => { | ||
49 | if (yoho.isApp) { | 49 | if (yoho.isApp) { |
50 | yoho.goLogin(window.location.href); | 50 | yoho.goLogin(window.location.href); |
51 | } else { | 51 | } else { |
52 | - window.location.href = `/signin.html?refer=${encodeURIComponent(window.location.href)}`; | 52 | + if (/AliApp/i.test(navigator.userAgent)) { |
53 | + window.location.href = '//xianyu.yohobuy.com/xianyu/passport/login/taobao'; | ||
54 | + } else { | ||
55 | + window.location.href = `/signin.html?refer=${encodeURIComponent(window.location.href)}`; | ||
56 | + } | ||
53 | } | 57 | } |
54 | } | 58 | } |
55 | } else if (xhr.status === 510) { | 59 | } else if (xhr.status === 510) { |
-
Please register or login to post a comment