Authored by chenchao

fix obj

@@ -174,10 +174,10 @@ var operationEdit={ @@ -174,10 +174,10 @@ var operationEdit={
174 } 174 }
175 } 175 }
176 }, 176 },
177 - selectOneOption:function(){ 177 + selectOneOption:function(_sel){
178 var firstGroup=$("#tab_body>.row").find(".form-group:eq(0)"); 178 var firstGroup=$("#tab_body>.row").find(".form-group:eq(0)");
179 firstGroup.nextAll().remove(); 179 firstGroup.nextAll().remove();
180 - var selectKey=$("#tab_body>#promotionType").val(); 180 + var selectKey=_sel.val();
181 var _html; 181 var _html;
182 var _selectObj; 182 var _selectObj;
183 switch(selectKey){ 183 switch(selectKey){
@@ -217,7 +217,7 @@ var operationEdit={ @@ -217,7 +217,7 @@ var operationEdit={
217 bindEvent:function(){ 217 bindEvent:function(){
218 var _g=this; 218 var _g=this;
219 $(document).on('click','#save',function(){return this.save()}); 219 $(document).on('click','#save',function(){return this.save()});
220 - $("#promotionType").change(function(){return _g.selectOneOption()}); 220 + $("#promotionType").change(function(){return _g.selectOneOption(this)});
221 }, 221 },
222 save:function(){ 222 save:function(){
223 var e=this.edit; 223 var e=this.edit;