XMTT 6 years ago
parent
commit
16bcbef725
1 changed files with 12 additions and 2 deletions
  1. 12 2
      app/js/searchListNew2.js

+ 12 - 2
app/js/searchListNew2.js

@ -502,7 +502,9 @@ for(var n=0;n<6;n++) {
502 502
					} else if( of == 3){
503 503
						li.setAttribute("owner-id", $data[i].editOrganization.id);
504 504
						li.setAttribute("data-type", 3);
505
						name = $data[i].editOrganization.name;
505
						search.oAjaxGet(baseUrl + "/ajax/platform/info",{id:$data[i].ownerId},"get",function (platform) {
506
                            name = platform.name;
507
                        })
506 508
					}
507 509
					li.setAttribute("data-id", $data[i].articleId);
508 510
					li.setAttribute("data-flag", 3);
@ -833,13 +835,21 @@ for(var n=0;n<6;n++) {
833 835
				plus.webview.create("../html/professorArticle.html", '../html/professorArticle.html', {}, {
834 836
					articleId: id,
835 837
					ownerid: ownerid,
838
					oFlag:1
836 839
				});
837 840
			} else if(datatype == 2) {
838 841
				plus.nativeUI.showWaiting();
839 842
				plus.webview.create("../html/professorArticle.html", '../html/professorArticle.html', {}, {
840 843
					articleId: id,
841 844
					ownerid: ownerid,
842
					oFlag: 1
845
					oFlag: 2
846
				});
847
			} else if(datatype == 3) {
848
				plus.nativeUI.showWaiting();
849
				plus.webview.create("../html/professorArticle.html", '../html/professorArticle.html', {}, {
850
                    articleId: id,
851
                    ownerid: ownerid,
852
                    oFlag: 3
843 853
				});
844 854
			}
845 855
		})