...
|
...
|
@@ -71,19 +71,20 @@ $('.checkbox').on('touchstart', function() { |
|
|
}
|
|
|
});
|
|
|
|
|
|
$('.invoice').on('touchend', '.checkbox', function() {
|
|
|
$invoice.on('touchend', '.checkbox', function() {
|
|
|
var $this = $(this);
|
|
|
|
|
|
if ($this.hasClass('icon-cb-checked')) {
|
|
|
$('.invoice').addClass('focus');
|
|
|
$invoice.addClass('focus');
|
|
|
}
|
|
|
if ($this.hasClass('icon-checkbox')) {
|
|
|
$('.invoice').removeClass('focus');
|
|
|
$invoice.removeClass('focus');
|
|
|
}
|
|
|
});
|
|
|
|
|
|
function orderCompute() {
|
|
|
var yohoCoin = orderInfo('yohoCoin');
|
|
|
|
|
|
$.ajax({
|
|
|
method: 'POST',
|
|
|
url: '/cart/index/orderCompute',
|
...
|
...
|
@@ -233,10 +234,12 @@ $('.coin').on('touchend', function() { |
|
|
orderCompute();
|
|
|
});
|
|
|
|
|
|
$invoice.on('touchend', function() {
|
|
|
$invoice.on('touchend', function(e) {
|
|
|
var $this = $(this);
|
|
|
|
|
|
orderInfo('invoice', $this.find('.checkbox').hasClass('icon-cb-checked'));
|
|
|
e.preventDefault();
|
|
|
e.stopPropagation();
|
|
|
});
|
|
|
|
|
|
$invoice.find('[name="invoice-title"]').on('blur', function() {
|
...
|
...
|
|