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