Authored by michaelcao

update

... ... @@ -15,10 +15,8 @@
<script type="text/javascript" src="js/style.js"></script>
<script>
$(function() {
alert(0);
var uid = null;
var clickBoxArr = {};
var vars = {},
hash,
i,
... ... @@ -34,12 +32,12 @@
//判定登录
if (!isApp) {
alert(1);
var dataRequestUrl = "http://m.yohobuy.com/passport/login/user";
$.getJSON(dataRequestUrl+"?callback=?",
function(json) {
if (json.code === 200) {
uid=json.data;
setAttr();
} else {
var url ='http://m.yohobuy.com/signin.html?refer=' + window.location.href;
//window.location.href=url;
... ... @@ -53,7 +51,6 @@
}
);
} else {
alert(2);
var Request = new Object();
Request = GetRequest();
uid = Request['uid'];
... ... @@ -67,10 +64,12 @@
'</a>');
}
$(".collocation-link").click();
}else{
setAttr();
}
}
function setAttr(){
$.post("/activity/brandDraw/getBrandActList", function(data) {
if (!data || data.code != 200) {
return;
... ... @@ -126,12 +125,11 @@
$(".act-list-ul").append('<a><li>' + _obj.brandInfo + '</li></a>');
}
}
} else {
// $(".a-box-ul").append('<li awa="yes"><img src=' + _obj.boxImage + ' /></li>');
}
}
}
});
});
}
});
//截取url
function cutUrl(url) {
... ...