Showing
1 changed file
with
5 additions
and
3 deletions
@@ -8,7 +8,9 @@ var RESPONSEDATA={}; | @@ -8,7 +8,9 @@ var RESPONSEDATA={}; | ||
8 | /*获取基础商品数据*/ | 8 | /*获取基础商品数据*/ |
9 | var param = location.href.slice(location.href.indexOf("update")).match(/\/\d+/g); | 9 | var param = location.href.slice(location.href.indexOf("update")).match(/\/\d+/g); |
10 | // console.log(param); | 10 | // console.log(param); |
11 | +var ACTION=0; | ||
11 | if(param&¶m.length==2){ | 12 | if(param&¶m.length==2){ |
13 | + ACTION=1; | ||
12 | param[0]=param[0].replace(/\//,''); | 14 | param[0]=param[0].replace(/\//,''); |
13 | param[1]=param[1].replace(/\//,''); | 15 | param[1]=param[1].replace(/\//,''); |
14 | common.util.__ajax({ | 16 | common.util.__ajax({ |
@@ -69,9 +71,9 @@ var Bll={ | @@ -69,9 +71,9 @@ var Bll={ | ||
69 | IsEnter:false, | 71 | IsEnter:false, |
70 | productNameArr:['','男',''], | 72 | productNameArr:['','男',''], |
71 | setProductName:function(){ | 73 | setProductName:function(){ |
72 | - if(!Bll.IsEnter){ | ||
73 | - $("#productName").val(Bll.productNameArr.join("")); | ||
74 | - } | 74 | + if(!Bll.IsEnter&&!ACTION){ |
75 | + $("#productName").val(Bll.productNameArr.join("")); | ||
76 | + } | ||
75 | } | 77 | } |
76 | } | 78 | } |
77 | 79 |
-
Please register or login to post a comment