Browse Source

新增关注功能

xuchunyang 8 years ago
parent
commit
ff5d2eb4df
1 changed files with 48 additions and 14 deletions
  1. 48 14
      information-brow.html

+ 48 - 14
information-brow.html

@ -13,8 +13,6 @@
13 13
<link type="text/css" href="css/common.css" rel="stylesheet">
14 14
<link type="text/css" href="css/workspace.css" rel="stylesheet">
15 15
<link type="text/css" href="css/popup.css" rel="stylesheet">
16
<link rel="stylesheet" href="//apps.bdimg.com/libs/jqueryui/1.10.4/css/jquery-ui.min.css">
17
18 16
</head>
19 17
20 18
<body>
@ -63,7 +61,17 @@
63 61
					<div class="science proScience"><span id="industryS"></span ><span id="orgNameS"></span ></div>			
64 62
					<div class="address proAddress" id="address"></div>					
65 63
				</div>
66
				<div class="coulstbtn floatL" id="conbtn" style="position: absolute;bottom: 20px;"><span>咨询</span></div>
64
				<div class="coulstbtn floatL" style="position: absolute;bottom: 20px;">
65
					<span id="conbtn">咨询</span>
66
					<span class="attentBtn" id="attentBtn"><em></em><i>关注</i></span>
67
					<span class="shareWeixin" style="display:inline-block;position: relative;">分享至微信
68
						<div class="shareCode">
69
							<div id="qrcode"></div>
70
						</div>
71
					</span>
72
				</div>
73
74
				
67 75
			</div>
68 76
			<div class="head-right headRadius"><a id="organ"><img id="orgImage"></a></div>
69 77
		</div>
@ -248,7 +256,7 @@
248 256
249 257
<!--咨询模块按钮入口-->
250 258
 <div class="coulstblock">    
251
    <div class="coulstbox" id="consultbtn">
259
    <div class="coulstbox">
252 260
    	<div class="prohead headRadius floatL"><img src="images/default-photo.jpg" width="100%" height="100%" id="foot_proimg"></div>
253 261
    	<div class="proinfomation floatL">
254 262
    		<div class="clearfix">
@ -258,28 +266,54 @@
258 266
			<div class="position"><span id="foot_protitle"></span><span></span ></div>				
259 267
			<div class="science"><span id="foot_prodepar"></span><span id="foot_proorgname"></span ><span class="address" id="foot_proaddress"></span></div>								
260 268
    	</div>
261
        <div class="coulstbtn floatR"><span>咨询</span></div>
269
        <div class="coulstbtn floatR">
270
        	<span id="consultbtn">咨询</span>
271
        	<span class="attentBtn" id="attentBtnFoot"><em></em><i>关注</i></span>
272
        </div>
262 273
    </div>
263 274
</div>
264 275
<script type="text/javascript" src="js/jquery-1.11.1.js"></script>
265
<script src="//apps.bdimg.com/libs/jquery/1.10.2/jquery.min.js"></script>
266
<script src="//apps.bdimg.com/libs/jqueryui/1.10.4/jquery-ui.min.js"></script>
276
<script type="text/javascript" src="/js/jquery.cookie.js"></script>
277
<script type="text/javascript" src="js/jquery.similar.msgbox.js"></script>
278
<script type="text/javascript" src="js/weixinshare/qrcode.min.js"></script>
267 279
<script type="text/javascript" src="js/common.js"></script>
268 280
<script type="text/javascript" src="js/popup.js"></script>
269 281
<script type="text/javascript" src="js/index.js"></script>
270
271 282
<script type="text/javascript" src="js/information.brow.js"></script>
272
<script type="text/javascript" src="/js/jquery.cookie.js"></script>
273
<script type="text/javascript" src="js/jquery.similar.msgbox.js"></script>
274
 <script>
275
//合作历史及评价------等级星
283
<script>
276 284
285
	//合作历史及评价------等级星
277 286
	$(".evastar").bind("click",function(){
278 287
		$(this).css("background-position","0 0");
279
	
280 288
	})
281 289
	
290
	//微信分享
291
	var qrcode = new QRCode(document.getElementById("qrcode"), {
292
		width : 100,
293
		height : 100
294
	});
295
	function makeCode(){	
296
		var professorId =  GetQueryString("professorId");
297
		var elurl ="http://www.ekexiu.com/ekexiu/shareProinfor.html?professorId=" + professorId ; 
298
		qrcode.makeCode(elurl);
299
	}
300
	makeCode();
301
	
302
	//分享按钮和关注按钮
303
	$('.shareWeixin').hover(function(){$('.shareCode').stop(true,false).fadeToggle();});
304
	var attentFlag;
305
	$('.attentBtn').click(function(){
306
		if(attentFlag != 0){
307
			$(this).addClass('attented');
308
			$('.attentBtn i').text('取消关注');
309
			attentFlag=0;
310
		}else{
311
			$(this).removeClass('attented');
312
			$('.attentBtn i').text('关注');
313
			attentFlag=1;
314
		}
315
	})
282 316
283
 </script>
317
</script>
284 318
</body>
285 319
</html>