...
|
...
|
@@ -4,7 +4,14 @@ import utils from './utils'; |
|
|
|
|
|
let _noLoginUrl = function() {
|
|
|
let referrer = location.href.split('?')[0];
|
|
|
return '//m.yohobuy.com/signin.html?refer=' + encodeURIComponent(location.href) + '&openby:yohobuy={"action":"go.weblogin","params":{"jumpurl":{"url":"' + referrer.replace(/\//g, '\\/') + '","param":{"from":"app"}},"requesturl":{"url":"","param":{}},"priority":"N"}}';
|
|
|
let domain = 'm.yohobuy.com';
|
|
|
let url = utils.urlParse(referrer);
|
|
|
|
|
|
if (url.host !== 'm.yohobuy.com') {
|
|
|
domain = 'www.yohobuy.com';
|
|
|
}
|
|
|
|
|
|
return `//${domain}/signin.html?refer=` + encodeURIComponent(location.href) + '&openby:yohobuy={"action":"go.weblogin","params":{"jumpurl":{"url":"' + referrer.replace(/\//g, '\\/') + '","param":{"from":"app"}},"requesturl":{"url":"","param":{}},"priority":"N"}}';
|
|
|
};
|
|
|
|
|
|
export default {
|
...
|
...
|
|