Browse Source

微信样式修改及分享页面

jack 7 years ago
parent
commit
a82fd847e3
5 changed files with 37 additions and 14 deletions
  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
.operateicon.icon-qq:hover{background-image:url(../images/g_article_button_liuyan_hig.png);}
367
.operateicon.icon-qq:hover{background-image:url(../images/g_article_button_liuyan_hig.png);}
368
.operateicon.icon-totop:hover{background-image:url(../images/g_article_button_dingbu_hig.png);}
368
.operateicon.icon-totop:hover{background-image:url(../images/g_article_button_dingbu_hig.png);}
369
.shareWeixin{font-style: normal;position: relative;}
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
.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;}
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
.ifLogin{margin:30px 0;}
377
.ifLogin{margin:30px 0;}
377
.ifLogin .ifLoginUn{background: #fff7e7;border:1px solid #E5E5E5;line-height:18px;padding:25px;color:#7b4b2b;font-size:14px;}
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
.coulstblock .coulstbox .coulstbtn{padding:24px 10px; margin-right: 20px;}
245
.coulstblock .coulstbox .coulstbtn{padding:24px 10px; margin-right: 20px;}
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}
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
.coulstbtn .shareWeixin{background: #52DA4D;}
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
.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;}
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
.coulstbtn .attentBtn i{font-style: normal;}
252
.coulstbtn .attentBtn i{font-style: normal;}
254
.coulstbtn .attentBtn.attented{color:#ffffff;padding-left:24px;background: #f4c600;border:1px solid #f4c600;}
253
.coulstbtn .attentBtn.attented{color:#ffffff;padding-left:24px;background: #f4c600;border:1px solid #f4c600;}

+ 2 - 2
e/a.html

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

+ 26 - 3
e/p.html

118
				var nameli = document.getElementById("nameli");
118
				var nameli = document.getElementById("nameli");
119
				var personSummary = document.getElementsByClassName("breifinfo")[0];
119
				var personSummary = document.getElementsByClassName("breifinfo")[0];
120
				var professorId = GetQueryString("id");
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
				function GetQueryString(name) {
144
				function GetQueryString(name) {
122
					var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)", "i");
145
					var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)", "i");
123
					var r = window.location.search.substr(1).match(reg);
146
					var r = window.location.search.substr(1).match(reg);
225
							string += '<div class="proinfor clearfix">'
248
							string += '<div class="proinfor clearfix">'
226
							string += '<div class="media-object pull-left ResImgBox">'
249
							string += '<div class="media-object pull-left ResImgBox">'
227
							if($data[i].images.length) {
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
							} else {
253
							} else {
231
254
351
								document.getElementById("professorinfoapply").style.display = "none";
374
								document.getElementById("professorinfoapply").style.display = "none";
352
							}
375
							}
353
							//专家资源
376
							//专家资源
354
							if($data.resources.length) {
377
							/*if($data.resources.length) {
355
								professorResource($data.resources);
378
								professorResource($data.resources);
356
							} else {
379
							} else {
357
								document.getElementById("professorresourceList").style.display = "none";
380
								document.getElementById("professorresourceList").style.display = "none";
358
							}
381
							}*/
359
							/*//如无详细内容数据,隐藏详细点击的按钮
382
							/*//如无详细内容数据,隐藏详细点击的按钮
360
							if(!$data.edus.length && !$data.jobs.length && !$data.projects.length && !$data.papers.length && !$data.patents.length && !$data.honors.length) {
383
							if(!$data.edus.length && !$data.jobs.length && !$data.projects.length && !$data.papers.length && !$data.patents.length && !$data.honors.length) {
361
								document.getElementById("detailProfessor").style.display = "none";
384
								document.getElementById("detailProfessor").style.display = "none";

+ 1 - 1
e/r.html

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