Browse Source

企业修改

jack 7 years ago
parent
commit
39b570a7fd
2 changed files with 9 additions and 1 deletions
  1. 1 1
      cmp-portal/cmp-updateinfo.html
  2. 8 0
      cmp-portal/js/cmp-updateinfo.js

+ 1 - 1
cmp-portal/cmp-updateinfo.html

@ -152,7 +152,7 @@
152 152
										<li>
153 153
											<span class="col-w-2 lableSpan">联系邮箱:</span>
154 154
											<div class="col-w-5">
155
												<input type="email" class="frmcontype" placeholder="请填写客服邮箱" />
155
												<input type="email" class="frmcontype" placeholder="请填写客服邮箱" id="mail"/>
156 156
											</div>
157 157
										</li>
158 158
										<li class="form-item">

+ 8 - 0
cmp-portal/js/cmp-updateinfo.js

@ -250,6 +250,14 @@ $(document).ready(function() {
250 250
					$info.contactNum=$("#cmpAddress").val();
251 251
				}
252 252
			}
253
			if($("#mail").val().trim()) {
254
				if($("#mail").val().trim().indexOf("@")) {
255
					$info.email =$("#mail").val();
256
				}else{
257
					$.MsgBox.Alert('提示', '邮箱格式不正确');
258
						return;
259
				}
260
			}
253 261
			$info.descp = $("textarea").val();
254 262
			$info.industry = oString("#industryList");
255 263
			$info.subject = oString("#subjectList");