lyn7568 5 lat temu
rodzic
commit
519fb92b48
1 zmienionych plików z 19 dodań i 20 usunięć
  1. 19 20
      e/2.html

+ 19 - 20
e/2.html

@ -164,19 +164,22 @@
164 164
				<ul class="mui-table-view" id="proUnPatent">
165 165
				</ul>
166 166
			</div>
167
			<div class="seeMore " id="seeMorePaper">
168
				<em>查看全部 <span id="patentNum">0</span>篇</em></div>
167
			<div class="seeMore displayNone" id="seeMoreUnpatent">
168
				<em>查看全部 <span id="unpatentNum">0</span>篇</em></div>
169 169
		</div>
170
		<div class="mainbox displayNone">
170
171
172
173
		<div class="mainbox displayNone ">
171 174
			<div class="infocontit">专利</div>
172 175
			<div class="infocon madiaBlock">
173 176
				<ul class="mui-table-view" id="paperShow">
174 177
				</ul>
175 178
			</div>
179
			<div class="seeMore displayNone " id="seeMorePatent">
180
				<em>查看全部 <span id="patentNum">0</span>篇</em></div>
176 181
		</div>
177
		<div class="seeMore displayNone" id="seeMorePaper">
178
			<em>查看全部 <span id="paperHide">0</span>篇</em>
179
		</div>
182
180 183
181 184
182 185
@ -691,8 +694,7 @@
691 694
						"owner": proId,
692 695
					}, "GET", function (data) {
693 696
						if (data.data > rows) {
694
							$("#seeMorePatent").removeClass("displayNone")
695
							$("#paperHide").text(data.data);
697
696 698
						}
697 699
					});
698 700
					oAjax("/ajax/ppaper/count/publish", { //论文总数
@ -1224,6 +1226,10 @@
1224 1226
					var $info = res.data.data;
1225 1227
					$("#patentShow").html("")
1226 1228
					if ($info.length > 0) {
1229
						if ($info.length > 1) {
1230
							$("#seeMorePatent").removeClass("displayNone")
1231
						}
1232
						$("#patentNum").text($info.length);
1227 1233
						if (res.data.total > 0 && res.data.total < 99) {
1228 1234
							$("#patCount").text(res.data.total);
1229 1235
						}
@ -1269,7 +1275,6 @@
1269 1275
			oAjax("/ajax/ppatent/qm", {
1270 1276
				id: patentArr,
1271 1277
			}, "get", function (data) {
1272
				console.log(data)
1273 1278
				var dataStr = data.data;
1274 1279
				var strAdd = '';
1275 1280
				// 	strAdd += '<li class="mui-table-view-cell"><a  target="_blank" href="/'+ pageUrl("pt",dataStr[i]) +'" class="flexCenter urlgo">';
@ -1391,12 +1396,12 @@
1391 1396
						}
1392 1397
						$("#" + obj).append(strAdd)
1393 1398
1394
						if (dataStr.length == 1) {
1395
							$('#patentNum').parent().parent().css('display', 'none')
1399
						if (dataStr.length != 1) {
1400
							$('#seeMoreUnpatent').css('display', 'none')
1396 1401
						}
1397 1402
1398 1403
1399
						$('#patentNum').text(dataStr.length)
1404
						$('#unpatentNum').text(dataStr.length)
1400 1405
						// if (i < 3) {
1401 1406
						// 	$("#showPatent").append(strAdd);
1402 1407
						// }
@ -1429,7 +1434,7 @@
1429 1434
					}
1430 1435
					$('#forumNum').text(res.data.total)
1431 1436
1432
					
1437
1433 1438
				})
1434 1439
			}
1435 1440
@ -1476,13 +1481,7 @@
1476 1481
			}, 'get', function (res) {
1477 1482
				if (res.success && res.data) {
1478 1483
					var data = res.data.data
1479
					var lengt;
1480
					if (data.length > 4) {
1481
						lengt = 4
1482
					} else {
1483
						lengt = data.length
1484
					}
1485
					console.log(data)
1484
1486 1485
					for (var i = 0; i < data.length; i++) {
1487 1486
						var paperN, patentN;
1488 1487
						$.ajax({