|
@ -7,7 +7,8 @@ var discoverBox = document.body.querySelector('#discoverBox');
|
7
|
7
|
$('#discoverBox').on('click', '.newsurl', function() {
|
8
|
8
|
var id = $(this).attr("data-id");
|
9
|
9
|
var datatype = $(this).attr("data-type");
|
10
|
|
if(datatype == 1 || datatype == 2) {
|
|
10
|
var ownerid = $(this).attr("owner-id");
|
|
11
|
if(datatype == 1) {
|
11
|
12
|
mui.openWindow({
|
12
|
13
|
url: '../html/professorArticle.html',
|
13
|
14
|
id: 'html/professorArticle.html',
|
|
@ -17,6 +18,21 @@ $('#discoverBox').on('click', '.newsurl', function() {
|
17
|
18
|
},
|
18
|
19
|
extras: {
|
19
|
20
|
articleId: id,
|
|
21
|
ownerid: id,
|
|
22
|
}
|
|
23
|
});
|
|
24
|
}else if(datatype == 2){
|
|
25
|
mui.openWindow({
|
|
26
|
url: '../html/professorArticle.html',
|
|
27
|
id: 'html/professorArticle.html',
|
|
28
|
show: {
|
|
29
|
autoShow: false,
|
|
30
|
aniShow: "slide-in-right",
|
|
31
|
},
|
|
32
|
extras: {
|
|
33
|
articleId: id,
|
|
34
|
ownerid: id,
|
|
35
|
oFlag:1
|
20
|
36
|
}
|
21
|
37
|
});
|
22
|
38
|
} else if(datatype == 3) {
|
|
@ -58,7 +74,7 @@ $('#discoverBox').on('click', '.gouserurl', function() {
|
58
|
74
|
url: '../html/cmpinfor-index.html',
|
59
|
75
|
id: 'cmpinfor-index.html',
|
60
|
76
|
show: {
|
61
|
|
//autoShow: false,
|
|
77
|
autoShow: false,
|
62
|
78
|
aniShow: "slide-in-right",
|
63
|
79
|
},
|
64
|
80
|
extras: {
|
|
@ -199,6 +215,7 @@ function datalistEach(datalist) {
|
199
|
215
|
$itemlist.find("#time").text(Time(item.createTime));
|
200
|
216
|
$itemlist.find(".newsurl").attr("data-id", item.id);
|
201
|
217
|
$itemlist.find(".newsurl").attr("data-type", item.type);
|
|
218
|
$itemlist.find(".newsurl").attr("owner-id", item.owner);
|
202
|
219
|
if(item.image) {
|
203
|
220
|
$itemlist.find("#newsimg").attr("style", "background-image: url(" + baseUrl + "/data/article/" + item.image + ");");
|
204
|
221
|
}
|
|
@ -269,9 +286,11 @@ function cmpFun(id, $itemlist) {
|
269
|
286
|
}
|
270
|
287
|
$itemlist.find(".userurl").attr("data-id", data.data.id);
|
271
|
288
|
$itemlist.find(".userurl").attr("data-iftauth", data.data.authStatus);
|
272
|
|
var userType = autho(data.data.authType, data.data.orgAuth, data.data.authStatus);
|
273
|
|
$itemlist.find(".authicon").attr("title", userType.title);
|
274
|
|
$itemlist.find(".authicon").addClass(userType.sty);
|
|
289
|
if(data.data.authStatus==3){
|
|
290
|
$itemlist.find(".authicon").addClass("authicon-com-ok").attr("title", "认证企业");;
|
|
291
|
}else{
|
|
292
|
$itemlist.find(".authicon").addClass("authicon-com-no").attr("title", "未认证企业");;
|
|
293
|
}
|
275
|
294
|
}
|
276
|
295
|
},
|
277
|
296
|
"error": function() {
|