...
|
...
|
@@ -92,22 +92,22 @@ function dispacthTapEvt(e) { |
|
|
$('.checkbox').on('touchstart', function() {
|
|
|
var $this = $(this);
|
|
|
|
|
|
if ($this.hasClass('icon-cb-checked')) {
|
|
|
$this.removeClass('icon-cb-checked').addClass('icon-checkbox');
|
|
|
if ($this.hasClass('icon-cb-radio')) {
|
|
|
$this.removeClass('icon-cb-radio').addClass('icon-radio');
|
|
|
return;
|
|
|
}
|
|
|
if ($this.hasClass('icon-checkbox')) {
|
|
|
$this.removeClass('icon-checkbox').addClass('icon-cb-checked');
|
|
|
if ($this.hasClass('icon-radio')) {
|
|
|
$this.removeClass('icon-radio').addClass('icon-cb-radio');
|
|
|
}
|
|
|
});
|
|
|
|
|
|
$invoice.on('touchend', '.checkbox', function() {
|
|
|
var $this = $(this);
|
|
|
|
|
|
if ($this.hasClass('icon-cb-checked')) {
|
|
|
if ($this.hasClass('icon-cb-radio')) {
|
|
|
$invoice.addClass('focus');
|
|
|
}
|
|
|
if ($this.hasClass('icon-checkbox')) {
|
|
|
if ($this.hasClass('icon-radio')) {
|
|
|
$invoice.removeClass('focus');
|
|
|
}
|
|
|
});
|
...
|
...
|
@@ -251,7 +251,7 @@ $('.dispatch-time').on('touchend', 'li', function() { |
|
|
$('.coin').on('touchend', function() {
|
|
|
var $this = $(this);
|
|
|
|
|
|
if ($this.find('.checkbox').hasClass('icon-cb-checked')) {
|
|
|
if ($this.find('.checkbox').hasClass('icon-cb-radio')) {
|
|
|
orderInfo('yohoCoin', $this.data('yoho-coin'));
|
|
|
$this.find('.can-use').hide();
|
|
|
} else {
|
...
|
...
|
@@ -266,7 +266,7 @@ $('.coin').on('touchend', function() { |
|
|
$invoice.on('touchend', '.checkbox', function(e) {
|
|
|
var $this = $(this);
|
|
|
|
|
|
orderInfo('invoice', $this.hasClass('icon-cb-checked'));
|
|
|
orderInfo('invoice', $this.hasClass('icon-cb-radio'));
|
|
|
e.preventDefault();
|
|
|
e.stopPropagation();
|
|
|
});
|
...
|
...
|
@@ -306,16 +306,17 @@ $('.dispatch').on('touchend', 'h3', function() { |
|
|
}
|
|
|
});
|
|
|
|
|
|
$subBlock.on('touchstart', 'i', function() {
|
|
|
$subBlock.on('touchstart', 'li', function() {
|
|
|
console.log($(this).hasClass('icon-radio'));
|
|
|
$.each($(this).parents('ul').find('i'), function() {
|
|
|
$(this).removeClass('icon-cb-radio').addClass('icon-radio');
|
|
|
$(this).parents('ul').find('i').removeClass('icon-cb-radio').addClass('icon-radio');
|
|
|
});
|
|
|
dispatchInfo = $(this).siblings('span').html();
|
|
|
dispatchInfo = $(this).find('span').html();
|
|
|
$(this).parents('.sub-block').find('h3 span').html(dispatchInfo);
|
|
|
if ($(this).hasClass('icon-cb-radio')) {
|
|
|
$(this).addClass('icon-radio');
|
|
|
} else if ($(this).hasClass('icon-radio')) {
|
|
|
$(this).addClass('icon-cb-radio');
|
|
|
if ($(this).find('i').hasClass('icon-cb-radio')) {
|
|
|
$(this).find('i').addClass('icon-radio');
|
|
|
} else if ($(this).find('i').hasClass('icon-radio')) {
|
|
|
$(this).find('i').addClass('icon-cb-radio');
|
|
|
}
|
|
|
});
|
|
|
|
...
|
...
|
@@ -332,3 +333,9 @@ function phoneHidden(phone) { |
|
|
|
|
|
$('.info-phone').html(phoneHidden($('.info-phone').html()));
|
|
|
|
|
|
$subBlock.each(function() {
|
|
|
if ($('ul li', this).length === 1) {
|
|
|
$('h3 i', this).hide();
|
|
|
}
|
|
|
});
|
|
|
|
...
|
...
|
|