jack 7 years ago
parent
commit
04a8cbd1b1
3 changed files with 14 additions and 6 deletions
  1. 1 1
      cmp-portal/cmp-updateinfo.html
  2. 12 3
      cmp-portal/js/cmp-updateinfo.js
  3. 1 2
      js/articalShow.js

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

@ -140,7 +140,7 @@
140 140
										<li>
141 141
											<span class="col-w-2 lableSpan">企业地址:</span>
142 142
											<div class="col-w-10">
143
												<input type="text" class="frmcontype" placeholder="如:北京市海淀区学院路方兴大厦" />
143
												<input type="text" class="frmcontype" placeholder="如:北京市海淀区学院路方兴大厦" id="cmpAddress"/>
144 144
											</div>
145 145
										</li>
146 146
										<li>

+ 12 - 3
cmp-portal/js/cmp-updateinfo.js

@ -212,9 +212,12 @@ $(document).ready(function() {
212 212
				$info.fn = cacheImageKey;
213 213
			}
214 214
			$info.forShort = $("#businessAbbreviation").val();
215
			$info.orgType = $("#orgType").val();
216
			$info.orgSize = $("#qualificationList").val();
217

215
			if($("#orgType").find("option:selected").text()!="请选择最符合的一项") {
216
				$info.orgType =$("#orgType").find("option:selected").text()
217
			}
218
			if($("#qualificationList").find("option:selected").text()!="请选择员工数量范围") {
219
				$info.orgSize = $("#qualificationList").find("option:selected").text();
220
			}
218 221
			if($("#inteAddress").val().trim()) {
219 222
				if($("#inteAddress").val().trim().length>20) {
220 223
						$.MsgBox.Alert('提示', '企业官网 20个字之内!');
@ -231,6 +234,12 @@ $(document).ready(function() {
231 234
			if($("#createTime").val()) {
232 235
				$info.foundTime = st6($("#createTime").val());
233 236
			}
237
			if($("#cmpAddress").val().trim()) {
238
				if($("#cmpAddress").val().trim().length>20) {
239
					$.MsgBox.Alert('提示', '企业地址 20个字之内!');
240
						return;
241
				}
242
			}
234 243
			$info.descp = $("textarea").val();
235 244
			$info.industry = oString("#industryList");
236 245
			$info.subject = oString("#subjectList");

+ 1 - 2
js/articalShow.js

@ -50,7 +50,7 @@ $(function() {
50 50
					var weibotitle = data.data.articleTitle;
51 51
					var weibourl =window.location.href;
52 52
					var weibopic ="http://"+window.location.host+"/data/article/" + data.data.articleImg;
53
					$("#weibo").attr("href","http://service.weibo.com/share/share.php?appkey=3677230589&title="+weibotitle+"&url="+weibourl+"&pic="+weibopic+"&ralateUid=6242830109&searchPic=false&style=simple");
53
					$("#weibo").attr("href","http://service.weibo.com/share/share.php?appkey=3677230589&title="+encodeURIComponent(weibotitle)+"&url="+encodeURIComponent(weibourl)+"&pic="+encodeURIComponent(weibopic)+"&content=utf-8"+"&ralateUid=6242830109&searchPic=false&style=simple");
54 54
				}
55 55
				
56 56
				var articletitle = data.data.articleTitle + "-科袖网";
@ -217,7 +217,6 @@ $(function() {
217 217
						$itemlist.find(".authiconNew").addClass(userType.sty);
218 218
						
219 219
				}else{
220
					alert(0)
221 220
					$("#relevantExperts").parent().parent().style.display="none";
222 221
				}
223 222
			},