jack лет назад: 8
Родитель
Сommit
be0a722cd3

+ 4 - 4
app/html/researcherProw.html

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

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

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

+ 1 - 1
app/js/companyUpdata.js

@ -92,7 +92,7 @@ mui.ready(function() {
92 92
							personalMaterial[7].parentNode.style.display = "none";
93 93
						}
94 94
						//个人简介
95

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

+ 8 - 6
app/js/companybrowse.js

@ -8,6 +8,7 @@ mui.plusReady(function() {
8 8
	var userid = plus.storage.getItem('userid');
9 9
	var self = plus.webview.currentWebview();
10 10
	var proId = self.proid;
11
	document.getElementsByClassName("footbox")[0].style.display="none";
11 12
	if(userid == proId) {
12 13
		document.getElementsByClassName('footbox')[0].style.display = "none";
13 14
	}
@ -66,6 +67,7 @@ mui.plusReady(function() {
66 67
			type: 'GET', //http请求类型
67 68
			timeout: 10000, //超时设置
68 69
			success: function(data) {
70
				console.log(JSON.stringify(data))
69 71
				plus.nativeUI.closeWaiting();
70 72
				plus.webview.currentWebview().show("slide-in-right", 150);
71 73
				var $data = data.data;
@ -77,12 +79,12 @@ mui.plusReady(function() {
77 79
				//				} else {
78 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 88
				if($data.hasHeadImage) {
87 89
					document.getElementsByClassName("headimg")[0].src = baseUrl + "/images/head/" + $data.id + "_l.jpg";
88 90
				} else {

+ 43 - 7
app/js/researchArea.js

@ -19,6 +19,34 @@ mui.plusReady(function() {
19 19
	var wd = plus.webview.getWebviewById("researchAreaHead.html");
20 20
	document.getElementById("researchArea").innerText = wd.dataCaption;
21 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 52
function personalMessage(a) {
@ -38,13 +66,20 @@ function personalMessage(a) {
38 66
			timeout: 10000, //超时设置
39 67
			data: c,
40 68
			success: function(data) {
41
				if(data.success) {
69
				if(data.success) {					
42 70
					plus.nativeUI.closeWaiting();
43 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 84
					var table = document.getElementById("table");
50 85
					var datalist = data.data;
@ -80,7 +115,6 @@ function datalistEach(datalist) {
80 115
		var office = "";
81 116
		var orgName = "";
82 117
		var address = "";
83
		console.log(JSON.stringify(item))
84 118
		if(item.title && item.office && item.orgName && item.address) {
85 119
			title = item.title + ",";
86 120
			office = item.office + ",";
@ -145,8 +179,10 @@ function datalistEach(datalist) {
145 179
		}
146 180

147 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 183
		li.setAttribute("professorId", item.id);
184
		li.setAttribute("authentication", item.authentication);
185
		li.setAttribute("authType", item.authType);
150 186
		li.innerHTML = '<a class="proinfor" data-id="' + item.id + '"' +
151 187
			'<p><img class="mui-media-object mui-pull-left headimg headRadius" src="' + img + '"></p>' +
152 188
			'<div class="mui-media-body">' +

+ 1 - 1
app/js/researcher.js

@ -94,7 +94,7 @@ mui.ready(function() {
94 94
							personalMaterial[7].parentNode.style.display = "none";
95 95
						}
96 96
						//个人简介
97

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

+ 7 - 7
app/js/researcherProw.js

@ -8,6 +8,7 @@ mui.plusReady(function() {
8 8
	var userid = plus.storage.getItem('userid');
9 9
	var self = plus.webview.currentWebview();
10 10
	var proId = self.proid;
11
	document.getElementsByClassName("footbox")[0].style.display="none";
11 12
	if(userid == proId) {
12 13
		document.getElementsByClassName('footbox')[0].style.display = "none";
13 14
	}
@ -77,12 +78,12 @@ mui.plusReady(function() {
77 78
				//				} else {
78 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 87
				if($data.hasHeadImage) {
87 88
					document.getElementsByClassName("headimg")[0].src = baseUrl + "/images/head/" + $data.id + "_l.jpg";
88 89
				} else {
@ -144,7 +145,6 @@ mui.plusReady(function() {
144 145
					personalMaterial[5].innerText = $data.address;
145 146
				}
146 147
				//个人简介
147

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

+ 1 - 1
app/js/studentUpdata.js

@ -65,7 +65,7 @@ mui.ready(function() {
65 65
							personalMaterial[5].parentNode.style.display = "none";
66 66
						}
67 67
						//个人简介
68

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

+ 7 - 6
app/js/studentbrowse.js

@ -8,6 +8,7 @@ mui.plusReady(function() {
8 8
	var userid = plus.storage.getItem('userid');
9 9
	var self = plus.webview.currentWebview();
10 10
	var proId = self.proid;
11
	document.getElementsByClassName('footbox')[0].style.display = "none";
11 12
	if(userid == proId) {
12 13
		document.getElementsByClassName('footbox')[0].style.display = "none";
13 14
	}
@ -59,12 +60,12 @@ mui.plusReady(function() {
59 60
				//				}else{
60 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 69
				if($data.hasHeadImage) {
69 70
					document.getElementsByClassName("headimg")[0].src = baseUrl + "/images/head/" + $data.id + "_l.jpg";
70 71
				} else {