From 62f32a086b109f396231dbec36c885dc7e4d6459 Mon Sep 17 00:00:00 2001 From: linyaostalker <602604991@qq.com> Date: Fri, 6 Dec 2019 19:16:01 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Djs=E8=A1=A8=E5=8D=95=E9=AA=8C?= =?UTF-8?q?=E8=AF=81=E6=9C=BA=E5=88=B6bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../shop/views/express-template/express_area_form.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/backend/modules/shop/views/express-template/express_area_form.php b/backend/modules/shop/views/express-template/express_area_form.php index 7864334..74b97d9 100755 --- a/backend/modules/shop/views/express-template/express_area_form.php +++ b/backend/modules/shop/views/express-template/express_area_form.php @@ -71,7 +71,7 @@ function changeCalType(type){//当切换计算方式 $.each(formList[type],function(index,value){ //更改文字标题 $("." + index).children("label").html(value) }); - + if(!$("#expressarea-basic_count").val()){ $("#expressarea-basic_count").val(udfVal[type][0])//重置初始值 } @@ -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(){