ソースを参照

点赞列表加上链接

jack 8 年 前
コミット
be0a722cd3
共有8 個のファイルを変更した72 個の追加33 個の削除を含む
  1. 4 4
      app/html/researcherProw.html
  2. 1 1
      app/js/companyUpdata.js
  3. 8 6
      app/js/companybrowse.js
  4. 43 7
      app/js/researchArea.js
  5. 1 1
      app/js/researcher.js
  6. 7 7
      app/js/researcherProw.js
  7. 1 1
      app/js/studentUpdata.js
  8. 7 6
      app/js/studentbrowse.js

+ 4 - 4
app/html/researcherProw.html

45
			<div class="attentbtn mui-pull-left">
45
			<div class="attentbtn mui-pull-left">
46
				<em class="mui-iocn iconfont icon-favor" id="yesExpert"></em>
46
				<em class="mui-iocn iconfont icon-favor" id="yesExpert"></em>
47
				<em class="mui-iocn iconfont icon-favorfill" style="display:none;" id="noExpert"></em>
47
				<em class="mui-iocn iconfont icon-favorfill" style="display:none;" id="noExpert"></em>
48
				<!--已经关注icon-favorfill-->
48
			
49
			</div>
49
			</div>
50
		</nav>
50
		</nav>
51
		<!-- 主页面内容容器 -->
51
		<!-- 主页面内容容器 -->
66
						</a>
66
						</a>
67
					</div>
67
					</div>
68
				</div>
68
				</div>
69
				<ul class="mui-table-view">
69
				<!--<ul class="mui-table-view">
70
					<li class="mui-table-view-cell"id="NoActive"> 
70
					<li class="mui-table-view-cell"id="NoActive"> 
71
						<a class="mui-navigate-right mui-clearfix peolevelbox " id="accessHistory">
71
						<a class="mui-navigate-right mui-clearfix peolevelbox " id="accessHistory">
72
							<div class="mui-pull-left peocountbox">
72
							<div class="mui-pull-left peocountbox">
77
							</div>
77
							</div>
78
							<div class="rightword levelbox ">
78
							<div class="rightword levelbox ">
79
								<span class="mui-icon iconfont icon-favor start"></span>
79
								<span class="mui-icon iconfont icon-favor start"></span>
80
								<!--无色星星icon-favor  黄色星icon-favorfill-->
80
								
81
								<span class="mui-icon iconfont icon-favor start"></span>
81
								<span class="mui-icon iconfont icon-favor start"></span>
82
								<span class="mui-icon iconfont icon-favor start"></span>
82
								<span class="mui-icon iconfont icon-favor start"></span>
83
								<span class="mui-icon iconfont icon-favor start"></span>
83
								<span class="mui-icon iconfont icon-favor start"></span>
86

86

87
						</a>
87
						</a>
88
					</li>
88
					</li>
89
				</ul>
89
				</ul>-->
90

90

91
			</div>
91
			</div>
92
			<div class="mui-input-group mainbox" id="professorBreifinfo">
92
			<div class="mui-input-group mainbox" id="professorBreifinfo">

+ 1 - 1
app/js/companyUpdata.js

92
							personalMaterial[7].parentNode.style.display = "none";
92
							personalMaterial[7].parentNode.style.display = "none";
93
						}
93
						}
94
						//个人简介
94
						//个人简介
95

95
						personSummary.innerHTML="";
96
						if($data.descp) {
96
						if($data.descp) {
97
							personSummary.innerHTML = $data.descp;
97
							personSummary.innerHTML = $data.descp;
98
						}
98
						}

+ 8 - 6
app/js/companybrowse.js

8
	var userid = plus.storage.getItem('userid');
8
	var userid = plus.storage.getItem('userid');
9
	var self = plus.webview.currentWebview();
9
	var self = plus.webview.currentWebview();
10
	var proId = self.proid;
10
	var proId = self.proid;
11
	document.getElementsByClassName("footbox")[0].style.display="none";
11
	if(userid == proId) {
12
	if(userid == proId) {
12
		document.getElementsByClassName('footbox')[0].style.display = "none";
13
		document.getElementsByClassName('footbox')[0].style.display = "none";
13
	}
14
	}
66
			type: 'GET', //http请求类型
67
			type: 'GET', //http请求类型
67
			timeout: 10000, //超时设置
68
			timeout: 10000, //超时设置
