修复vip校验
This commit is contained in:
@@ -667,18 +667,16 @@ export default {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
let addSize = $('#addSize').val();
|
|
||||||
if (!addSize) {
|
|
||||||
addSize = 0;
|
|
||||||
}
|
|
||||||
if (addSize > 0) {
|
|
||||||
$('#addSize').val(--addSize);
|
|
||||||
}
|
|
||||||
$('#returnProfit' + index).remove();
|
|
||||||
}
|
}
|
||||||
} else {
|
|
||||||
$('#returnProfit' + index).remove();
|
|
||||||
}
|
}
|
||||||
|
let addSize = $('#addSize').val();
|
||||||
|
if (!addSize) {
|
||||||
|
addSize = 0;
|
||||||
|
}
|
||||||
|
if (addSize > 0) {
|
||||||
|
$('#addSize').val(--addSize);
|
||||||
|
}
|
||||||
|
$('#returnProfit' + index).remove();
|
||||||
});
|
});
|
||||||
|
|
||||||
// 保存
|
// 保存
|
||||||
@@ -738,6 +736,9 @@ export default {
|
|||||||
let returnProfitId = $('#returnProfitId' + i).val();
|
let returnProfitId = $('#returnProfitId' + i).val();
|
||||||
let profitDate = parseFloat($('#profitDate' + i).val());
|
let profitDate = parseFloat($('#profitDate' + i).val());
|
||||||
let profitAmount = $('#profitAmount' + i).val();
|
let profitAmount = $('#profitAmount' + i).val();
|
||||||
|
if (!returnProfitId && !profitDate && !profitAmount) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
if (profitDate != 0 && profitDate > 29) {
|
if (profitDate != 0 && profitDate > 29) {
|
||||||
$("#tipMsg").text("返利日期不能超过30天!");
|
$("#tipMsg").text("返利日期不能超过30天!");
|
||||||
$("#tipModal").modal('show');
|
$("#tipModal").modal('show');
|
||||||
|
Reference in New Issue
Block a user