...
|
...
|
@@ -130,7 +130,17 @@ $cartnewSum.one('click', 'input[type="checkbox"]', function() { |
|
|
};
|
|
|
choiceOut(dataJSON);
|
|
|
});
|
|
|
|
|
|
// 滚动到第一个选中的商品
|
|
|
function scrollToFirst(){
|
|
|
var $selected = $('.pay-wapper tbody tr').find('.cart-item-check:checked');
|
|
|
var top = 0;
|
|
|
if($selected.length > 0){
|
|
|
$selected = $selected.eq(0);
|
|
|
}
|
|
|
top = $selected.offset().top - 50;
|
|
|
$('html,body').scrollTop(top);
|
|
|
return false;
|
|
|
}
|
|
|
function isCheck(obj, className) {
|
|
|
selectArray = [];
|
|
|
dataJSON = {};
|
...
|
...
|
@@ -880,4 +890,5 @@ $payWapper.on('selectstart', function() { |
|
|
});
|
|
|
$goodsDetail.on('selectstart', function() {
|
|
|
return false;
|
|
|
}); |
|
|
\ No newline at end of file |
|
|
});
|
|
|
scrollToFirst(); |
|
|
\ No newline at end of file |
...
|
...
|
|