...
|
...
|
@@ -910,14 +910,14 @@ $collect.on('touchstart', function() { |
|
|
if (data.code === 200) {
|
|
|
if ($collect.hasClass('already-collect')) {
|
|
|
$collect.attr('class', 'not-collect');
|
|
|
tip.show('店铺取消收藏成功');
|
|
|
} else {
|
|
|
$collect.attr('class', 'already-collect');
|
|
|
tip.show('店铺收藏成功');
|
|
|
}
|
|
|
}
|
|
|
|
|
|
if (data.code === 401) {
|
|
|
// url = 'http://m.yohobuy.com/signin.html?refer=' + encodeURIComponent(location.href) + '&openby:yohobuy=';
|
|
|
// url += JSON.stringify({"action": "go.weblogin", "params": { "jumpurl": { "url": 'http://m.yohobuy.com' + location.pathname, "param": info.data }, "requesturl": { "param": {}, "url": "" }, "priority": "N" } });
|
|
|
url = data.url;
|
|
|
if ($('#jump-login').length <= 0) {
|
|
|
$('body').append('<a href=\'' + url + '\'><span id="jump-login"><span></a>');
|
...
|
...
|
|