Authored by ccbikai

地址管理提交时输入框不 focus

@@ -104,12 +104,14 @@ $addressForm.on('submit', function() { @@ -104,12 +104,14 @@ $addressForm.on('submit', function() {
104 // 简单的表单校验 104 // 简单的表单校验
105 if (!$(this).find('[name="consignee"]').val()) { 105 if (!$(this).find('[name="consignee"]').val()) {
106 tip.show('收件人不能为空'); 106 tip.show('收件人不能为空');
107 - $(this).find('[name="consignee"]').focus(); 107 +
  108 + // $(this).find('[name="consignee"]').focus();
108 return false; 109 return false;
109 } 110 }
110 if (!$(this).find('[name="mobile"]').val()) { 111 if (!$(this).find('[name="mobile"]').val()) {
111 tip.show('手机号不能为空'); 112 tip.show('手机号不能为空');
112 - $(this).find('[name="mobile"]').focus(); 113 +
  114 + // $(this).find('[name="mobile"]').focus();
113 return false; 115 return false;
114 } 116 }
115 if (!$(this).find('[name="area_code"]').val() || !$(this).find('[name="area"]').val()) { 117 if (!$(this).find('[name="area_code"]').val() || !$(this).find('[name="area"]').val()) {
@@ -118,7 +120,8 @@ $addressForm.on('submit', function() { @@ -118,7 +120,8 @@ $addressForm.on('submit', function() {
118 } 120 }
119 if (!$(this).find('[name="address"]').val()) { 121 if (!$(this).find('[name="address"]').val()) {
120 tip.show('地址不能为空'); 122 tip.show('地址不能为空');
121 - $(this).find('[name="address"]').focus(); 123 +
  124 + // $(this).find('[name="address"]').focus();
122 return false; 125 return false;
123 } 126 }
124 127