Browse Source

我的关注修改

xuchunyang 8 years ago
parent
commit
6c664e4df3
1 changed files with 11 additions and 3 deletions
  1. 11 3
      app/js/attentions.js

+ 11 - 3
app/js/attentions.js

@ -149,7 +149,11 @@ function datalistEach(datalist) {
149 149
		var rlist = '';
150 150
		for(var n = 0; n < researchAreas.length; n++) {
151 151
			//console.log(researchAreas[n].caption);
152
			rlist = '<span>' + researchAreas[n].caption + '</span>';
152
			rlist += '<span>' + researchAreas[n].caption 
153
			if(n < researchAreas.length-1){
154
				rlist += " , "	
155
			}
156
			rlist += '</span>';
153 157
		}
154 158

155 159
		/*判断用户是否认证*/
@ -173,9 +177,13 @@ function datalistEach(datalist) {
173 177
		var zlist = '';
174 178
		for(var m = 0; m < resources.length; m++) {
175 179
			//console.log(resources[m].caption);
176
			zlist = '<span>' + resources[m].resourceName + '</span>';
180
			zlist += '<span>' + resources[m].resourceName 
181
			if(m < resources.length-1){
182
				zlist += " , "	
183
			}
184
			zlist += '</span>';
177 185
		}
178

186
		
179 187
		var title = item.professor.title || "";
180 188
		var office = item.professor.office || "";
181 189
		var orgName = item.professor.orgName || "";