...
|
...
|
@@ -82,22 +82,22 @@ headerNavHammer.on('tap', function(e) { |
|
|
}
|
|
|
});
|
|
|
|
|
|
formHammer = new Hammer(document.getElementById('img-form'));
|
|
|
if (document.getElementById('img-form') !== null) {
|
|
|
formHammer = new Hammer(document.getElementById('img-form'));
|
|
|
|
|
|
formHammer.on('tap', function(e) {
|
|
|
if ($(e.target).hasClass('upload-img-remove')) {
|
|
|
$uploadImgList.html('');
|
|
|
imgStr = '';
|
|
|
setTimeout(function() {
|
|
|
$imgAdd.show();
|
|
|
}, 50);
|
|
|
formHammer.on('tap', function(e) {
|
|
|
if ($(e.target).hasClass('upload-img-remove')) {
|
|
|
$uploadImgList.html('');
|
|
|
imgStr = '';
|
|
|
setTimeout(function() {
|
|
|
$imgAdd.show();
|
|
|
}, 50);
|
|
|
|
|
|
}
|
|
|
});
|
|
|
}
|
|
|
});
|
|
|
}
|
|
|
|
|
|
// 点赞与取消点赞
|
|
|
// suggestContentHammer = new Hammer(document.getElementById('suggest-content'));
|
|
|
|
|
|
$likeBtn.bind('click', function() {
|
|
|
var id = $(this).closest('.suggest-item').attr('data-id'),
|
|
|
$that = $(this);
|
...
|
...
|
|