|
@ -96,6 +96,7 @@ function leword(row, aa) {
|
96
|
96
|
}
|
97
|
97
|
|
98
|
98
|
mui.plusReady(function() {
|
|
99
|
var ffl=false;
|
99
|
100
|
var oCurren = {
|
100
|
101
|
self: plus.webview.currentWebview(),
|
101
|
102
|
userid: plus.storage.getItem('userid'),
|
|
@ -369,11 +370,26 @@ mui.plusReady(function() {
|
369
|
370
|
document.getElementById("resourceList").appendChild(li);
|
370
|
371
|
},
|
371
|
372
|
correlationArticle: function($data) {
|
372
|
|
|
373
|
|
if($data.length == 0) {
|
374
|
|
return;
|
|
373
|
if($data.total) {
|
|
374
|
if($data.data.length == 0) {
|
|
375
|
return;
|
|
376
|
}
|
|
377
|
}else{
|
|
378
|
if($data.length == 0) {
|
|
379
|
return;
|
|
380
|
}
|
|
381
|
}
|
|
382
|
var oo=1;
|
|
383
|
if($data.total) {
|
|
384
|
var $data=$data.data;
|
|
385
|
|
|
386
|
document.getElementById('newarticle').style.display = "block";
|
|
387
|
oo=0;
|
|
388
|
}else{
|
|
389
|
document.getElementById('article').style.display = "block";
|
|
390
|
|
375
|
391
|
}
|
376
|
|
document.getElementById('article').style.display = "block"
|
|
392
|
|
377
|
393
|
for(var i = 0; i < $data.length; i++) {
|
378
|
394
|
var ourl, of ;
|
379
|
395
|
if($data[i].articleType == 1) {
|
|
@ -425,7 +441,10 @@ mui.plusReady(function() {
|
425
|
441
|
'<p><span class="h2Font" style="margin-right:10px">'+namepo+'</span><span class="time">'+commenTime($data[i].publishTime)+'</span></p>'+
|
426
|
442
|
'</div>' +
|
427
|
443
|
'</div>'
|
428
|
|
document.getElementById("articleList").appendChild(li);
|
|
444
|
|
|
445
|
if(oo==0){
|
|
446
|
document.getElementById("newarticleList").appendChild(li)
|
|
447
|
}else{document.getElementById("articleList").appendChild(li);}
|
429
|
448
|
}
|
430
|
449
|
},
|
431
|
450
|
error: function(xhr, type, errorThrown) {
|
|
@ -491,7 +510,7 @@ mui.plusReady(function() {
|
491
|
510
|
|
492
|
511
|
}
|
493
|
512
|
});
|
494
|
|
|
|
513
|
oArticleModule.oAjaxGet(baseUrl + "/ajax/article/find", {pageSize:5}, "get", oArticleModule.correlationArticle);
|
495
|
514
|
oArticleModule.oAjaxGet(baseUrl + "/ajax/article/ralatePro", {
|
496
|
515
|
"articleId": oArticleModule.articleId
|
497
|
516
|
}, "get", oArticleModule.correlationExpert);
|
|
@ -591,7 +610,7 @@ mui.plusReady(function() {
|
591
|
610
|
resourceId: resouId
|
592
|
611
|
});
|
593
|
612
|
})
|
594
|
|
mui('#articleList').on('tap', 'li', function() {
|
|
613
|
mui('#articleList,#newarticleList').on('tap', 'li', function() {
|
595
|
614
|
var id = this.getAttribute("data-id");
|
596
|
615
|
plus.nativeUI.showWaiting();
|
597
|
616
|
var webviewShow=plus.webview.create("../html/professorArticle.html", '../html/professorArticle.html', {}, {
|