...
|
...
|
@@ -17,8 +17,19 @@ |
|
|
$(function() {
|
|
|
var uid = null;
|
|
|
var clickBoxArr = {};
|
|
|
var qs = util.qs;//qs
|
|
|
var isApp = !!qs.app_version || (qs.openrefer === 'app' && qs.uid);//判断是否是APP
|
|
|
|
|
|
var vars = {},
|
|
|
hash,
|
|
|
i,
|
|
|
search = window.location.search,
|
|
|
hashes = search ? decodeURIComponent(search).slice(1).split('&') : [];
|
|
|
|
|
|
for (i = 0; i < hashes.length; i++) {
|
|
|
hash = hashes[i].split('=');
|
|
|
vars[hash[0]] = hash[1];
|
|
|
}
|
|
|
|
|
|
var isApp = !!vars.app_version || (vars.openrefer === 'app' && vars.uid);//判断是否是APP
|
|
|
//判定登录
|
|
|
|
|
|
if (!isApp) {
|
...
|
...
|
@@ -41,10 +52,11 @@ |
|
|
}
|
|
|
);
|
|
|
} else {
|
|
|
var Request = new Object();
|
|
|
Request = GetRequest();
|
|
|
uid = Request['uid'];
|
|
|
if (uid) {
|
|
|
var Request = new Object();
|
|
|
Request = GetRequest();
|
|
|
uid = Request['uid'];
|
|
|
|
|
|
} else {
|
|
|
var url ='http://m.yohobuy.com/signin.html?openby:yohobuy={"action":"go.weblogin","params":{"jumpurl":{"url":'
|
|
|
+'/activity/brand/index.html'+'","param":{"from":"app"}},"requesturl":{"url":"","param":{}},"priority":"Y"}}';
|
...
|
...
|
|