...
|
...
|
@@ -681,10 +681,10 @@ function collectClick() { |
|
|
$('#collect').on('touchstart', function() {
|
|
|
if ($('#collect').hasClass('alreadyCollect')) {
|
|
|
cancelShop();
|
|
|
$('#collect').attr('class', 'notCollect');
|
|
|
|
|
|
}else{
|
|
|
collectShop();
|
|
|
$('#collect').attr('class', 'alreadyCollect');
|
|
|
|
|
|
}
|
|
|
});
|
|
|
};
|
...
|
...
|
@@ -695,14 +695,21 @@ function postCollect(info) { |
|
|
return;
|
|
|
}
|
|
|
searching = true;
|
|
|
console.log(info.url)
|
|
|
|
|
|
$.ajax({
|
|
|
method: 'post',
|
|
|
url: info.url,
|
|
|
data: info.data,
|
|
|
|
|
|
success: function(data) {
|
|
|
|
|
|
if (data.code===200){
|
|
|
if ($('#collect').hasClass('alreadyCollect')) {
|
|
|
$('#collect').attr('class', 'notCollect');
|
|
|
}else{
|
|
|
$('#collect').attr('class', 'alreadyCollect');
|
|
|
}
|
|
|
}
|
|
|
|
|
|
setTimeout(function () {
|
|
|
myScroll.refresh();
|
|
|
scH = $('#scroller').outerHeight();
|
...
|
...
|
|