Authored by 沈志敏

修改方法

... ... @@ -159,7 +159,7 @@ $(function() {
if ($('.over').length) {
// 过期/删除 状态的 活动
setTimeout(function(){
yoho.goHome('//m.yohobuy.com/');
yoho.goHome();
}, 3000);
return false;
}
... ...
... ... @@ -175,18 +175,13 @@ yoho = {
return false;
},
goHome: function(link, data) {
var url = link;
if (!link) {
return;
}
link = yoho.parseUrl(link || location.href);
goHome: function() {
var url = '//m.yohobuy.com/';
if (yoho.isApp) {
url = url + '?openby:yohobuy=' + (data || JSON.stringify({
url = url + '?openby:yohobuy=' + JSON.stringify({
action: 'go.home'
}));
});
}
$appLink.attr('href', url);
$appLink[0].click();
... ...