...
|
...
|
@@ -63,7 +63,10 @@ let env = function() { |
|
|
let loginUrl = function() {
|
|
|
let url, refer = location.href;
|
|
|
|
|
|
if (env === 'app') {
|
|
|
enviroment = env();
|
|
|
|
|
|
|
|
|
if (enviroment === 'app') {
|
|
|
url = 'http://m.yohobuy.com/signin.html?refer=' + encodeURIComponent(refer);
|
|
|
refer = parseUrl(refer);
|
|
|
if (/Android/i.test(navigator.userAgent || '')) {
|
...
|
...
|
@@ -91,9 +94,9 @@ let loginUrl = function() { |
|
|
needlogout: 'Y'
|
|
|
}
|
|
|
});
|
|
|
} else if (env === 'pc') {
|
|
|
} else if (enviroment === 'pc') {
|
|
|
url = 'https://www.yoho/signin.html?refer=' + encodeURIComponent(location.href);
|
|
|
} else if (env === 'miniprogram') {
|
|
|
} else if (enviroment === 'miniprogram') {
|
|
|
url = '/pages/userCenter/userCenter';
|
|
|
} else {
|
|
|
if (refer.indexOf('?') < 0) {
|
...
|
...
|
|