Selaa lähdekoodia

微信样式修改及分享页面

jack 7 vuotta sitten
vanhempi
commit
a82fd847e3
5 muutettua tiedostoa jossa 37 lisäystä ja 14 poistoa
  1. 5 4
      css/genindex.css
  2. 3 4
      css/index.css
  3. 2 2
      e/a.html
  4. 26 3
      e/p.html
  5. 1 1
      e/r.html

+ 5 - 4
css/genindex.css

@ -367,11 +367,12 @@ ul.tagList>li .h2Font{color:#666}
367 367
.operateicon.icon-qq:hover{background-image:url(../images/g_article_button_liuyan_hig.png);}
368 368
.operateicon.icon-totop:hover{background-image:url(../images/g_article_button_dingbu_hig.png);}
369 369
.shareWeixin{font-style: normal;position: relative;}
370
.shareWeixin .shareCode{display:none;position: absolute;bottom: 40px;left:-24px;background:rgba(0,0,0,.6);padding: 8px;width: 260px;}
370
.shareWeixin .shareCode{display:none;position: absolute;bottom: 40px;left:-24px;background:rgba(0,0,0,.6);padding: 8px;width:320px;}
371 371
.shareWeixin .shareCode:after{display: block;width: 0;height: 0;border:12px solid transparent;border-top-color:rgba(0,0,0,.6);position: absolute;bottom:-24px;left:22px;}
372
.shareWeixin .shareCode .shareWord {width: 140px;margin: 10px;color: #FFF;text-align: left;font-size: 14px;line-height: 20px;}
373
.shareWeixin .shareCode .shareWord p{font-size: 14px;line-height: 20px;}
374
.shareWeixin .shareCode img{width: 80px;height: 80px;border: 4px solid #fff;}
372
.shareWeixin .shareCode .shareWord {width:160px;margin: 16px 10px;color: #FFF;text-align: left;font-size: 16px;line-height: 28px;}
373
.shareWeixin .shareCode .shareWord p{font-size: 16px;line-height: 28px;}
374
.shareWeixin .shareCode img{width:120px;height:120px;border: 4px solid #fff;}
375
375 376
376 377
.ifLogin{margin:30px 0;}
377 378
.ifLogin .ifLoginUn{background: #fff7e7;border:1px solid #E5E5E5;line-height:18px;padding:25px;color:#7b4b2b;font-size:14px;}

+ 3 - 4
css/index.css

@ -245,10 +245,9 @@ input[type='radio'].radio:checked + .radio {background:url(../images/redio.png)
245 245
.coulstblock .coulstbox .coulstbtn{padding:24px 10px; margin-right: 20px;}
246 246
.coulstbtn span,#conbtn span{display:inline-block;width:120px;text-align:center;padding:8px;margin-right:6px; border-radius:4px; text-align:center; color:#fff; background:#ff9900;cursor:pointer}
247 247
.coulstbtn .shareWeixin{background: #52DA4D;}
248
.shareCode{background:#FFFFFF;border:6px solid rgba(0,0,0,.2);padding:8px;position: absolute;bottom:40px;left:0;display: none;width: 260px;}
249
.shareCode img{width:80px;height:80px;}
250
.shareCode .shareWord{width: 126px;margin:10px;color:#666666;text-align: left;font-size: 14px; line-height: 20px;}
251
.coulstbtn .attentBtn{position:relative;padding-left:20px;border:1px solid #ff9900;color:#ff9900;background: transparent;}
248
.shareCode{background:#FFFFFF;border:6px solid rgba(0,0,0,.2);padding:8px;position: absolute;bottom:40px;left:0;display: none;width:340px;}
249
.shareCode img{width:120px;height:120px;}
250
.shareCode .shareWord{width: 160px;margin:16px 10px;color:#666666;text-align: left;font-size: 16px; line-height: 28px;}.coulstbtn .attentBtn{position:relative;padding-left:20px;border:1px solid #ff9900;color:#ff9900;background: transparent;}
252 251
.coulstbtn .attentBtn em{position:absolute;top:50%;margin-top:-8px;left:34px;display:inline-block; width:16px;height:18px;background:url(../images/favoricon.png) 0 -32px no-repeat;background-size:100% auto;}
253 252
.coulstbtn .attentBtn i{font-style: normal;}
254 253
.coulstbtn .attentBtn.attented{color:#ffffff;padding-left:24px;background: #f4c600;border:1px solid #f4c600;}

+ 2 - 2
e/a.html

@ -83,11 +83,11 @@
83 83
							}
84 84
						},
85 85
						"error":function(){
86
							$.MsgBox.Alert('提示','链接服务器超时')
86
							//$.MsgBox.Alert('提示','链接服务器超时')
87 87
						}
88 88
					});
89 89
				var oArticleModule = {
90
					articleId: GetQueryString("articleId"),
90
					articleId: GetQueryString("id"),
91 91
					oAjaxGet: function(url, obj, oType, oFun) {
92 92
						$.ajax({
93 93
							url: url,

+ 26 - 3
e/p.html

@ -118,6 +118,29 @@
118 118
				var nameli = document.getElementById("nameli");
119 119
				var personSummary = document.getElementsByClassName("breifinfo")[0];
120 120
				var professorId = GetQueryString("id");
121
			$.ajax({
122
			"url": "/ajax/resource/qaProPublish",
123
			"type": "get",
124
			"data": {
125
				"professorId": professorId,
126
			},
127
			"success": function(data) {
128
				if(data.success) {
129
					console.log(data)
130
					var $data=data.data
131
					if($data.length) {
132
								professorResource($data);
133
							} else {
134
								document.getElementById("professorresourceList").style.display = "none";
135
							}
136
						}
137
			},
138
			"error": function() {
139
				$.MsgBox.Alert('提示', '链接服务器超时')
140
			}
141
		});
142
				
143
							
121 144
				function GetQueryString(name) {
122 145
					var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)", "i");
123 146
					var r = window.location.search.substr(1).match(reg);
@ -225,7 +248,7 @@
225 248
							string += '<div class="proinfor clearfix">'
226 249
							string += '<div class="media-object pull-left ResImgBox">'
227 250
							if($data[i].images.length) {
228
								string += '<img class="resImg headRadius" src="../images/resource/' + $data[i].resourceId + '.jpg">'
251
								string += '<img class="resImg headRadius" src="../data/resource/' + $data[i].images[0].imageSrc+ '">'
229 252
230 253
							} else {
231 254
@ -351,11 +374,11 @@
351 374
								document.getElementById("professorinfoapply").style.display = "none";
352 375
							}
353 376
							//专家资源
354
							if($data.resources.length) {
377
							/*if($data.resources.length) {
355 378
								professorResource($data.resources);
356 379
							} else {
357 380
								document.getElementById("professorresourceList").style.display = "none";
358
							}
381
							}*/
359 382
							/*//如无详细内容数据,隐藏详细点击的按钮
360 383
							if(!$data.edus.length && !$data.jobs.length && !$data.projects.length && !$data.papers.length && !$data.patents.length && !$data.honors.length) {
361 384
								document.getElementById("detailProfessor").style.display = "none";

+ 1 - 1
e/r.html

@ -127,7 +127,7 @@ $(document).ready(function() {
127 127
				if(data.success) {}
128 128
			},
129 129
			"error": function() {
130
				$.MsgBox.Alert('提示', '链接服务器超时')
130
				//$.MsgBox.Alert('提示', '链接服务器超时')
131 131
			}
132 132
		});
133 133
	function getRecourceMe() {