|
@@ -1979,6 +1979,12 @@ function setProductTotalFee() {
|
|
|
if (isNaN(discount)) {
|
|
|
discount = Number($("#discountFee").val());
|
|
|
}
|
|
|
+ if ($('.productTable').length == 0){
|
|
|
+ // 非添加订单页面
|
|
|
+ $("#discount").val('0.00');
|
|
|
+ $(".payableAmount").text(0);
|
|
|
+ return;
|
|
|
+ }
|
|
|
var trs = $('.productTable tbody').find('tr:not(.gift)');
|
|
|
if (trs.length == 0) { //没有添加商品的情况
|
|
|
$("#discount").val('0.00');
|