|
@ -43,6 +43,7 @@ $(document).ready(function() {
|
43
|
43
|
$("#articleName").text($info.articleTitle);
|
44
|
44
|
$("#nameS,#proName").text($profesor.name);
|
45
|
45
|
$("#orgName").text($profesor.orgName);
|
|
46
|
$("#lineId").attr("href","information-brow.html?professorId="+$profesor.id);
|
46
|
47
|
if($profesor.title) {
|
47
|
48
|
if($profesor.office) {
|
48
|
49
|
$("#title").text($profesor.title + " , ");
|
|
@ -60,7 +61,7 @@ $(document).ready(function() {
|
60
|
61
|
$("#address").text($profesor.address);
|
61
|
62
|
}
|
62
|
63
|
if($profesor.hasHeadImage) {
|
63
|
|
$("#headImg,#limg,#proHead").attr("src", "/images/head/" + $info.professorId + "_l.jpg")
|
|
64
|
$("#headImg,#proHead").attr("src", "/images/head/" + $info.professorId + "_l.jpg")
|
64
|
65
|
}
|
65
|
66
|
if($info.subject) {
|
66
|
67
|
industryShow($info.subject, "subjectList");
|
|
@ -263,6 +264,25 @@ $(document).ready(function() {
|
263
|
264
|
}
|
264
|
265
|
});
|
265
|
266
|
}
|
|
267
|
function userInformation(){
|
|
268
|
$.ajax({
|
|
269
|
url: "/ajax/professor/editBaseInfo/"+userid,
|
|
270
|
dataType: 'json', //数据格式类型
|
|
271
|
type: 'GET', //http请求类型
|
|
272
|
timeout: 10000, //超时设置
|
|
273
|
success: function(data) {
|
|
274
|
console.log(data);
|
|
275
|
if(data.success && data.data) {
|
|
276
|
if(data.data.hasHeadImage==1){
|
|
277
|
$("#limg").attr("src","/images/head/" + data.data.id + "_l.jpg")
|
|
278
|
}
|
|
279
|
}
|
|
280
|
},
|
|
281
|
error: function(XMLHttpRequest) {
|
|
282
|
console.log(XMLHttpRequest)
|
|
283
|
}
|
|
284
|
});
|
|
285
|
}
|
266
|
286
|
function article() {
|
267
|
287
|
$.ajax({
|
268
|
288
|
url:"/ajax/leaveWord",
|
|
@ -295,10 +315,10 @@ $(document).ready(function() {
|
295
|
315
|
var valueLength = document.getElementsByTagName("textarea")[0].value;
|
296
|
316
|
var length = trim(valueLength);
|
297
|
317
|
if(length) {
|
298
|
|
document.getElementById("meSend").classList.add("colorAdd");
|
|
318
|
$("#meSend").addClass("colorAdd");
|
299
|
319
|
document.getElementById("meSend").style.background="#ff9900";
|
300
|
320
|
} else {
|
301
|
|
document.getElementById("meSend").classList.remove("colorAdd");
|
|
321
|
$("#meSend").removeClass("colorAdd");
|
302
|
322
|
document.getElementById("meSend").style.background="#dadada";
|
303
|
323
|
}
|
304
|
324
|
});
|
|
@ -308,4 +328,5 @@ $(document).ready(function() {
|
308
|
328
|
proInfoMain();
|
309
|
329
|
proArticle();
|
310
|
330
|
message();
|
|
331
|
userInformation();
|
311
|
332
|
})
|