Explorar el Código

专利论文添加作者的相关操作邀请

luyanan %!s(int64=7) %!d(string=hace) años
padre
commit
04d3baee55
Se han modificado 8 ficheros con 283 adiciones y 65 borrados
  1. 10 6
      css/genindex.css
  2. 5 5
      css/share.css
  3. 8 8
      js/common.js
  4. 1 1
      js/paperModify.js
  5. 120 13
      js/paperShow.js
  6. 135 29
      js/patentShow.js
  7. 3 1
      paperModify.html
  8. 1 2
      paperShow.html

+ 10 - 6
css/genindex.css

@ -734,12 +734,16 @@ div.zoomMask{position:absolute;background:url("../images/g-resource-mask.png") r
734 734
.showMainP .showTit{font-size: 14px;color: #333;padding-left: 12px;}
735 735
.showMainP .showCon{font-size: 14px;color: #666;}
736 736
.aboutPa .form-result{margin:-6px -20px 0 0;}
737
.aboutPa .form-result>ul>li{float:left;width: 47%;border:1px solid #E5E5E5;background:#FFFFFF;padding:20px;margin:20px 20px 0 0;min-height:auto;height: 76px;z-index:4;}
738
.aboutPa ul>li .goSpan{position: absolute; right: 20px;top: 50%;margin-top: -11px;cursor: pointer;}
739
.aboutPa ul>li .goSpan span{width: 54px;padding: 0;line-height: 26px;font-size: 14px;margin:0}
740
.aboutPa ul>li .shareCode{left:-8px}
741
.aboutPa ul>li.lastBtn{position:absolute;right:7px;bottom:20px;line-height:34px;text-align: center;cursor: pointer;}
737
.aboutPa .form-result>ul>li{display:none;float:left;width: 47%;border:1px solid #E5E5E5;background:#FFFFFF;padding:20px;margin:20px 20px 0 0;min-height:auto;height: 76px;/*z-index:4;*/}
738
.aboutPa .form-result>ul>li>a{display: block;width: 100%;}
739
.aboutPa .form-result>ul>li .shareCode{left:-8px;z-index:2;}
740
.aboutPa ul>li .goSpan{position: absolute; right: 20px;top: 50%;margin-top: -15px;cursor: pointer;}
741
.aboutPa ul>li .goSpan span{/*width: 90px;*/padding:2px 4px;line-height: 26px;font-size: 14px;margin:0}
742
.aboutPa ul>li .goSpan .attenSpan{width:auto;padding:2px 8px;padding-left: 20px;}
743
.aboutPa ul>li .goSpan .attenSpan:before{margin-top:-12px;left:6px;}
744
.aboutPa ul>li .goSpan .attenedSpan{padding-left:6px}
745
.aboutPa ul>li.lastBtn{position:absolute;right:7px;bottom:0;line-height:34px;text-align: center;cursor: pointer;}
742 746
.aboutPa ul>li.pointThis{cursor: pointer;}
743 747
.aboutPa .form-result>ul>li:hover{background:#FFFFFF;}
744
.aboutPa .form-result ul.authorBox{position:relative;height:212px;overflow: hidden;}
748
.aboutPa .form-result ul.authorBox{position:relative;/*height:212px;*//*overflow: hidden;*/}
745 749
.aboutPa .form-result ul.authorBox.removeHe{height:auto;}

+ 5 - 5
css/share.css

@ -29,7 +29,7 @@ html,body {margin:0;padding:0px;background: #efeff4;}
29 29
.invitebody .form-control.input_code{background-image: url(../images/wechat_icon_yanzhengma_nor@3x.png);}
30 30
.invitebody .form-control.input_pwd{background-image: url(../images/wechat_icon_mima_nor@3x.png);}
31 31
32
.invitebody .btn{font-size: 16px;font-weight: bold;line-height: 1;color:#FFFFFF;margin: 30px 0;padding: 12px 16px;}
32
.invitebody .btn{font-size: 16px;font-weight: bold;line-height: 1;color:#FFFFFF;margin:20px 0 16px;padding: 12px 16px;}
33 33
.invitebody .btn[disabled]{ background: rgba(256,256,256,.6);color:#AAAAAA;}
34 34
.invitebody .btn.input-group-addon{width:auto;border:none;position: absolute;right:-1px;top:50%;margin-top:-22px;cursor: pointer;padding: 14px 24px 14px;border-radius:6px;}
35 35
.invitebody .input-group-addon:not(:first-child):not(:last-child), .input-group-btn:not(:first-child):not(:last-child), .input-group .form-control:not(:first-child):not(:last-child){border-radius:5px;}
@ -215,11 +215,11 @@ ul.tagList>li .h2Font{color: #666;}
215 215
216 216
/*专利论文邀请作者*/
217 217
.invitebody2{background:#ffbd51;padding-bottom:30px;}
218
.topSTit{position:relative;max-width:640px;padding:20px 0;text-align: center;}
218
.topSTit{position:relative;max-width:640px;padding:20px 0 0;text-align: center;}
219 219
.topSTit img{width: 100%;}
220
.topSTit .titSort{position:relative;padding: 0 50px 20px;top:-16px;}
220
.topSTit .titSort{position:relative;padding: 0 50px;top:-60px;}
221 221
.topSTit .titSort .biaoti{margin-bottom: 30px;}
222
.invitebody2 .formblock{width: 90%;margin:0 auto;padding:30px 30px 20px;background:url(../images/share_bg_zhuce_nor@3x.png) right 0 no-repeat #ffe38d;background-size:100%;border-radius:6px;}
222
.invitebody2 .formblock{width: 90%;margin:-10px auto 0;padding:30px 30px 20px;background:url(../images/share_bg_zhuce_nor@3x.png) right 0 no-repeat #ffe38d;background-size:100%;border-radius:6px;}
223 223
.invitebody2 .form-control{background: #fff;border-radius: 6px;color:#666;font-size:16px;padding-left: 12px;}
224 224
.invitebody2 .form-control:-moz-placeholder {color:#bbb;}
225 225
.invitebody2 .form-control::-moz-placeholder {color:#bbb;}
@ -230,7 +230,7 @@ ul.tagList>li .h2Font{color: #666;}
230 230
.invitebody2 .inforbox2{width: 80%;margin: auto;text-align: center;font-size:16px;color: #d79222;}
231 231
.invitebody2 .inforbox2 .btn{margin: 20px 0 6px;}
232 232
.invitebody2 .inforbox2 h4{color:#781F1D;font-size:17px;}
233
.invitebody2 .inforbox2 .topIn{color:#781F1D;font-size:17px;font-weight: bold;margin-bottom: 40px;margin-top:-20px}
233
.invitebody2 .inforbox2 .topIn{color:#781F1D;font-size:17px;font-weight: bold;margin-bottom: 60px;margin-top:-20px}
234 234
.invitebody2 .inforbox2 .topIn em{display:inline-block;width:32px;height:32px;background-size: cover;position: relative;top: 10px;left: -6px;}
235 235
.invitebody2 .inforbox2 .topIn .shibai{background-image:url(../images/share_icon_shibai_nor@3x.png);}
236 236
.invitebody2 .inforbox2 .topIn .chenggong{background-image:url(../images/share_icon_chenggong_nor@3x.png);}

+ 8 - 8
js/common.js

@ -583,16 +583,16 @@ function ifcollectionAbout(watchObject, num) {
583 583
		success: function(data) {
584 584
			if(data.success && data.data != null) {
585 585
				if(num == "1" || num == "6") { //已关注专家
586
					$("#attentBtn").addClass("attenedSpan");
587
					$("#attentBtn").text("已关注");
586
					$(".attenSpan").addClass("attenedSpan");
587
					$(".attenSpan").text("已关注");
588 588
				} else { //已收藏资源或文章
589 589
					$("#collectBtn").removeClass("icon-collect");
590 590
					$("#collectBtn").addClass("icon-collected");
591 591
				}
592 592
			} else {
593 593
				if(num == "1" || num == "6") { //关注专家
594
					$("#attentBtn").removeClass("attenedSpan");
595
					$("#attentBtn").text("关注");
594
					$(".attenSpan").removeClass("attenedSpan");
595
					$(".attenSpan").text("关注");
596 596
				} else { //收藏资源或文章
597 597
					$("#collectBtn").addClass("icon-collect");
598 598
					$("#collectBtn").removeClass("icon-collected");
@ -619,8 +619,8 @@ function collectionAbout(watchObject, num) {
619 619
		success: function(data) {
620 620
			if(data.success) {
621 621
				if(num == "1" || num == "6") { //关注专家
622
					$("#attentBtn").addClass("attenedSpan");
623
					$("#attentBtn").text("已关注");
622
					$(".attenSpan").addClass("attenedSpan");
623
					$(".attenSpan").text("已关注");
624 624
				} else { //收藏资源或文章
625 625
					$("#collectBtn").removeClass("icon-collect");
626 626
					$("#collectBtn").addClass("icon-collected");
@ -648,8 +648,8 @@ function cancelCollectionAbout(watchObject, num) {
648 648
			console.log(data.success)
649 649
			if(data.success) {
650 650
				if(num == "1" || num == "6") { //关注专家
651
					$("#attentBtn").removeClass("attenedSpan");
652
					$("#attentBtn").text("关注");
651
					$(".attenSpan").removeClass("attenedSpan");
652
					$(".attenSpan").text("关注");
653 653
				} else { //收藏资源或文章
654 654
					$("#collectBtn").addClass("icon-collect");
655 655
					$("#collectBtn").removeClass("icon-collected");

+ 1 - 1
js/paperModify.js

@ -101,7 +101,7 @@ $(document).ready(function() {
101 101
											var str="";
102 102
											str +='<li class="flexCenter" data-id="'+ showPro.id +'">'
103 103
											str +='<div class="madiaHead useHead" style="background-image:url('+ imgbg +')"></div>'
104
											str +='<div class="madiaInfo">'
104
											str +='<div class="madiaInfo" style="margin-top:-8px">'
105 105
											str +='<p class="ellipsisSty"><span class="h1Font">'+ showPro.name +'</span><em class="authiconNew '+ authTy +'" title="'+ authTit +'"></em></p>'
106 106
											str +='<p class="h2Font ellipsisSty">'+ baseInfo +'</p>'
107 107
											str +='</div></li>';

+ 120 - 13
js/paperShow.js

@ -1,6 +1,7 @@
1 1
$(document).ready(function() {
2 2
	loginStatus(); //判断个人是否登录
3 3
	var userid = $.cookie("userid");
4
	var userName = $.cookie("userName");
4 5
	var paperId = GetQueryString("paperId");
5 6

6 7
	ifcollectionAbout(paperId, 5)
@ -40,20 +41,44 @@ $(document).ready(function() {
40 41
	})
41 42
	
42 43
	//点击进入个人详情页面
43
	$("#aboutAuthors").on("click","li:not('.lastBtn')",function(){
44
	$("#aboutAuthors").on("click","li>a",function(){
44 45
		var oDataId = $(this).attr("data-id");
45 46
		if(oDataId.substring(0,1)!="#"){
46
			location.href="userInforShow.html?professorId="+oDataId;
47
			$(this).attr("href","userInforShow.html?professorId="+oDataId);
47 48
		}else{
48
			location.href="javascrip:;";
49
			$(this).attr("href","javascrip:;");
49 50
		}
50 51
	})
51 52
	$("#aboutAuthors").on("click","li.lastBtn",function(){
52
		$("#aboutAuthors").addClass('removeHe');
53
		$("#aboutAuthors li").css("display","block");
53 54
		$(this).hide();
54 55
	})
55
	
56
	
56
	//点击关注按钮
57
	$("#aboutAuthors").on('click',"span.attenSpan", function() {
58
		var pId=$(this).parent().siblings("a").attr("data-id");
59
		if(userid && userid != null && userid != "null") {
60
			if($(this).is('.attenedSpan')){
61
				cancelCollectionAbout(pId, 1)
62
			} else {
63
				collectionAbout(pId, 1);
64
			}
65
		}else{
66
			$.MsgBox.Alert("提示", "请先登录再进行关注");
67
			$("#mb_btn_ok").val("去登录");
68
			var aele = document.createElement('a');
69
			$("#mb_btnbox").append(aele);
70
			$("#mb_btnbox a").css({
71
				'display': "block",
72
				'width': '100%',
73
				'height': '40px',
74
				'position': 'absolute',
75
				'bottom': '-6px',
76
				'left': '0'
77
			});
78
			aele.setAttribute('href', '../login.html');
79
		}
80
	});
81

57 82
	
58 83
	/*获取论文信息*/
59 84
	function getPaperMe() {
@ -94,7 +119,7 @@ $(document).ready(function() {
94 119
								$.ajax({
95 120
									type:"get",
96 121
									url:"/ajax/professor/editBaseInfo/" + data.data[i].professorId,
97
									async:true,
122
									async:false,
98 123
									success:function($proData){
99 124
										console.log($proData)
100 125
										if($proData.success){
@ -135,33 +160,92 @@ $(document).ready(function() {
135 160
												}
136 161
											}
137 162
											var str="";
138
											str +='<li class="flexCenter '+ ifPoint +'" data-id="'+ showPro.id +'">'
163
											str +='<li class="flexCenter"><a href="" class="'+ ifPoint +'" data-id="'+ showPro.id +'">'
139 164
											str +='<div class="madiaHead useHead" style="background-image:url('+ imgbg +')"></div>'
140
											str +='<div class="madiaInfo">'
165
											str +='<div class="madiaInfo" style="margin-top:-8px" >'
141 166
											str +='<p class="ellipsisSty"><span class="h1Font">'+ showPro.name +'</span><em class="authiconNew '+ authTy +'" title="'+ authTit +'"></em></p>'
142 167
											str +='<p class="h2Font ellipsisSty">'+ baseInfo +'</p>'
143
											str +='</div></li>';
168
											str +='</div></a>';
169
											if(showPro.id==userid){
170
												str +=''
171
											}else{
172
												str +='<div class="goSpan"><span class="attenSpan">关注</span></div>';
173
											}
174
											str +='</li>';
144 175
											var $str=$(str);
145 176
											$("#aboutAuthors .lastBtn").before($str);
177
											if(showPro.id!=userid){
178
												ifcollectionAbout(showPro.id, 1)
179
											}
146 180
										}
147 181
									}
148 182
								})
149 183
							}else{
150 184
								var str="";
151
								str +='<li class="flexCenter" data-id="'+ data.data[i].professorId +'">'
185
								str +='<li class="flexCenter"><a data-id="'+ data.data[i].professorId +'">'
152 186
								str +='<div class="madiaHead useHead" style="background-image:url('+ imgbg +')"></div>'
153 187
								str +='<div class="madiaInfo">'
154 188
								str +='<p class="ellipsisSty"><span class="h1Font">'+ data.data[i].name +'</span></p>'
155
								str +='</div></li>';
189
								str +='</div></a>';
190
								if(data.data[i].name==userName){
191
									str +='<div class="goSpan"><span class="ifMe" flag="1">是我本人</span></div>'
192
								}else{
193
									str +='<div class="goSpan"><span class="yaoqing">邀请Ta加入'
194
									str +='<div class="shareCode clearfix"><div class="floatL qrcodeUser"></div>'
195
									str +='<div class="shareWord floatR"><p>打开微信“扫一扫”,<br/>打开网页后点击屏幕右上角“分享”按钮</p></div>'
196
									str +='</div></span></div>';
197
								}
198
								
199
								str +='</li>';
156 200
								var $str=$(str);
157 201
								$("#aboutAuthors .lastBtn").before($str);
158 202
							}
159 203
							
160 204
							if(data.data.length<5){
161
								$("#aboutAuthors").addClass('removeHe');
205
								$("#aboutAuthors li").css("display","block");
162 206
								$(".lastBtn").hide();
207
							}else{
208
								$("#aboutAuthors li:lt(3)").css("display","block");
209
							}
210
						}
211
						
212
						//邀请
213
						$('.goSpan').on("mouseenter",".yaoqing",function(){
214
							$(this).find('.shareCode').stop(true,false).fadeIn();
215
						}).on("mouseleave",".yaoqing",function(){
216
							$(this).find('.shareCode').stop(true,false).fadeOut();
217
						});
218
						//邀请作者
219
						var Qcu=document.getElementsByClassName("qrcodeUser");
220
						for(var i=0;i<Qcu.length;i++){
221
							var qrcode= new QRCode(Qcu[i], {
222
								width : 100,
223
								height : 100
224
							});
225
							makeCode();
226
						}
227
						function makeCode(){
228
							var hurl = window.location.host;
229
							if(userid) {
230
								var elurl = "http://" + hurl + "/e/I.html?i=" + s16to64(paperId)+"&d="+s16to64(userid)+"&f=1";
231
							} else{
232
								var elurl = "http://" + hurl + "/e/I.html?i=" + s16to64(paperId)+"&f=1";
163 233
							}
234
							qrcode.makeCode(elurl);
164 235
						}
236
						
237
						//是我本人
238
						$('.goSpan').on("click",".ifMe",function(){
239
							var oF=$(this).attr("flag");
240
							if(oF==1){
241
								$.MsgBox.Confirm("提示", "确认这是您发表的论文?", daoRuPaper);
242
								$(this).attr("flag","0");
243
							}else{
244
								return;
245
							} 
246
						});
247
						
248

165 249
					}
166 250
				}
167 251
			},
@ -174,6 +258,29 @@ $(document).ready(function() {
174 258
			}
175 259
		});
176 260
	}
261
	function daoRuPaper(){
262
		$.ajax({
263
			"url": "/ajax/ppaper/ass",
264
			"type": "POST",
265
			"data": {
266
				id:paperId,
267
				uid:userid,
268
				author: userName
269
			},
270
			dataType: "json",
271
			"success": function(data) {
272
				if(data.success) {
273
					if(data.data){
274
						$(".ifMe").text("导入成功").css("background","#ccc");
275
					}
276
				}
277
			},
278
			'error': function() {
279
				$.MsgBox.Alert('提示', '服务器连接超时!');
280
			}
281
		});
282
	}
283
	
177 284
	/*处理论文html代码*/
178 285
	function paperHtml($da) {
179 286
		$("#paperName").text($da.name); //名字

+ 135 - 29
js/patentShow.js

@ -40,6 +40,7 @@ $(document).ready(function() {
40 40
			type: obj.type, //HTTP请求类型
41 41
			timeout: 10000, //超时时间设置为10秒;
42 42
			traditional: true,
43
			async:false,
43 44
			success: function(data) {
44 45
				if(data.success) {
45 46
					obj.Fun(data.data, $this);
@ -55,7 +56,7 @@ $(document).ready(function() {
55 56
	}
56 57
	Patent.prototype.keyword = function($key) {
57 58
		for(var i in $key.split(",")) {
58
			if(this.flag == 1) {
59
			if(GetQueryString("flag")== 1) {
59 60
				if($key.split(",").length>=5) {
60 61
					$(".oinput").parents(".col-w-12").hide();
61 62
				}
@ -67,7 +68,7 @@ $(document).ready(function() {
67 68
		}
68 69
	}
69 70
	Patent.prototype.patentMess = function($data, $obj) {
70
		if($obj.flag == 1) {
71
		if(GetQueryString("flag") == 1) {
71 72
			$(".advertItem,.tagList").hide();
72 73
			hotKey(".oinput", 10);
73 74
			if($data.keywords) {
@ -110,23 +111,25 @@ $(document).ready(function() {
110 111
		$obj.bindEvent($obj);
111 112
	}
112 113
	Patent.prototype.patentAuth = function($data, $obj) {
113
		if($data.length < 5) {
114
			$(".lastBtn").hide();
115
			$("#faM").addClass('removeHe');
116
		} else {
117
			$(".lastBtn").find("span").text($data.length);
118
		}
119 114
		for(var i in $data) {
120 115
			if($data[i].professorId.substring(0, 1) == "#") {
121
				var otr = '<li class="flexCenter">' +
116
				var otr = '<li class="flexCenter"><a data-id="'+ $data[i].professorId +'">' +
122 117
					'<div class="madiaHead useHead" id="userimg"></div>' +
123 118
					'<div class="madiaInfo">' +
124 119
					'<p class="ellipsisSty">' +
125 120
					'<span class="h1Font" id="name">' + $data[i].name + '</span>' +
126 121
					'</p>' +
127
					'</div>' +
128
					'</li>'
129
				$("#faM").prepend(otr);
122
					'</div></a>'
123
					if($data[i].name==$.cookie("userName")){
124
						otr += '<div class="goSpan"><span class="ifMe" nflag="1">是我本人</span></div>'
125
					}else{
126
						otr += '<div class="goSpan"><span class="yaoqing">邀请Ta加入'+
127
						'<div class="shareCode clearfix"><div class="floatL qrcodeUser"></div>'+
128
						'<div class="shareWord floatR"><p>打开微信“扫一扫”,<br/>打开网页后点击屏幕右上角“分享”按钮</p></div>'+
129
						'</div></span></div>'
130
					}
131
					otr += '</li>'
132
				$("#faM .lastBtn").before(otr);
130 133
			} else {
131 134
				$obj.ajax({
132 135
					url: "/ajax/professor/editBaseInfo/" + $data[i].professorId,
@ -135,7 +138,76 @@ $(document).ready(function() {
135 138
					Fun: $obj.profess
136 139
				});
137 140
			}
141
			if($data.length<5){
142
				$("#faM li").css("display","block");
143
				$(".lastBtn").hide();
144
			}else{
145
				$(".lastBtn").find("span").text($data.length);
146
				$("#faM li:lt(3)").css("display","block");
147
			}
148
			if(GetQueryString("flag") == 1){
149
				$("#faM li").css("display","block");
150
				$("#faM li .goSpan").hide();
151
				$(".lastBtn").hide();
152
			}
153

154
		}
155
		//邀请
156
		$(".goSpan").on("mouseenter",".yaoqing",function(){
157
			$(this).find('.shareCode').stop(true,false).fadeIn();
158
		}).on("mouseleave",".yaoqing",function(){
159
			$(this).find('.shareCode').stop(true,false).fadeOut();
160
		});
161
		//邀请作者
162
		var Qcu=document.getElementsByClassName("qrcodeUser");
163
		for(var i=0;i<Qcu.length;i++){
164
			var qrcode= new QRCode(Qcu[i], {
165
				width : 100,
166
				height : 100
167
			});
168
			makeCode();
169
		}
170
		function makeCode(){
171
			var hurl = window.location.host;
172
			if(userid) {
173
				var elurl = "http://" + hurl + "/e/I.html?i=" + s16to64(patentId)+"&d="+s16to64(userid)+"&f=1";
174
			} else{
175
				var elurl = "http://" + hurl + "/e/I.html?i=" + s16to64(patentId)+"&f=1";
176
			} 
177
			qrcode.makeCode(elurl);
178
		}
179
		//是我本人
180
		$(".goSpan").on("click",".ifMe",function(){
181
			var oF=$(this).attr("nflag");
182
			if(oF==1){
183
				$.MsgBox.Confirm("提示", "确认这是您发表的专利?", daoRuPatent);
184
				$(this).attr("nflag","0");
185
			}else{
186
				return;
187
			} 
138 188
			
189
		});
190
		function daoRuPatent(){
191
			$.ajax({
192
				"url": "/ajax/ppatent/ass",
193
				"type": "POST",
194
				"data": {
195
					id:GetQueryString("patentId"),
196
					uid:$.cookie("userid"),
197
					author:$.cookie("userName")
198
				},
199
				dataType: "json",
200
				"success": function(data) {
201
					if(data.success) {
202
						if(data.data){
203
							$(".ifMe").text("导入成功").css("background","#ccc");
204
						}
205
					}
206
				},
207
				'error': function() {
208
					$.MsgBox.Alert('提示', '服务器连接超时!');
209
				}
210
			});
139 211
		}
140 212
	}
141 213
	Patent.prototype.profess = function($data, $obj) {
@ -159,29 +231,35 @@ $(document).ready(function() {
159 231
		} else {
160 232
			img = "../images/default-photo.jpg"
161 233
		}
162
		if($obj.flag == 1) {
163
			csAuto = "auto";
164
			oId = "#"
165
		} else {
166
			csAuto = "pointer";
167
			oId = $data.id;
168
		}
169
		var otr = '<li class="flexCenter" style="cursor:' + csAuto + ';" data-id="' + oId + '">' +
234
		oId = $data.id;
235
		var otr = '<li class="flexCenter"><a href="" data-id="' + oId + '">' +
170 236
			'<div class="madiaHead useHead" id="userimg" style="background-image:url(' + img + ')"></div>' +
171
			'<div class="madiaInfo">' +
237
			'<div class="madiaInfo" style="margin-top:-8px">' +
172 238
			'<p class="ellipsisSty">' +
173 239
			'<span class="h1Font" id="name">' + $data.name + '</span><em class="authiconNew ' + oClass.sty + '" title="' + oClass.title + '"></em>' +
174 240
			'</p>' +
175 241
			'<p class="h2Font ellipsisSty">' + arr[2] + '<p>' +
176
			'</div>' +
177
			'</li>'
178
		$("#faM").prepend(otr);
242
			'</div></a>'
243
			if(oId==userid){
244
				 otr += ''
245
			}else{
246
				 otr += '<div class="goSpan"><span class="attenSpan">关注</span></div>'
247
			}
248
			otr += '</li>'
249
		$("#faM .lastBtn").before(otr);
179 250
	}
180 251
	Patent.prototype.bindEvent = function($obj) {
181
		$("#faM").on("click", ".flexCenter", function() {
182
			var oDataId = $(this).attr("data-id");
183
			if(oDataId.substring(0, 1) != "#")
184
				location.href = "userInforShow.html?professorId=" + oDataId
252
		$("#faM").on("click", "li>a", function() {
253
			if(GetQueryString("flag") !=1){
254
				var oDataId = $(this).attr("data-id");
255
				if(oDataId.substring(0,1)!="#"){
256
					$(this).attr("href","userInforShow.html?professorId="+oDataId);
257
				}else{
258
					$(this).attr("href","javascrip:;");
259
				}
260
			}else{
261
				$(this).attr("href","javascrip:;");
262
			}
185 263
		})
186 264
		$('#attention em').click(function() {
187 265
			if(userid && userid != "null" && userid != null) {
@ -220,11 +298,39 @@ $(document).ready(function() {
220 298
			$.MsgBox.Confirm("提示", "确认删除该专利?", $obj.delePatent);
221 299
		});
222 300
		$(".lastBtn").on("click", function() {
223
			$(this).hide().parent().addClass('removeHe');
301
			$("#faM li").css("display","block");
302
			$(this).hide();
224 303
		});
225 304
		$(".tagList").on("click","li",function() {
226 305
			location.href = "searchNew.html?searchContent=" + $(this).text() + "&tagflag=5";
227 306
		});
307
		//点击关注按钮
308
		$("#faM").on('click',"span.attenSpan", function() {
309
			var pId=$(this).parent().siblings("a").attr("data-id");
310
			if(userid && userid != null && userid != "null") {
311
				if($(this).is('.attenedSpan')){
312
					cancelCollectionAbout(pId, 1)
313
				} else {
314
					collectionAbout(pId, 1);
315
				}
316
			}else{
317
				$.MsgBox.Alert("提示", "请先登录再进行关注");
318
				$("#mb_btn_ok").val("去登录");
319
				var aele = document.createElement('a');
320
				$("#mb_btnbox").append(aele);
321
				$("#mb_btnbox a").css({
322
					'display': "block",
323
					'width': '100%',
324
					'height': '40px',
325
					'position': 'absolute',
326
					'bottom': '-6px',
327
					'left': '0'
328
				});
329
				aele.setAttribute('href', '../login.html');
330
			}
331
		});
332
						
333

228 334
	}
229 335
	Patent.prototype.pageview = function() {};
230 336
	Patent.prototype.captiureSubInd = function(subIndu) {

+ 3 - 1
paperModify.html

@ -10,7 +10,9 @@
10 10
<link type="text/css" href="css/common.css" rel="stylesheet">
11 11
<link type="text/css" href="css/genindex.css" rel="stylesheet">
12 12
<script type="text/javascript" src="js/jquery-1.11.1.js"></script>
13

13
<style type="text/css">
14
	.aboutPa .form-result>ul>li{display:block;}
15
</style>
14 16
</head>
15 17

16 18
<body>

+ 1 - 2
paperShow.html

@ -75,7 +75,7 @@
75 75
										<p class="h2Font ellipsisSty">vzds</p>
76 76
									</div>
77 77
									<div class="goSpan">
78
										<span>邀请
78
										<span class="yaoqing">邀请Ta加入
79 79
											<div class="shareCode clearfix">
80 80
												<div class="floatL" id="qrcodeUser"></div>
81 81
												<div class="shareWord floatR">
@ -117,7 +117,6 @@
117 117

118 118
	//分享关注按钮
119 119
	$('.shareWeixin').hover(function(){$(this).find('.shareCode').stop(true,false).fadeToggle();});
120
//	$('.goSpan').hover(function(){$(this).find('.shareCode').stop(true,false).fadeToggle();});
121 120

122 121
	//微信分享
123 122
	var qrcode = new QRCode(document.getElementById("qrcode"), {