Commit db451d78 by 朱继来

Merge branch 'zjl_freight_20210906' into development

parents cfdc8c08 dc1fceef
Showing with 8 additions and 2 deletions
......@@ -472,9 +472,15 @@
$('.self_freight_fee').keyup(function() {
var val = $(this).val() || 0;
var reg = /\d/;
$('.freight_fee').val(val);
$('.freight_fee_val').text(val);
if (val && !reg.test(val)) {
$('.freight_fee').val(0);
$('.freight_fee_val').text(0);
} else {
$('.freight_fee').val(val);
$('.freight_fee_val').text(val);
}
calculate();
})
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment