jpal.html
9.7 KB
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
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>精品案例</title>
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="maximum-scale=1.0, minimum-scale=1.0, user-scalable=0, initial-scale=1.0, width=device-width" />
<link rel="stylesheet" type="text/css" href="../css/common.css">
<link rel="stylesheet" type="text/css" href="https://at.alicdn.com/t/font_1011505_vdlnckj4lm.css">
<link rel="stylesheet" type="text/css" href="../icon/iconfont.css">
<link rel="stylesheet" type="text/css" href="../css/jpal.css">
<link rel="stylesheet" type="text/css" href="../css/dropload.css">
<script src="../js/base.js"></script>
<script src="../js/jquery.min.js"></script>
<style>
.menu_default{
position: fixed;
top: 0.88rem;
left: 0;
z-index: 10;
background: #fff;
}
.menu_item{
display: flex;
justify-content: space-between;
height: 0.79rem;
align-items: center;
border-bottom: 1px solid #e6e6e6;
margin: 0 0.32rem;
}
.menu_item:first-child{
margin-top: 0.24rem;
}
.menu_item:last-child{
border: none;
}
.menu_text{
font-size: 0.26rem;
margin-left: 0.14rem;
}
.icon-jinru{
color: #666666;
}
.icon-caidan{
font-size: 0.8rem;
margin-left: 0.3rem;
}
.icon-guanbi{
margin-top: 0.06rem;
font-size: 0.6rem;
margin-left: 0.3rem;
}
</style>
</head>
<body>
<div class="main">
<div class="container">
<!--头部-->
<div class="header">
<!--左 菜单条目-->
<div class="iconfont icon-caidan">
</div>
<!--中 主页面图标-->
<div class="header_mid">
<img src="../images/LOGO.png" >
</div>
</div>
<!--左边菜单栏时出现列表-->
<div class="container menu_default " style="display: none">
<!--首页-->
<div class="menu_item" onclick="btn_index()">
<div class="menu_text" >首页</div>
<div class="iconfont icon-jinru"></div>
</div>
<div class="menu_item" onclick="btn_company()">
<div class="menu_text" >公司简介</div>
<div class="iconfont icon-jinru"></div>
</div>
<div class="menu_item" onclick="btn_jm()">
<div class="menu_text">加盟可耐美</div>
<div class="iconfont icon-jinru"></div>
</div>
<div class="menu_item" onclick="btn_cpzx()">
<div class="menu_text" >产品中心</div>
<div class="iconfont icon-jinru"></div>
</div>
<div class="menu_item" onclick="btn_sckj()">
<div class="menu_text">色彩空间</div>
<div class="iconfont icon-jinru"></div>
</div>
<div class="menu_item" onclick="btn_qqrz()">
<div class="menu_text">全球认证</div>
<div class="iconfont icon-jinru"></div>
</div>
<div class="menu_item" onclick="btn_khfw()">
<div class="menu_text">客户服务</div>
<div class="iconfont icon-jinru"></div>
</div>
<div class="menu_item" onclick="btn_lxwm()">
<div class="menu_text" >联系我们</div>
<div class="iconfont icon-jinru"></div>
</div>
</div>
<!-------------图片------------->
<div class="banner">
<img src="../images/bicon_28@2x.png">
</div>
<!--全球认证-->
<div class="mid">
<p class="mid_big_text"> 精品案例 </p>
<p class="mid_small_text"> BOUTIQUE CASE </p>
<!--案例盒子-->
<div class="mid_box_big" >
<div class="mid_box" onclick="btn_alxq()">
<div class="mid_box_pic">
<img src="../images/bicon_22@2x.png">
</div>
<div class="mid_box_text">
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
</div>
</div>
</div>
<!--加载更多-->
<!--<div class="mid_load">-->
<!--加载更多-->
<!--</div>-->
</div>
<!--底部介绍-->
<div class="bottom">
<p class="bottom_addr">
公司地址:北京市大兴区欣雅街兴创国际中心3A-1501室
</p>
<p class="bottom_tel">
电话 : 010-64482186
</p>
<p class="bottom_fax">
传真:010-6448-2226
</p>
<p class="bottom_email">
公司邮箱:beijing@germanyclime.cn
</p>
<p class="bottom_copyright">Copyright © 2015 All Rights Reserved 可耐美 版权所有</p>
</div>
<!--底部菜单栏-->
</div>
</div>
<script src="../js/dropload.min.js"></script>
<script>
function btn_index() {
window.location.href = "index.html"
}
function btn_company(){
window.location.href = "gsjj.html"
}
function btn_jm(){
window.location.href = "jm_3.html"
}
function btn_cpzx(){
window.location.href = "cpzx_2.html"
}
function btn_sckj(){
window.location.href = "sckj.html"
}
function btn_qqrz(){
window.location.href = "qqrz.html"
}
function btn_khfw(){
window.location.href = "fwcx_4.html"
}
function btn_lxwm(){
window.location.href = "lxwm_5.html"
}
//跳转案例详情
function btn_alxq(){
window.location.href = 'alxq.html';
}
//菜单功能
$(document).ready(function () {
$(".icon-caidan").click(function () {
$(".menu_default").slideToggle();
if($(this).hasClass("icon-caidan")){
$(this).addClass("icon-guanbi");
$(this).removeClass("icon-caidan");
$("body").css("overflow","hidden");
}else{
$(this).removeClass("icon-guanbi");
$(this).addClass("icon-caidan");
$("body").css("overflow","auto");
}
// $(".icon-guanbi").css("display","none");
})
// 页数
var page = 0;
// 每页展示10个
var size = 3;
$('.mid').dropload({
scrollArea : window,
domUp : {
domClass : 'dropload-up',
domRefresh : '<div class="dropload-refresh">↓下拉刷新</div>',
domUpdate : '<div class="dropload-update">↑释放更新</div>',
domLoad : '<div class="dropload-load"><span class="loading"></span>加载中...</div>'
},
domDown : {
domClass : 'dropload-down',
domRefresh : '<div class="dropload-refresh">↑上拉加载更多</div>',
domLoad : '<div class="dropload-load"><span class="loading"></span>加载中...</div>',
domNoData : '<div class="dropload-noData">暂无数据</div>'
},
loadDownFn : function(me){
page++;
// 拼接HTML
var result = '';
var s = "";
var show="";
var list_compressor="";
var list_answer="";
$.ajax({
type: 'GET',
url: 'http://ons.me/tools/dropload/json.php?page='+page+'&size='+size,
dataType: 'json',
success: function(data){
console.log(data);
var arrLen = data.length;
if(arrLen > 0){
for(var i=0; i<arrLen; i++){
result +='<div class="mid_box" onclick="btn_alxq()">\n' +
' <div class="mid_box_pic">\n' +
' <img src="../images/bicon_22@2x.png">\n' +
' </div>\n' +
' <div class="mid_box_text">\n' +
' XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX\n' +
' </div>\n' +
' </div>'
}
// 如果没有数据
}else{
// 锁定
me.lock();
// 无数据
me.noData();
}
// 为了测试,延迟1秒加载
setTimeout(function(){
// 插入数据到页面,放到最后面
$('.mid_box_big').append(result);
// 每次数据插入,必须重置
me.resetload();
},500);
},
error: function(xhr, type){
alert('Ajax error!');
// 即使加载出错,也得重置
me.resetload();
}
});
},
threshold : 50
});
})
</script>
</body>
</html>