xuchunyang %!s(int64=8) %!d(string=hace) años
padre
commit
44bb24f560
Se han modificado 2 ficheros con 25 adiciones y 6 borrados
  1. 1 1
      app/css/app.css
  2. 24 5
      app/js/discover.js

+ 1 - 1
app/css/app.css

@ -747,7 +747,7 @@ footer.chatFooter .mui-icon-paperplane {font-size: 16px;word-break: keep-all;lin
747 747
.table-item-cell .table-item-img.resource-default{background:url(../images/default-resource.jpg) center center;background-size:cover;}
748 748
.table-item-cell .table-item-body{padding-left:120px;padding-right: 10px;}
749 749
.table-item-media{line-height: 32px;height: 32px;}
750
.table-item-media .table-item-logo{position:absolute;display: inline-block;border:1px solid #E5E5E5;width: 32px; height:32px;margin-right:8px;}
750
.table-item-media .table-item-logo{position:absolute;display: inline-block;border:1px solid #E5E5E5;width: 32px; height:32px;margin-right:8px; z-index:2;}
751 751
.table-item-media .table-item-name{width:90%;position: relative;padding-left:40px;}
752 752
.table-item-media .table-item-name span{float:left;display:block;max-width:96%;overflow: hidden;white-space: nowrap;text-overflow: ellipsis;}
753 753
.table-item-media .authicon{bottom:9px;}

+ 24 - 5
app/js/discover.js

@ -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() {