...
|
...
|
@@ -166,11 +166,7 @@ var TicketCat = { |
|
|
var pan = $(this).parents('dl.pan');
|
|
|
var selectData = {};
|
|
|
|
|
|
if (!$('#biprice').data('yoho-coin-click')) {
|
|
|
$('.errbitip').html('抱歉,您的订单实付款不满足有货币使用条件');
|
|
|
return true;
|
|
|
}
|
|
|
|
|
|
$('.errbitip').html('');
|
|
|
$('#biprice').addClass('is-select');
|
|
|
selectData = _this.getSelectData();
|
|
|
if (selectData.yohoCoin * 1 <= 0) {
|
...
|
...
|
@@ -185,9 +181,17 @@ var TicketCat = { |
|
|
url: '/cart/index/setTicket',
|
|
|
data: selectData,
|
|
|
success: function(data) {
|
|
|
var result = data.data;
|
|
|
|
|
|
el.$loading.hide();
|
|
|
if (data.code === 200) {
|
|
|
_this.render(data.data);
|
|
|
if (result.yohoCoinCompute && !result.yohoCoinCompute.yohoCoinClick) {
|
|
|
$('.errbitip').html(result.yohoCoinCompute.yohoCoinMsg);
|
|
|
$('#biprice').removeClass('is-select');
|
|
|
$('.yohoCoinTip').addClass('coin-gray');
|
|
|
return false;
|
|
|
}
|
|
|
_this.render(result);
|
|
|
c.winHide(pan);
|
|
|
} else {
|
|
|
$('.errbitip').html(data.message);
|
...
|
...
|
@@ -305,7 +309,7 @@ var TicketCat = { |
|
|
|
|
|
for (i = 0; i < dArr.length; i++) {
|
|
|
|
|
|
if (dArr[i].promotion === '有货币:') {
|
|
|
if (dArr[i].promotion === '有货币') {
|
|
|
dArr[i].promotion = '有货币<span class="bi-modify">[修改]</span>:';
|
|
|
}
|
|
|
|
...
|
...
|
@@ -327,12 +331,15 @@ var TicketCat = { |
|
|
//有货币清零状态更新
|
|
|
$('dl.play-bi-pan').find('dt').removeClass('not-btn');
|
|
|
$('.not-btn-tip').addClass('hide');
|
|
|
$('.yohoCoinTip').removeClass('coin-gray');
|
|
|
if (!data.yohoCoinCompute.yohoCoinClick) {
|
|
|
//不可以使用状态
|
|
|
$('dl.play-bi-pan').find('dt').addClass('not-btn');
|
|
|
$('.not-btn-tip').removeClass('hide');
|
|
|
//如果有货币按钮为打开状态,则关闭
|
|
|
Order.Common.winHide($('.play-bi-pan'));
|
|
|
}
|
|
|
$('#biprice').data('.yoho-coin-click', data.yohoCoinCompute.yohoCoinClick);
|
|
|
$('#biprice').data('yoho-coin-click', data.yohoCoinCompute.yohoCoinClick);
|
|
|
$('#biprice').find('.num-limit-coin').html(data.yohoCoinCompute.yoho_coin_pay_rule.num_limit);
|
|
|
$('#biprice').find('.totalYohoCoinNum').html(data.yohoCoinCompute.totalYohoCoinNum);
|
|
|
$('#biprice').find('.yohoCoinNum').html(data.yohoCoinCompute.yohoCoinNum);
|
...
|
...
|
|