...
|
...
|
@@ -32,6 +32,14 @@ function doCancel(ids) { |
|
|
});
|
|
|
}
|
|
|
|
|
|
function goodsChoose() {
|
|
|
if ($(this).parent('.goods-info', $root).hasClass('choose')) {
|
|
|
$(this).parent('.goods-info', $root).removeClass('choose');
|
|
|
} else {
|
|
|
$(this).parent('.goods-info', $root).addClass('choose');
|
|
|
}
|
|
|
}
|
|
|
|
|
|
|
|
|
function eventBind() {
|
|
|
$('.check-all', $root).check({
|
...
|
...
|
@@ -45,14 +53,8 @@ function eventBind() { |
|
|
}
|
|
|
});
|
|
|
|
|
|
$('.goods-img', $root).click(function() {
|
|
|
if ($(this).parent('.goods-info', $root).hasClass('choose')) {
|
|
|
$(this).parent('.goods-info', $root).removeClass('choose');
|
|
|
} else {
|
|
|
$(this).parent('.goods-info', $root).addClass('choose');
|
|
|
}
|
|
|
|
|
|
});
|
|
|
$('.choose-icon', $root).click(goodsChoose);
|
|
|
$('.goods-img', $root).click(goodsChoose);
|
|
|
|
|
|
$('.btn.cancel', $root).click(function() {
|
|
|
var id = $(this).parents('.goods-info').data('id');
|
...
|
...
|
|