fix 支付页v4 最大支付金额

master
luoyang 5 years ago
parent 31d02e18e0
commit 1d0811d33a

@ -42,7 +42,7 @@ $(function () {
return;
}
var char = $(this).val();
if (parseFloat(char) > 10000) {
if (parseFloat(char) >= 100000) {
char = char.slice(0, char.length - 1);
$(this).val(char);
return;
@ -167,8 +167,7 @@ $(function () {
return;
}
var pointLocation = dataCache.price.indexOf('.');
if (pointLocation >= 0 || char == '.' || char.length < 5) {
if (pointLocation >= 0 && char == '.') {
if (char == '.' || char.length > 8) {
return;
}
if (pointLocation >= 0 && pointLocation <= char.length - 4) {

@ -34,7 +34,7 @@ $(function () {
return;
}
var char = $(this).val();
if (parseFloat(char) > 10000) {
if (parseFloat(char) >= 100000) {
char = char.slice(0, char.length - 1);
$(this).val(char);
return;
@ -159,8 +159,7 @@ $(function () {
return;
}
var pointLocation = dataCache.price.indexOf('.');
if (pointLocation >= 0 || char == '.' || char.length < 5) {
if (pointLocation >= 0 && char == '.') {
if (char == '.' || char.length > 8) {
return;
}
if (pointLocation >= 0 && pointLocation <= char.length - 4) {
@ -173,7 +172,6 @@ $(function () {
updatePrice();
updatePoundageStatus();
}
}
function updatePoundageStatus() {
$(window.coupons).each(function () {

Loading…
Cancel
Save