|
@ -39,15 +39,15 @@ $(function() {
|
39
|
39
|
var type = datalist.type;
|
40
|
40
|
$itemlist.find("#centent").text(datalist.name);
|
41
|
41
|
$itemlist.find("#time").text(Time(datalist.createTime));
|
42
|
|
if(datalist.image) {
|
43
|
|
$itemlist.find("#newsimg").attr("style", "background-image: url(/data/article/" + datalist.image + ");");
|
44
|
|
}
|
45
|
42
|
if(type == 1) { //专家文章
|
46
|
43
|
$itemlist.find("#newstype").text("文章");
|
47
|
44
|
$itemlist.find("#newstype").addClass("articalLabel");
|
48
|
45
|
$itemlist.find("#newsimg").addClass("artical-default");
|
49
|
46
|
$itemlist.find("#userimg").addClass("userhead");
|
50
|
47
|
$itemlist.find("#newsurl").attr("href", "articalInfo.html?articleId=" + datalist.id + "&professorId=" + datalist.owner);
|
|
48
|
if(datalist.image) {
|
|
49
|
$itemlist.find("#newsimg").attr("style", "background-image: url(/data/article/" + datalist.image + ");");
|
|
50
|
}
|
51
|
51
|
userFun(datalist.owner, $itemlist);
|
52
|
52
|
} else if(type == 2) { //企业文章
|
53
|
53
|
$itemlist.find("#newstype").text("文章");
|
|
@ -55,6 +55,9 @@ $(function() {
|
55
|
55
|
$itemlist.find("#newsimg").addClass("artical-default");
|
56
|
56
|
$itemlist.find("#userimg").addClass("cmplogohead");
|
57
|
57
|
$itemlist.find("#newsurl").attr("href", "articalInfo.html?oFlag=1&articleId=" + datalist.id + "&professorId=" + datalist.owner);
|
|
58
|
if(datalist.image) {
|
|
59
|
$itemlist.find("#newsimg").attr("style", "background-image: url(/data/article/" + datalist.image + ");");
|
|
60
|
}
|
58
|
61
|
cmpFun(datalist.owner, $itemlist)
|
59
|
62
|
} else if(type == 3) { //专家资源
|
60
|
63
|
$itemlist.find("#newstype").text("资源");
|
|
@ -62,6 +65,9 @@ $(function() {
|
62
|
65
|
$itemlist.find("#newsimg").addClass("resource-default");
|
63
|
66
|
$itemlist.find("#userimg").addClass("userhead");
|
64
|
67
|
$itemlist.find("#newsurl").attr("href", "resourceInfo.html?resourceId=" + datalist.id);
|
|
68
|
if(datalist.image) {
|
|
69
|
$itemlist.find("#newsimg").attr("style", "background-image: url(/images/resource/" + datalist.image + ");");
|
|
70
|
}
|
65
|
71
|
userFun(datalist.owner, $itemlist);
|
66
|
72
|
}
|
67
|
73
|
}
|