68
			success: function(data) {
69
			success: function(data) {
70
				console.log(JSON.stringify(data))
69
				plus.nativeUI.closeWaiting();
71
				plus.nativeUI.closeWaiting();
70
				plus.webview.currentWebview().show("slide-in-right", 150);
72
				plus.webview.currentWebview().show("slide-in-right", 150);
71
				var $data = data.data;
73
				var $data = data.data;
77
				//				} else {
79
				//				} else {
78
				//					document.getElementById("accessHistory").style.display = "none";
80
				//					document.getElementById("accessHistory").style.display = "none";
79
				//				}
81
				//				}
80
				var startLeval = parseInt($data.starLevel);
81
				var start = document.getElementsByClassName("start");
82
				for(var i = 0; i < startLeval; i++) {
83
					start[i].classList.add("icon-favorfill");
84
					start[i].classList.remove("icon-favor");
85
				}
82
//				var startLeval = parseInt($data.starLevel);
83
//				var start = document.getElementsByClassName("start");
84
//				for(var i = 0; i < startLeval; i++) {
85
//					start[i].classList.add("icon-favorfill");
86
//					start[i].classList.remove("icon-favor");
87
//				}
86
				if($data.hasHeadImage) {
88
				if($data.hasHeadImage) {
87
					document.getElementsByClassName("headimg")[0].src = baseUrl + "/images/head/" + $data.id + "_l.jpg";
89
					document.getElementsByClassName("headimg")[0].src = baseUrl + "/images/head/" + $data.id + "_l.jpg";
88
				} else {
90
				} else {

+ 43 - 7
app/js/researchArea.js

19
	var wd = plus.webview.getWebviewById("researchAreaHead.html");
19
	var wd = plus.webview.getWebviewById("researchAreaHead.html");
20
	document.getElementById("researchArea").innerText = wd.dataCaption;
20
	document.getElementById("researchArea").innerText = wd.dataCaption;
21
	personalMessage();
21
	personalMessage();
22
	/*进入为学术领域点赞人的浏览页面*/
23
	mui("#table").on('tap', 'li', function() {
24
		var professId = this.getAttribute("professorId");
25
		var authentication = this.getAttribute("authentication");
26
		var authType = this.getAttribute("authType");
27
		console.log(authentication)
28
		plus.nativeUI.showWaiting();
29
		if(authType == 1) {
30
			plus.webview.create("../html/proinforbrow.html", 'proinforbrow.html', {}, {
31
				proid: professId
32
			});
33
		} else {
34
			if(authentication == 1) {
35
				plus.webview.create("../html/researcherProw.html", 'researcherProw.html', {}, {
36
					proid: professId
37
				});
38
			} else if(authentication == 2) {
39
				plus.webview.create("../html/companybrowse.html", 'companybrowse.html', {}, {
40
					proid: professId
41
				});
42
			} else if(authentication == 3) {
43
				plus.webview.create("../html/studentbrowse.html", 'studentbrowse.html', {}, {
44
					proid: professId
45
				});
46
			}
47
		}
48

49
	});
22
});
50
});
23

51

