-
Notifications
You must be signed in to change notification settings - Fork 0
/
town_recommend_m.html
185 lines (146 loc) · 5.78 KB
/
town_recommend_m.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>小镇推荐-触屏版</title>
<meta name="viewport" content="width=device-width,height=device-height,initial-scale=1.0,maximum-scale=1.0,minimum-scale=1.0,user-scalable=no">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<meta name="format-detection" content="telephone=no">
<meta name="keywords" content="">
<meta name="description" content="">
<base target="_blank">
<link href="css/town_recommend_m.css" rel="stylesheet">
<!--[if lt IE 9]>
<script src="js/html5.js"></script>
<![endif]-->
</head>
<body>
<section class="top_banner"><img src="images/town_recommend_m/banner.jpg"></section>
<section class="con">
<div class="conbt"><h1>小镇推荐精品<em></em></h1></div>
<article class="conbox">
<ul>
<li>
<div class="pro_pic"><img src="images/town_recommend_m/pro.jpg"></div>
<div class="pro_info">
<p class="pro_title">冰种晴水金扣站佛挂件</p>
<p class="pro_price">¥28880元</p>
<p class="pro_store"><span class="heart"></span>2000</p>
<p class="pro_buy"><a>立刻抢购</a></p>
</div>
</li>
<li>
<div class="pro_pic"><img src="images/town_recommend_m/pro.jpg"></div>
<div class="pro_info">
<p class="pro_title">冰种晴水金扣站佛挂件</p>
<p class="pro_price">¥28880元</p>
<p class="pro_store"><span class="heart"></span>2000</p>
<p class="pro_buy"><a>立刻抢购</a></p>
</div>
</li>
<li>
<div class="pro_pic"><img src="images/town_recommend_m/pro.jpg"></div>
<div class="pro_info">
<p class="pro_title">冰种晴水金扣站佛挂件</p>
<p class="pro_price">¥28880元</p>
<p class="pro_store"><span class="heart"></span>2000</p>
<p class="pro_buy"><a>立刻抢购</a></p>
</div>
</li>
<li>
<div class="pro_pic"><img src="images/town_recommend_m/pro.jpg"></div>
<div class="pro_info">
<p class="pro_title">冰种晴水金扣站佛挂件</p>
<p class="pro_price">¥28880元</p>
<p class="pro_store"><span class="heart"></span>2000</p>
<p class="pro_buy"><a>立刻抢购</a></p>
</div>
</li>
<li>
<div class="pro_pic"><img src="images/town_recommend_m/pro.jpg"></div>
<div class="pro_info">
<p class="pro_title">冰种晴水金扣站佛挂件</p>
<p class="pro_price">¥28880元</p>
<p class="pro_store"><span class="heart"></span>2000</p>
<p class="pro_buy"><a>立刻抢购</a></p>
</div>
</li>
</ul>
</article>
</section>
<div class="shareto" onClick="_system._guide(true)">分享</div>
<!--footer start-->
<!--footer end-->
<!--收藏-->
<script src="js/jquery-1.11.2.min.js"></script>
<script>
;(function(){
$('.pro_store').click(function(){
$(this).find($('.heart')).toggleClass('active');
})
})()
</script>
<!--返回顶部-->
<p id="back-to-top"><a href="#top"><span>返回顶部</span></a></p>
<script>
$(function(){
//当滚动条的位置处于距顶部200像素以下时,跳转链接出现,否则消失
$(function () {
$(window).scroll(function(){
if ($(window).scrollTop()>200){
$("#back-to-top").fadeIn(100);
}
else
{
$("#back-to-top").fadeOut(100);
}
});
//当点击跳转链接后,回到页面顶部位置
$("#back-to-top").click(function(){
$('body,html').animate({scrollTop:0},100);
return false;
});
});
});
</script>
<!--分享遮罩-->
<script type="text/javascript">
var _system={
$:function(id){return document.getElementById(id);},
_client:function(){
return {w:document.documentElement.scrollWidth,h:document.documentElement.scrollHeight,bw:document.documentElement.clientWidth,bh:document.documentElement.clientHeight};
},
_scroll:function(){
return {x:document.documentElement.scrollLeft?document.documentElement.scrollLeft:document.body.scrollLeft,y:document.documentElement.scrollTop?document.documentElement.scrollTop:document.body.scrollTop};
},
_cover:function(show){
if(show){
this.$("cover").style.display="block";
this.$("cover").style.width=(this._client().bw>this._client().w?this._client().bw:this._client().w)+"px";
this.$("cover").style.height=(this._client().bh>this._client().h?this._client().bh:this._client().h)+"px";
}else{
this.$("cover").style.display="none";
}
},
_guide:function(click){
this._cover(true);
this.$("guide").style.display="block";
this.$("guide").style.top=(_system._scroll().y+5)+"px";
window.onresize=function(){_system._cover(true);_system.$("guide").style.top=(_system._scroll().y+5)+"px";};
if(click){_system.$("cover").onclick=function(){
_system._cover();
_system.$("guide").style.display="none";
_system.$("cover").onclick=null;
window.onresize=null;
};}
},
_zero:function(n){
return n<0?0:n;
}
}
</script>
<div id="cover"></div>
<div id="guide"><img src="images/town_recommend_m/shareto.png" width="278" height="198"></div>
</body>
</html>