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

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

212
				$info.fn = cacheImageKey;
212
				$info.fn = cacheImageKey;
213
			}
213
			}
214
			$info.forShort = $("#businessAbbreviation").val();
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
			if($("#inteAddress").val().trim()) {
221
			if($("#inteAddress").val().trim()) {
219
				if($("#inteAddress").val().trim().length>20) {
222
				if($("#inteAddress").val().trim().length>20) {
220
						$.MsgBox.Alert('提示', '企业官网 20个字之内!');
223
						$.MsgBox.Alert('提示', '企业官网 20个字之内!');
231
			if($("#createTime").val()) {
234
			if($("#createTime").val()) {
232
				$info.foundTime = st6($("#createTime").val());
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
			$info.descp = $("textarea").val();
243
			$info.descp = $("textarea").val();
235
			$info.industry = oString("#industryList");
244
			$info.industry = oString("#industryList");
236
			$info.subject = oString("#subjectList");
245
			$info.subject = oString("#subjectList");

+ 1 - 2
js/articalShow.js

50
					var weibotitle = data.data.articleTitle;
50
					var weibotitle = data.data.articleTitle;
51
					var weibourl =window.location.href;
51
					var weibourl =window.location.href;
52
					var weibopic ="http://"+window.location.host+"/data/article/" + data.data.articleImg;
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
				var articletitle = data.data.articleTitle + "-科袖网";
56
				var articletitle = data.data.articleTitle + "-科袖网";
217
						$itemlist.find(".authiconNew").addClass(userType.sty);
217
						$itemlist.find(".authiconNew").addClass(userType.sty);
218
						
218
						
219
				}else{
219
				}else{
220
					alert(0)
221
					$("#relevantExperts").parent().parent().style.display="none";
220
					$("#relevantExperts").parent().parent().style.display="none";
222
				}
221
				}
223
			},
222
			},