Authored by jinhu.tung

control go to checkout

... ... @@ -23,8 +23,6 @@
</div>
</div>
<div class="checkout">
<a href="/" class="go-to-checkout">
<span class="btn {{#unless selectedNum}}disable{{/unless}}" id="checkout_btn">去结算</span>
</a>
<span class="btn {{#unless selectedNum}}disable{{/unless}}" id="checkout_btn">去结算</span>
</div>
</div>
\ No newline at end of file
... ...
... ... @@ -66,11 +66,14 @@ $(function() {
});
}).delegate('#checkout_btn', 'click', function(e) {
e.preventDefault();
Cart.checkStorage(function() {
if (!$(this).hasClass('disable')) {
window.location.href = '/shopping/order';
}
});
if($('.chk-group').length) {
Cart.checkStorage(function() {
if (!$(this).hasClass('disable')) {
window.location.href = '/shopping/order';
}
});
}
return false;
});
// // 全选和单选
... ...
... ... @@ -17,6 +17,12 @@
}
}
.chk-all {
&:hover {
cursor: pointer;
}
}
.checked {
display: none;
}
... ...