...
|
...
|
@@ -278,7 +278,7 @@ img{ |
|
|
Request = GetRequest();
|
|
|
uid = Request['uid'];
|
|
|
if (!uid){
|
|
|
var locationUrl = window.location.href;
|
|
|
var locationUrl = cutUrl(window.location.href);
|
|
|
var url = locationUrl + '?openby:yohobuy={"action":"go.weblogin","params":{"jumpurl":{"url":"'
|
|
|
+ locationUrl +'","param":{"from":"app"}},"requesturl":{"url":"","param":{}},"priority":"Y"}}';
|
|
|
//window.location.href=url;
|
...
|
...
|
@@ -349,6 +349,14 @@ img{ |
|
|
a.src = j;
|
|
|
m.parentNode.insertBefore(a,m);
|
|
|
})(window, document, 'script', 'http://cdn.yoho.cn/yas-jssdk/1.0.17/yas.js', '_yas');
|
|
|
//截取url
|
|
|
function cutUrl(url) {
|
|
|
var urlStr = url;
|
|
|
var urlArr = new Array();
|
|
|
urlArr = urlStr.split("?");
|
|
|
url = urlArr[0];
|
|
|
return url;
|
|
|
}
|
|
|
//获取url的uid
|
|
|
function GetRequest() {
|
|
|
var url = location.search; //获取url中"?"符后的字串
|
...
|
...
|
|