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