Browse Source

修复js表单验证机制bug

antshop
linyaostalker 5 years ago
parent
commit
62f32a086b
  1. 3
      backend/modules/shop/views/express-template/express_area_form.php

3
backend/modules/shop/views/express-template/express_area_form.php

@ -103,8 +103,7 @@ $(document).ready(function(){
$(this).val(1)
}
var basiccount = $(this).val();
// $(this).val(Math.floor(basiccount * 1) / 1);
$(this).val(basiccount.toString().match(/^\d+(?:\.\d{0,0})?/));
$(this).val(Math.floor(basiccount * 1) / 1);
}
})
$("#expressarea-basic_price").blur(function(){

Loading…
Cancel
Save