Browse Source

修复bug

lyn7568 5 years ago
parent
commit
f208bb4219
4 changed files with 12 additions and 10 deletions
  1. 4 7
      js/teamList.js
  2. 2 1
      js/unPatentShow.js
  3. 1 1
      js/unPatentpreview.js
  4. 5 1
      teamList.html

+ 4 - 7
js/teamList.js

@ -134,17 +134,14 @@ function test() {
134 134
		return;
135 135
	}
136 136
	if (teamOrgName.length === 0) {
137
		$("#teamOrgName").parents(".postUl").find(".frmconmsg").text("请填写团队所属机构");
138
		$("#teamOrgName").parent().css("border-color","#e03b43");
139
		return;
140
	}
141
	if(teamOrgName.length>50) {
142
		$("#teamOrgName").parents(".postUl").find(".frmconmsg").text("不可超过50个字");
137
		console.log(teamOrgName.length)
138
		$("#teamOrgName").parents(".postUl").find(".frmconmsg").show().text("请填写团队所属机构");
143 139
		$("#teamOrgName").parent().css("border-color","#e03b43");
144 140
		return;
145 141
	}
142
	
146 143
	if($("#oprovince").text() == "请选择省/直辖市") {
147
		$("#Province").parents(".postUl").find(".frmconmsg").text("请选择省/直辖市");
144
		$("#Province").parents(".postUl").find(".frmconmsg").show().text("请选择省/直辖市");
148 145
		$("#Province").parent().css("border-color","#e03b43");
149 146
		return;
150 147
	}

+ 2 - 1
js/unPatentShow.js

@ -225,7 +225,6 @@ $(document).ready(function() {
225 225
						$("#expertli").append(oSt);
226 226
						} else {
227 227
							(function(n) {
228
								
229 228
								professorList(data.data[n].professorId);
230 229
							})(i)
231 230
							
@ -240,6 +239,7 @@ $(document).ready(function() {
240 239
	}
241 240
242 241
	function professorList(par) {
242
		console.log(par)
243 243
		$.ajax({
244 244
			url: "/ajax/professor/baseInfo/" + par,
245 245
			type: "GET",
@ -280,6 +280,7 @@ $(document).ready(function() {
280 280
	}
281 281
282 282
	function unauthUser($res) {
283
		console.log($res)
283 284
		var osting = ""
284 285
			var img;
285 286
			var styC = "";

+ 1 - 1
js/unPatentpreview.js

@ -388,7 +388,7 @@ $(document).ready(function() {
388 388
			});
389 389
		}
390 390
	})
391
	relatedArticles()
391
	// relatedArticles()
392 392
	/*产品里面相关文章*/
393 393
	function relatedArticles() {
394 394
		$.ajax({

+ 5 - 1
teamList.html

@ -69,12 +69,16 @@
69 69
					<input type="text" style="width: 100%;" class="frmcontype" placeholder="请填写团队名称,如XXX团队"
70 70
						maxlength="50" id="teamName" />
71 71
				</div>
72
73
72 74
				<div class="clearfix postUl">
73
					<p class="floatL aboutTit">所属机构<em class="requiredcon">*</em><span class="frmconmsg"
75
					<p class="floatL aboutTit">所属机构<em class="requiredcon">*</em><span id = 'cc'class="frmconmsg"
74 76
						style="display:none">不可超过50个字</span></p>
75 77
					<input type="text" style="width: 100%;" class="frmcontype" placeholder="请填写所属机构" maxlength="50"
76 78
						id="teamOrgName" />
77 79
				</div>
80
81
78 82
				<ul class="clearfix postUl">
79 83
					<p class="aboutTit">所在城市<em class="requiredcon">*</em><span class="frmconmsg"
80 84
						style="display:none">请选择所在城市</span></p>