Showing
3 changed files
with
4 additions
and
17 deletions
@@ -520,7 +520,6 @@ var Order = { | @@ -520,7 +520,6 @@ var Order = { | ||
520 | var pan = $(this).parents('dl.pan'); | 520 | var pan = $(this).parents('dl.pan'); |
521 | var juanText; | 521 | var juanText; |
522 | 522 | ||
523 | - $('.errbitip').html(''); | ||
524 | $('#biprice').addClass('is-select'); | 523 | $('#biprice').addClass('is-select'); |
525 | 524 | ||
526 | getSelectData(function(d) { | 525 | getSelectData(function(d) { |
@@ -529,12 +528,6 @@ var Order = { | @@ -529,12 +528,6 @@ var Order = { | ||
529 | juanText = $('.play-juan input[value="' + d.couponCode + '"]').next().text(); | 528 | juanText = $('.play-juan input[value="' + d.couponCode + '"]').next().text(); |
530 | } | 529 | } |
531 | 530 | ||
532 | - if (d.yohoCoin * 1 <= 0) { | ||
533 | - $('.errbitip').html('请输入一个正整数'); | ||
534 | - $('#biprice').removeClass('is-select'); | ||
535 | - return false; | ||
536 | - } | ||
537 | - | ||
538 | e.$loading.show(); | 531 | e.$loading.show(); |
539 | options = { | 532 | options = { |
540 | type: 'POST', | 533 | type: 'POST', |
@@ -542,7 +535,7 @@ var Order = { | @@ -542,7 +535,7 @@ var Order = { | ||
542 | data: d, | 535 | data: d, |
543 | success: function(data) { | 536 | success: function(data) { |
544 | var result = data.data; | 537 | var result = data.data; |
545 | - | 538 | + $('.errbitip').html(''); |
546 | e.$loading.hide(); | 539 | e.$loading.hide(); |
547 | if (data.code === 200) { | 540 | if (data.code === 200) { |
548 | if (result.yohoCoinCompute && !result.yohoCoinCompute.yohoCoinClick) { | 541 | if (result.yohoCoinCompute && !result.yohoCoinCompute.yohoCoinClick) { |
@@ -166,14 +166,8 @@ var TicketCat = { | @@ -166,14 +166,8 @@ var TicketCat = { | ||
166 | var pan = $(this).parents('dl.pan'); | 166 | var pan = $(this).parents('dl.pan'); |
167 | var selectData = {}; | 167 | var selectData = {}; |
168 | 168 | ||
169 | - $('.errbitip').html(''); | ||
170 | $('#biprice').addClass('is-select'); | 169 | $('#biprice').addClass('is-select'); |
171 | selectData = _this.getSelectData(); | 170 | selectData = _this.getSelectData(); |
172 | - if (selectData.yohoCoin * 1 <= 0) { | ||
173 | - $('.errbitip').html('请输入一个正整数'); | ||
174 | - $('#biprice').removeClass('is-select'); | ||
175 | - return false; | ||
176 | - } | ||
177 | 171 | ||
178 | el.$loading.show(); | 172 | el.$loading.show(); |
179 | $.ajax({ | 173 | $.ajax({ |
@@ -182,7 +176,7 @@ var TicketCat = { | @@ -182,7 +176,7 @@ var TicketCat = { | ||
182 | data: selectData, | 176 | data: selectData, |
183 | success: function(data) { | 177 | success: function(data) { |
184 | var result = data.data; | 178 | var result = data.data; |
185 | - | 179 | + $('.errbitip').html(''); |
186 | el.$loading.hide(); | 180 | el.$loading.hide(); |
187 | if (data.code === 200) { | 181 | if (data.code === 200) { |
188 | if (result.yohoCoinCompute && !result.yohoCoinCompute.yohoCoinClick) { | 182 | if (result.yohoCoinCompute && !result.yohoCoinCompute.yohoCoinClick) { |
@@ -1617,13 +1617,13 @@ class CartModel | @@ -1617,13 +1617,13 @@ class CartModel | ||
1617 | ]; | 1617 | ]; |
1618 | 1618 | ||
1619 | if ($yohoCoinData['totalYohoCoinNum'] < 100) { | 1619 | if ($yohoCoinData['totalYohoCoinNum'] < 100) { |
1620 | - $yohoCoinData['yohoCoinMsg'] = "共{$yohoCoinData['totalYohoCoinNum']}有货币,满{$orderCompute['yoho_coin_pay_rule']['num_limit']}可用"; | 1620 | + $yohoCoinData['yohoCoinMsg'] = "抱歉,您的有货币不足,有货币满{$orderCompute['yoho_coin_pay_rule']['num_limit']}个方可使用"; |
1621 | } else if ($yohoCoinData['useYohoCoin'] > 0 || $yohoCoinData['yohoCoin'] > 0) { | 1621 | } else if ($yohoCoinData['useYohoCoin'] > 0 || $yohoCoinData['yohoCoin'] > 0) { |
1622 | $yohoCoinData['yohoCoinMsg'] = '可抵¥' . ($yohoCoinData['useYohoCoin'] > 0 ? $yohoCoinData['useYohoCoin'] : $yohoCoinData['yohoCoin']); | 1622 | $yohoCoinData['yohoCoinMsg'] = '可抵¥' . ($yohoCoinData['useYohoCoin'] > 0 ? $yohoCoinData['useYohoCoin'] : $yohoCoinData['yohoCoin']); |
1623 | $yohoCoinData['yohoCoinClick'] = 1; | 1623 | $yohoCoinData['yohoCoinClick'] = 1; |
1624 | $yohoCoinData['yohoCoinNum'] = ($yohoCoinData['useYohoCoin'] > 0 ? $yohoCoinData['useYohoCoin'] : $yohoCoinData['yohoCoin']) * 100; | 1624 | $yohoCoinData['yohoCoinNum'] = ($yohoCoinData['useYohoCoin'] > 0 ? $yohoCoinData['useYohoCoin'] : $yohoCoinData['yohoCoin']) * 100; |
1625 | } else { | 1625 | } else { |
1626 | - $yohoCoinData['yohoCoinMsg'] = "不满足有货币使用条件"; | 1626 | + $yohoCoinData['yohoCoinMsg'] = "抱歉,您的订单实付款不满足有货币使用条件"; |
1627 | } | 1627 | } |
1628 | return $yohoCoinData; | 1628 | return $yohoCoinData; |
1629 | } | 1629 | } |
-
Please register or login to post a comment