24
function personalMessage(a) {
52
function personalMessage(a) {
38
			timeout: 10000, //超时设置
66
			timeout: 10000, //超时设置
39
			data: c,
67
			data: c,
40
			success: function(data) {
68
			success: function(data) {
41
				if(data.success) {
69
				if(data.success) {					
42
					plus.nativeUI.closeWaiting();
70
					plus.nativeUI.closeWaiting();
43
					ws.show("slide-in-right", 150);
71
					ws.show("slide-in-right", 150);
44
					if(data.data.length == 0) {
45
						document.getElementsByClassName("littip")[0].style.display = "none";
46
						mui('#pullrefresh').pullRefresh().endPullupToRefresh(true);
47
						return;
72
					if(!a) {
73
						if(data.data.length == 0) {
74
							document.getElementsByClassName("littip")[0].style.display = "none";
75
							mui('#pullrefresh').pullRefresh().endPullupToRefresh(true);
76
							return;
77
						}
78
					} else {
79
						if(data.data.length == 0) {
80
							mui('#pullrefresh').pullRefresh().endPullupToRefresh(true);
81
							return;
82
						}
48
					}
83
					}
49
					var table = document.getElementById("table");
84
					var table = document.getElementById("table");
50
					var datalist = data.data;
85
					var datalist = data.data;
80
		var office = "";
115
		var office = "";
81
		var orgName = "";
116
		var orgName = "";
82
		var address = "";
117
		var address = "";
83
		console.log(JSON.stringify(item))
84
		if(item.title && item.office && item.orgName && item.address) {
118
		if(item.title && item.office && item.orgName && item.address) {
85
			title = item.title + ",";
119
			title = item.title + ",";
86
			office = item.office + ",";
120
			office = item.office + ",";
145
		}
179
		}
146

180

147
		var li = document.createElement('li');
181
		var li = document.createElement('li');
148
		li.className = 'mui-table-view-cell mui-media NoActive mui-active';
182
		li.className = 'mui-table-view-cell mui-media';
149
		li.setAttribute("professorId", item.id);
183
		li.setAttribute("professorId", item.id);
184
		li.setAttribute("authentication", item.authentication);
185
		li.setAttribute("authType", item.authType);
150
		li.innerHTML = '<a class="proinfor" data-id="' + item.id + '"' +
186
		li.innerHTML = '<a class="proinfor" data-id="' + item.id + '"' +
151
			'<p><img class="mui-media-object mui-pull-left headimg headRadius" src="' + img + '"></p>' +
187
			'<p><img class="mui-media-object mui-pull-left headimg headRadius" src="' + img + '"></p>' +
152
			'<div class="mui-media-body">' +
188
			'<div class="mui-media-body">' +

+ 1 - 1
app/js/researcher.js

94
							personalMaterial[7].parentNode.style.display = "none";
94
							personalMaterial[7].parentNode.style.display = "none";
95
						}
95
						}
96
						//个人简介
96
						//个人简介
97

97
						personSummary.innerHTML=""
98
						if($data.descp) {
98
						if($data.descp) {
99
							personSummary.innerHTML = $data.descp;
99
							personSummary.innerHTML = $data.descp;
100
						}
100
						}

+ 7 - 7
app/js/researcherProw.js

8
	var userid = plus.storage.getItem('userid');
8
	var userid = plus.storage.getItem('userid');
9
	var self = plus.webview.currentWebview();
9
	var self = plus.webview.currentWebview();
10
	var proId = self.proid;
10
	var proId = self.proid;
11
	document.getElementsByClassName("footbox")[0].style.display="none";
11
	if(userid == proId) {
12
	if(userid == proId) {
12
		document.getElementsByClassName('footbox')[0].style.display = "none";
13
		document.getElementsByClassName('footbox')[0].style.display = "none";
13
	}
14
	}
77
				//				} else {
78
				//				} else {
78
				//					document.getElementById("accessHistory").style.display = "none";
79
				//					document.getElementById("accessHistory").style.display = "none";
79
				//				}
80
				//				}
80
				var startLeval = parseInt($data.starLevel);
81
				var start = document.getElementsByClassName("start");
82
				for(var i = 0; i < startLeval; i++) {
83
					start[i].classList.add("icon-favorfill");
84
					start[i].classList.remove("icon-favor");
85
				}
81
//				var startLeval = parseInt($data.starLevel);
82
//				var start = document.getElementsByClassName("start");
83
//				for(var i = 0; i < startLeval; i++) {
84
//					start[i].classList.add("icon-favorfill");
85
//					start[i].classList.remove("icon-favor");
86
//				}
86
				if($data.hasHeadImage) {
87
				if($data.hasHeadImage) {
87
					document.getElementsByClassName("headimg")[0].src = baseUrl + "/images/head/" + $data.id + "_l.jpg";
88
					document.getElementsByClassName("headimg")[0].src = baseUrl + "/images/head/" + $data.id + "_l.jpg";
88
				} else {
89
				} else {
144
					personalMaterial[5].innerText = $data.address;
145
					personalMaterial[5].innerText = $data.address;
145
				}
146
				}
146
				//个人简介
147
				//个人简介
147

148
				if($data.descp) {
148
				if($data.descp) {
149
					personSummary.innerHTML = $data.descp;
149
					personSummary.innerHTML = $data.descp;
150
				} else {
150
				} else {

+ 1 - 1
app/js/studentUpdata.js

65
							personalMaterial[5].parentNode.style.display = "none";
65
							personalMaterial[5].parentNode.style.display = "none";
66
						}
66
						}
67
						//个人简介
67
						//个人简介
68

68
						personSummary.innerHTML=""
69
						if($data.descp) {
69
						if($data.descp) {
70
							personSummary.innerHTML = $data.descp;
70
							personSummary.innerHTML = $data.descp;
71
						}
71
						}

+ 7 - 6
app/js/studentbrowse.js

8
	var userid = plus.storage.getItem('userid');
8
	var userid = plus.storage.getItem('userid');
9
	var self = plus.webview.currentWebview();
9
	var self = plus.webview.currentWebview();
10
	var proId = self.proid;
10
	var proId = self.proid;
11
	document.getElementsByClassName('footbox')[0].style.display = "none";
11
	if(userid == proId) {
12
	if(userid == proId) {
12
		document.getElementsByClassName('footbox')[0].style.display = "none";
13
		document.getElementsByClassName('footbox')[0].style.display = "none";
13
	}
14
	}
59
				//				}else{
60
				//				}else{
60
				//					document.getElementById("accessHistory").style.display="none";
61
				//					document.getElementById("accessHistory").style.display="none";
61
				//				}
62
				//				}
62
				var startLeval = parseInt($data.starLevel);
63
				var start = document.getElementsByClassName("start");
64
				for(var i = 0; i < startLeval; i++) {
65
					start[i].classList.add("icon-favorfill");
66
					start[i].classList.remove("icon-favor");
67
				}
63
//				var startLeval = parseInt($data.starLevel);
64
//				var start = document.getElementsByClassName("start");
65
//				for(var i = 0; i < startLeval; i++) {
66
//					start[i].classList.add("icon-favorfill");
67
//					start[i].classList.remove("icon-favor");
68
//				}
68
				if($data.hasHeadImage) {
69
				if($data.hasHeadImage) {
69
					document.getElementsByClassName("headimg")[0].src = baseUrl + "/images/head/" + $data.id + "_l.jpg";
70
					document.getElementsByClassName("headimg")[0].src = baseUrl + "/images/head/" + $data.id + "_l.jpg";
70
				} else {
71
				} else {