Browse Source

研究方向点击查看详情

luyanan 8 years ago
parent
commit
8fd24b162f
6 changed files with 62 additions and 19 deletions
  1. 1 1
      css/common.css
  2. 3 2
      css/index.css
  3. 1 1
      css/login.css
  4. 11 3
      css/workspace.css
  5. 43 9
      information-brow.html
  6. 3 3
      js/information.brow.js

+ 1 - 1
css/common.css

@ -108,7 +108,7 @@ input{ outline:none;}
108 108
.downloadBox{}
109 109
.downloadBtn{position:relative;display: inline-block;vertical-align: middle;margin:30px auto 10px;overflow:hidden;}
110 110
.downloadBtn .download-btn {position: relative;margin: 20px 10px;border: 1px solid #999;border-radius: 6px;padding: 10px 30px;color: #666;line-height: 46px;font-size: 16px;display: block;width: 240px;height: 70px;}
111
.downloadBtn .download-btn:first-child:hover{ background:#f3f3f3;}
111
.downloadBtn .download-btn:hover{ background:#f3f3f3;}
112 112
.downloadBtn .download-btn .app-android-icon, .downloadBtn .download-btn .app-ios-icon {float: left;display: block;width: 39px;height: 47px;margin-right: 10px;background: url(../images/app-icons.png) no-repeat;}
113 113
.downloadBtn .download-btn .app-android-icon { background-position: 0 -60px;}
114 114
.appcodeBox{ text-align:center;}

+ 3 - 2
css/index.css

@ -211,7 +211,7 @@ input[type='radio'].radio:checked + .radio {background:url(../images/redio.png)
211 211
/*------------------------------------------------------------------------------------*/
212 212
/*专家信息页*/
213 213
/*咨询模块按钮入口*/
214
.coulstblock{position:fixed;width:100%;bottom:0;right:0;z-index:1001;background:rgba(256,256,256,.9); border:1px solid #dddddd; border-radius:4px 4px 0 0; box-shadow: -3px -2px 8px -1px rgba(0,0,0,0.2); display:none;}
214
.coulstblock{position:fixed;width:100%;bottom:0;right:0;z-index:999;background:rgba(256,256,256,.9); border:1px solid #dddddd; border-radius:4px 4px 0 0; box-shadow: -3px -2px 8px -1px rgba(0,0,0,0.2); display:none;}
215 215
.coulstblock .coulstbox{display:block;padding:10px 20px;width:90%;margin:auto; overflow:hidden;}
216 216
.coulstblock .coulstbox .prohead{ width:80px;margin-left:40px; overflow:hidden;}
217 217
.coulstblock .coulstbox .proinfomation{margin:0 2%;max-width:50%; overflow:hidden;}
@ -283,7 +283,7 @@ input[type='radio'].radio:checked + .radio {background:url(../images/redio.png)
283 283
.list-browse{ height:24px;box-shadow:2px 2px 1px #c9c9c9 ; text-align:center;font-size:14px;line-height:26px; color:#666; margin-left:15px; float:left;cursor:pointer;padding-right: 8px;max-width: 60%;text-overflow: ellipsis;white-space: nowrap; overflow:hidden;}
284 284
.plus{ float:left;display:block; width:26px; height:26px; cursor:pointer; background:url(../images/thumb-up.png) no-repeat 0 0; margin-left:10px;  }
285 285
.line{ width:110px; height:1px; background:#ccc; float:left; margin-left:30px; margin-top:12px;}
286
.like-num{ float:right;max-width:38%;height:26px; padding:0 20px; overflow:hidden; }
286
.like-num{ float:right;max-width:38%;height:26px; padding:0 20px; overflow:hidden;cursor:pointer;}
287 287
.like-people{ width:26px; height:26px; float:left; overflow:hidden; margin-right:5px; background:url(../images/default-photo.png) no-repeat center center; background-size:100% 100%;-moz-background-size:100% 100%;}
288 288
.like-people img{ width:100%; height:100%;}
289 289
.like-more{ display: block; border:1px solid #CCCCCC; background:url(../images/likemore.png) no-repeat center center;}
@ -333,6 +333,7 @@ label.edu-radio{ float:none;font-size:16px;line-height:26px; color:#868686; }
333 333
.edu-about span{ display:none;}
334 334
.infor-browse .edu-about{ color:#666;}
335 335
.infor-browse .edu-infor { color:#666;}
336
#industryShow li{list-style:disc inside;}
336 337

337 338
.add-icon{ cursor:pointer;}
338 339
.button{ float:left; width:40px; height:17px; margin-left:10px; margin-top:4px;}

+ 1 - 1
css/login.css

@ -161,7 +161,7 @@ html,body{ cursor:default; margin:0; height:100%;}
161 161
.yzm {position: absolute;height: 44px; width:100px; margin-top:1px;}
162 162
.reflash {position: absolute;height: 44px; width: 20px; background: url(../images/icon-reflash.png) center center no-repeat;top:0;right: 10px;}
163 163
.coderli { position: relative;}
164
.getcode { display: inline-block;width: 120px; height: 48px;background: #ff9900;border-radius:2px 6px 6px 2px;line-height: 48px; text-align: center; position: absolute;right:-2px;top:50%; margin-top:-24px;color: #fff;}
164
.getcode { display: inline-block;width: 120px; height: 48px;background: #ff9900;border-radius:2px 6px 6px 2px;line-height: 48px; text-align: center; position: absolute;right:-2px;top:50%; margin-top:-24px;color: #fff;cursor: pointer;}
165 165
.getcode:focus{ border:1px solid transparent;}
166 166
.getcodeon{background: #ff9900;}
167 167
.getcodeoff{background: #B5B7BA;}

+ 11 - 3
css/workspace.css

@ -113,7 +113,7 @@
113 113
.objectsrc p{ line-height:24px; text-align:center;}
114 114
.objectsrc .objectstate{/* background:url(../images/progressing.png) 52px 2px no-repeat;*/}
115 115
116
.otherRes{padding:10px;}
116
.otherRes{padding:10px;margin-right:-12px;}
117 117
.otherRes li{ width: 202px;float:left;border: 1px solid #e4e5e7;margin:0 12px 12px 0;border-radius: 6px;cursor: pointer;}
118 118
.otherRes li:last-child{margin:0 0 12px 0;}
119 119
.otherRes li a{display: block;}
@ -279,7 +279,7 @@
279 279
.dialog_sj{position: absolute;right: -16px;top: 6px;border: 6px solid #fff;border-color: #ff9900 transparent transparent;display: block;font-size: 0;height: 0;width: 0;}
280 280
281 281
/*////////////我的关注/////////////////*/
282
.attentionBox{position:absolute;width:640px;left:50%;margin:60px 0 0 -300px;background:#fff;border-radius:10px;font-size:14px; z-index:1001; margin-bottom:40px;box-shadow: 2px 4px 10px 4px #555; -webkit-box-shadow: 2px 4px 10px 4px #555; -moz-box-shadow: 2px 4px 10px 4px #555; }
282
.attentionBox{position:absolute;width:640px;left:50%;margin:80px 0 20px -320px;background:#fff;border-radius:10px;font-size:14px; z-index:1001; margin-bottom:40px;box-shadow: 2px 4px 10px 4px #555; -webkit-box-shadow: 2px 4px 10px 4px #555; -moz-box-shadow: 2px 4px 10px 4px #555; }
283 283
.topTit{text-align:center;color:#FFFFFF; font-size:20px;line-height:46px;background: #ff9900;border-radius:10px 10px 0 0;height:46px;width: 100%;}
284 284
.fixbox{ background: #FFFFFF;/* position:fixed;top:46px;left:0;*/width:100%; z-index:1;}
285 285
.fixbox .fixbtn{ padding:0; margin: 0; overflow: hidden;}
@ -298,10 +298,18 @@
298 298
.attentsCon .listtit3{font-size: 13px;line-height:18px; color: #888888;}/*小标题*/
299 299
.attentList{padding:10px;display: none;}
300 300
.attentList:first-child{display: block;}
301
.attentList li{padding: 14px;margin:6px 0;position: relative;}
301
.attentList li{padding: 10px 14px;margin:6px 0;position: relative;}
302
.attentList li .proinfor{display: block;}
302 303
.attentList li:hover{background: #EFEFEF;}
303 304
.attentList li:first-child{margin-top:0}
304 305
.attentList li:after{position: absolute;bottom: 0;right: 0;left:126px;height: 1px;content: '';background-color: #c8c7cc;
305 306
    -webkit-transform: scaleY(.5);
306 307
            transform: scaleY(.5);}
307 308
.attentList li:last-child:after{background: none;}
309
310
.resAreaCon .proinfor .headimg{width: 60px;}
311
.resAreaCon .attentList{display: block;}
312
.resAreaCon .attentList li:hover{background:none;}
313
.resAreaCon .attentList li:after{left:86px;}
314
.resAreaCon .littip{font-size:13px;margin: 10px 10px 0 10px;padding:6px; border-bottom:1px #CCCCCC dashed;}
315
.resAreaCover .researchArea{padding:20px 30px;background: #ff9900;color:#FFFFFF;font-size:16px; border-bottom:1px #EAEAEA solid;border-radius: 10px 10px 0 0;}

+ 43 - 9
information-brow.html

@ -16,7 +16,38 @@
16 16
</head>
17 17
18 18
<body>
19
19
<!--研究方向详情页面-->
20
<div class="blackcover resAreaCover" style="display: none;">
21
	<div class="attentionBox">
22
		<div class="researchArea">研究方向文字很长,之前页面显示不下,在这里就能显示完整,全部都显示出来</div>
23
		<div class="attentsCon resAreaCon">
24
			<p class="littip">以下用户认可了他的研究</p>
25
			<ul class="attentList">
26
				<li>		
27
					<a class="proinfor clearfix">
28
						<div class="headblock floatL"><img id="proHead" class="headimg headRadius" src="images/default-photo.jpg"></div>
29
						<div class="mediaBody">
30
							<span class="listtit" ><span id="proName">章先生</span><em class="authicon authicon-cu" style="position:absolute;margin:4px 0 0 2px ;"></em></span>
31
							<div class="listtit2"><span id="proTitle">国家级营养师</span><span id="proOffice">,教授</span><span id="proOrg">,北京体育大学</span><span id="proAddress"> | 北京</span></div>
32
						</div>
33
					</a>
34
				</li>
35
				<li>		
36
					<a class="proinfor clearfix">
37
						<div class="headblock floatL"><img id="proHead" class="headimg headRadius" src="images/default-photo.jpg"></div>
38
						<div class="mediaBody">
39
							<span class="listtit" ><span id="proName">章先生</span><em class="authicon authicon-cu" style="position:absolute;margin:4px 0 0 2px ;"></em></span>
40
							<div class="listtit2"><span id="proTitle">国家级营养师</span><span id="proOffice">,教授</span><span id="proOrg">,北京体育大学</span><span id="proAddress"> | 北京</span></div>
41
						</div>
42
					</a>
43
				</li>
44
				
45
			</ul>
46
		</div>
47
		<div style="height: 20px;"></div>
48
		<span class="workclose" id="workclose"></span>	
49
	</div>
50
</div>
20 51
<div id="header">
21 52
	<a href="index.html" alt="科袖" class="logo"></a>
22 53
	<div class="searchblock" style="display:block;">
@ -240,12 +271,6 @@
240 271
            <span> | </span>
241 272
            <span class="listlink">客服热线: 010-62343359(9:00-17:00)</span>
242 273
        </div>
243
        <!--<div class="inner_wrapper floatR">
244
        	<div class="codebox">
245
           		<span class="code weixin_code"></span> 
246
                <p>科袖微信公众号</p>
247
           </div>
248
        </div>-->
249 274
    </div>
250 275
    <div class="copyright">
251 276
        <span><em> © </em>2016 北京科袖科技有限公司</span>
@ -261,7 +286,7 @@
261 286
    	<div class="proinfomation floatL">
262 287
    		<div class="clearfix">
263 288
    			<a class="authobject named" id="foot_proname"></a>
264
    			<em class="" id="foot_promodify"></em>
289
    			<em class="" id="foot_promodify" style="margin: 2px;"></em>
265 290
    		</div>
266 291
			<div class="position"><span id="foot_protitle"></span><span></span ></div>				
267 292
			<div class="science"><span id="foot_prodepar"></span><span id="foot_proorgname"></span ><span class="address" id="foot_proaddress"></span></div>								
@ -303,7 +328,16 @@
303 328
	//分享按钮和关注按钮
304 329
	$('.shareWeixin').hover(function(){$('.shareCode').stop(true,false).fadeToggle();});
305 330
	
306
331
	//研究方向详细信息
332
	$("#researchAreaShow").on('click',".favorBox",function(){
333
		$(".resAreaCover").fadeIn();
334
		$("body").css("position","fixed");	
335
	})
336
	//关闭按钮
337
	$("#workclose").click(function(){
338
		$(".resAreaCover").fadeOut();
339
		$("body").css("position","static");
340
	});
307 341
</script>
308 342
</body>
309 343
</html>

+ 3 - 3
js/information.brow.js

@ -212,11 +212,11 @@ $(function(){
212 212
						}
213 213
						if(professorId != userid){
214 214
						if(isAgree) {
215
							var showDiv = "<div class='listbox listbox-browse clear'><div class='list-browse'><span class='like'>" + $data.count + "</span>" + $data.caption + "</div><span class='plus ' data-pid='" + $data.professorId + "' data-caption='" + $data.caption + "' data-isagree='" + isAgree + "' ></span><div class='like-num'>";
215
							var showDiv = "<div class='listbox listbox-browse clear'><div class='list-browse favorBox'><span class='like'>" + $data.count + "</span>" + $data.caption + "</div><span class='plus ' data-pid='" + $data.professorId + "' data-caption='" + $data.caption + "' data-isagree='" + isAgree + "' ></span><div class='like-num favorBox'>";
216 216
						} else {
217
							var showDiv = "<div class='listbox listbox-browse clear'><div class='list-browse'><span class='like'>" + $data.count + "</span>" + $data.caption + "</div><span class='plus' style=' background-position-y:-26px' data-pid='" + $data.professorId + "' data-caption='" + $data.caption + "' data-isagree='" + isAgree + "' ></span><div class='like-num'>";
217
							var showDiv = "<div class='listbox listbox-browse clear'><div class='list-browse favorBox'><span class='like'>" + $data.count + "</span>" + $data.caption + "</div><span class='plus' style=' background-position-y:-26px' data-pid='" + $data.professorId + "' data-caption='" + $data.caption + "' data-isagree='" + isAgree + "' ></span><div class='like-num favorBox'>";
218 218
						}}else{
219
							var showDiv = "<div class='listbox listbox-browse clear'><div class='list-browse'><span class='like'>" + $data.count + "</span>" + $data.caption + "</div><div class='like-num'>";
219
							var showDiv = "<div class='listbox listbox-browse clear'><div class='list-browse favorBox'><span class='like'>" + $data.count + "</span>" + $data.caption + "</div><div class='like-num favorBox'>";
220 220
						}
221 221
						if($photos.length < 6) {
222 222
							for(var j = 0; j < $photos.length; ++j) {