Browse Source

在H5分享页面中,所有点击跳转app下载页面的按钮,增加判断:当前手机是否已下载科袖app:

luyanan 7 years ago
parent
commit
a43b47d657
10 changed files with 64 additions and 22 deletions
  1. 11 6
      css/index.css
  2. 11 0
      css/share.css
  3. 5 1
      e/a.html
  4. 6 2
      e/c.html
  5. 5 2
      e/d.html
  6. 7 3
      e/l.html
  7. 5 2
      e/p.html
  8. 6 2
      e/r.html
  9. 8 4
      e/z.html
  10. BIN
      images/guideJump.png

+ 11 - 6
css/index.css

@ -95,15 +95,20 @@ input{ outline:none;}
95 95
/*热门专家*/
96 96
.hot-professor{ width:100%; }
97 97
.hot-professor .carousel .carousel-caption{position:static;height: 450px;text-shadow: none;}
98
/*.hot-professor .carousel .carousel-indicators li{background:#dadada;width: 36px;height:5px;border-radius: 0;border:0;margin:1px 10px;}
99
.hot-professor .carousel .carousel-indicators li.active{width: 36px;height:6px;background:#ff9900;margin:1px 10px;}*/
100
/*.hot-professor .homehead-pro{width: 120px;height: 120px;overflow: hidden;margin:10px auto;}*/
101
.hot-professor .homeinfo{position:absolute;top:60px;left:18%;max-width:50%;text-align:left;margin-top:10px;margin: auto;}
102
.hot-professor .homeinfo .h1Font{font-size: 22px;line-height: 42px;color:#fff;font-weight:700;margin-bottom:30px;max-height:84px;}
103
.hot-professor .homeinfo .h2Font{font-size: 18px;line-height: 40px;color:#fff;}
98
.hot-professor .homeinfo{position:absolute;margin:60px 0;left:18%;max-width:36%;text-align:left;overflow:hidden;text-shadow:1px 1px 6px #666;}
99
.hot-professor .homeinfo .h1Font{font-size: 22px;line-height:32px;color:#fff;font-weight:700;margin-bottom:20px;max-height:64px;}
100
.hot-professor .homeinfo .h2Font{font-size: 16px;line-height:32px;font-weight:600;margin:2px 0;color:#fff;text-align:justify;text-justify:inter-ideograph;}
101
.hot-professor .homebrief{max-height:228px;}
104 102
.hot-professor .carousel .item{background: none;border:none;}
105 103
.hot-professor .carousel .item.active{box-shadow: none;}
106 104
.hot-professor .carousel .aitemLink{display:block;background-position:center center;background-size:cover;}
105
.hot-professor .carousel .aitemLink>.carousel-caption{background-color:rgba(0,0,0,.2);}
106
 @media only screen and (min-width: 800px) and (max-width:1280px) {
107
 	.hot-professor .homeinfo{max-width:45%}
108
 }
109
 @media only screen and (min-width: 100px) and (max-width:800px) {
110
 	.hot-professor .homeinfo{max-width:60%}
111
 }
107 112
/*友情链接*/
108 113
.urlLinkBox{background: #FAFAFA;padding: 10px 0;margin-bottom:-20px}
109 114
.urlLinkBox .tit-M{color: #333;font-size: 18px;margin-bottom:10px;margin-top: 5px;}

+ 11 - 0
css/share.css

@ -80,6 +80,11 @@ html,body {outline: 0;margin:0;padding:0px;background: #efeff4;-webkit-text-size
80 80
.showDetail .showMain{font-size:15px;color:#333;line-height:28px;}
81 81
.showDetail .showMain img{max-width: 100%;}
82 82
.showDetail .showMain p{margin-bottom:16px;font-size:15px;color:#333;text-align:justify}
83
#articleContent ul,#articleContent ol{padding-left:20px;}
84
#articleContent ul{list-style-type:disc;}
85
#articleContent ol{list-style-type:decimal;}
86
#articleContent ul>li,#articleContent ol>li{padding-left:0px;}
87
#articleContent ul>li>p,#articleContent ol>li>p{margin: 0;}
83 88
ul.tagList{padding:0;margin:18px 0 8px;overflow: hidden;}
84 89
ul.tagList>li{list-style:none;float: left;margin-right:10px;margin-bottom:10px;padding:4px 12px;color: #666;background:#EFEFEF;}
85 90
ul.tagList>li .h2Font{color: #666;}
@ -273,3 +278,9 @@ ul.mui-table-view>li:last-child:after{background: none;}
273 278
.infocon.madiaBlock.needList>ul>li{padding:15px;}
274 279
.showli{overflow: hidden;}
275 280
.showli>span{padding-right:10px;font-size: 12px;color:#999;}
281
282
/*微信中指示浏览器打开*/
283
.strCss{
284
	background-image:url(../images/guideJump.png);
285
	background-size:cover;
286
	left:0;right:0;top:0;bottom:0;position:fixed;z-index:19999;}

+ 5 - 1
e/a.html

@ -3,6 +3,7 @@
3 3

4 4
<head>
5 5
<meta charset="UTF-8">
6
<!--<meta name="apple-itunes-app" content="app-id=H53C12FED, app-argument=ekexiu://">-->
6 7
<title>文章分享-科袖网</title>
7 8
<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
8 9
<link rel="stylesheet" href="../css/reset.css" />
@ -11,6 +12,7 @@
11 12
<script type="text/javascript" src="../js/jquery-1.11.1.js"></script>
12 13
<script type="text/javascript" src="http://res.wx.qq.com/open/js/jweixin-1.0.0.js"></script>
13 14
<script type="text/javascript" src="../js/public/shareCom.js"></script>	
15
<script type="text/javascript" src="../js/public/openApp.js"></script>	
14 16
<style>
15 17
	html,body {background: #FFFFFF;}
16 18
</style>
@ -123,8 +125,10 @@
123 125
				location.href="http://" + window.location.host + "/e/c.html?id=" + cmpId;
124 126
			}
125 127
		})
128
		var this_="../html/professorArticle.html?articleId="+articleId;
129
		wcFresh(this_);
126 130
		$("body").on("click",".goSpan,.thumbBtn",function(){
127
			location.href="http://a.app.qq.com/o/simple.jsp?pkgname=com.ekexiu.app";
131
			isInstalled(this_,true);
128 132
			$(this).addClass("activeThis");
129 133
		})
130 134
		

+ 6 - 2
e/c.html

@ -14,7 +14,8 @@
14 14
</style>
15 15
<script type="text/javascript" src="../js/jquery-1.11.1.js"></script>
16 16
<script type="text/javascript" src="http://res.wx.qq.com/open/js/jweixin-1.0.0.js"></script>
17
<script type="text/javascript" src="../js/public/shareCom.js"></script>		
17
<script type="text/javascript" src="../js/public/shareCom.js"></script>	
18
<script type="text/javascript" src="../js/public/openApp.js"></script>	
18 19
</head>
19 20
20 21
<body>
@ -122,8 +123,11 @@ $(document).ready(function() {
122 123
		}
123 124
	});
124 125
	
126
	var this_="../html/cmpInforShow.html?cmpId="+orgId;
127
	wcFresh(this_);
125 128
	$("body").on("click",".seeMore,#goCmpBrief",function(){
126
		location.href="http://a.app.qq.com/o/simple.jsp?pkgname=com.ekexiu.app";
129
		isInstalled(this_,true);
130
		$(this).addClass("activeThis");
127 131
	})
128 132
	$('#articelShow,#relateArt').on('click', 'li', function() {
129 133
		var id = this.getAttribute("data-id");

+ 5 - 2
e/d.html

@ -12,7 +12,8 @@
12 12
</style>
13 13
<script type="text/javascript" src="../js/jquery-1.11.1.js"></script>
14 14
<script type="text/javascript" src="http://res.wx.qq.com/open/js/jweixin-1.0.0.js"></script>
15
<script type="text/javascript" src="../js/public/shareCom.js"></script>		
15
<script type="text/javascript" src="../js/public/shareCom.js"></script>	
16
<script type="text/javascript" src="../js/public/openApp.js"></script>	
16 17
</head>
17 18
18 19
<body>
@ -73,8 +74,10 @@ $(document).ready(function() {
73 74
	getDemandinfo();
74 75
	pageViewsVal();
75 76
	
77
	var this_="../html/needShow.html?demanid="+demandId;
78
	wcFresh(this_);
76 79
	$("body").on("click",".attenSpan",function(){
77
		location.href="http://a.app.qq.com/o/simple.jsp?pkgname=com.ekexiu.app";
80
		isInstalled(this_,true);
78 81
		$(this).addClass("activeThis");
79 82
	})
80 83
	$('#personAL').on('click', function() {

+ 7 - 3
e/l.html

@ -14,6 +14,7 @@
14 14
<script type="text/javascript" src="../js/jquery-1.11.1.js"></script>
15 15
<script type="text/javascript" src="http://res.wx.qq.com/open/js/jweixin-1.0.0.js"></script>
16 16
<script type="text/javascript" src="../js/public/shareCom.js"></script>	
17
<script type="text/javascript" src="../js/public/openApp.js"></script>	
17 18
</head>
18 19
19 20
<body>
@ -163,10 +164,13 @@ $(document).ready(function() {
163 164
	$(".commentBlock").on("click","li>.flexCenter",function(){
164 165
		location.href="http://" + window.location.host + "/e/p.html?id=" + $(this).attr("data-id");
165 166
	})
167
	
168
	var this_="../html/paperShow.html?paperId="+paperId;
169
	wcFresh(this_);
166 170
	$("body").on("click",".goSpan,.thumbBtn",function(){
167
			location.href="http://a.app.qq.com/o/simple.jsp?pkgname=com.ekexiu.app";
168
			$(this).addClass("activeThis");
169
		})
171
		isInstalled(this_,true);
172
		$(this).addClass("activeThis");
173
	})
170 174
	paperInterestingList()
171 175
	function paperInterestingList(){
172 176
		$.ajax({

+ 5 - 2
e/p.html

@ -12,7 +12,8 @@
12 12
</style>
13 13
<script type="text/javascript" src="../js/jquery-1.11.1.js"></script>
14 14
<script type="text/javascript" src="http://res.wx.qq.com/open/js/jweixin-1.0.0.js"></script>
15
<script type="text/javascript" src="../js/public/shareCom.js"></script>		
15
<script type="text/javascript" src="../js/public/shareCom.js"></script>	
16
<script type="text/javascript" src="../js/public/openApp.js"></script>	
16 17
</head>
17 18
18 19
<body>
@ -169,8 +170,10 @@ $(document).ready(function() {
169 170
	relevantarticalList();//相关文章
170 171
	likeExperts();//感兴趣专家
171 172
	
173
	var this_="../html/userInforShow.html?proid="+proId;
174
	wcFresh(this_);
172 175
	$("body").on("click",".seeMore,#goCmpBrief",function(){
173
		location.href="http://a.app.qq.com/o/simple.jsp?pkgname=com.ekexiu.app";
176
		isInstalled(this_,true);
174 177
		$(this).addClass("activeThis");
175 178
	})
176 179
	$('#articelShow,#relateArt').on('click', 'li', function() {

+ 6 - 2
e/r.html

@ -14,6 +14,7 @@
14 14
<script type="text/javascript" src="../js/public/swiper.min.js"></script>
15 15
<script type="text/javascript" src="http://res.wx.qq.com/open/js/jweixin-1.0.0.js"></script>
16 16
<script type="text/javascript" src="../js/public/shareCom.js"></script>	
17
<script type="text/javascript" src="../js/public/openApp.js"></script>	
17 18
</head>
18 19
19 20
<body>
@ -68,7 +69,7 @@
68 69
						<div class="showTit">合作备注</div>
69 70
						<div class="showCon" id="remarkContent"></div>
70 71
					</li>
71
					<li>
72
					<li id="articleContent">
72 73
						<div class="showTit">详细介绍</div>
73 74
						<div class="showCon" id="detailDescp"></div>
74 75
					</li>
@ -154,8 +155,11 @@ $(document).ready(function() {
154 155
		}
155 156
			
156 157
	})
158
	
159
	var this_="../html/resourceShow.html?resourceId="+resourceId;
160
	wcFresh(this_);
157 161
	$("body").on("click",".goSpan",function(){
158
		location.href="http://a.app.qq.com/o/simple.jsp?pkgname=com.ekexiu.app";
162
		isInstalled(this_,true);
159 163
		$(this).addClass("activeThis");
160 164
	})
161 165
	function getRecourceMe() {

+ 8 - 4
e/z.html

@ -13,7 +13,8 @@
13 13
</style>
14 14
<script type="text/javascript" src="../js/jquery-1.11.1.js"></script>
15 15
<script type="text/javascript" src="http://res.wx.qq.com/open/js/jweixin-1.0.0.js"></script>
16
<script type="text/javascript" src="../js/public/shareCom.js"></script>		
16
<script type="text/javascript" src="../js/public/shareCom.js"></script>	
17
<script type="text/javascript" src="../js/public/openApp.js"></script>	
17 18
</head>
18 19
19 20
<body>
@ -169,10 +170,13 @@ $(document).ready(function() {
169 170
	$(".commentBlock").on("click","li>.flexCenter",function(){
170 171
		location.href="http://" + window.location.host + "/e/p.html?id=" + $(this).attr("data-id");
171 172
	})
173
	
174
	var this_="../html/patentShow.html?patentId="+patentId;
175
	wcFresh(this_);
172 176
	$("body").on("click",".goSpan,.thumbBtn",function(){
173
			location.href="http://a.app.qq.com/o/simple.jsp?pkgname=com.ekexiu.app";
174
			$(this).addClass("activeThis");
175
		})
177
		isInstalled(this_,true);
178
		$(this).addClass("activeThis");
179
	})
176 180
	paperInterestingList()
177 181
	function paperInterestingList(){
178 182
		$.ajax({

BIN
images/guideJump.png