sckj.html
18.9 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
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
<!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_pn90aqkgbhr.css">
<link rel="stylesheet" type="text/css" href="../icon/iconfont.css">
<link rel="stylesheet" type="text/css" href="../css/sckj.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.6rem;
margin-left: 0.3rem;
}
.icon-guanbi{
margin-top: 0.06rem;
font-size: 0.5rem;
margin-left: 0.3rem;
}
.icon-shangjiantou{
color: #ffffff;
position: absolute;
bottom: -0.12rem;
left: 0.25rem;
}
.show_pic{
display: none;
}
.color:nth-child(1){
background-color: #C20D00;
}
.color:nth-child(2){
background-color: #D95100;
}
.color:nth-child(3){
background-color: #E49D00;
}
.color:nth-child(4){
background-color: #00B507;
}
.color:nth-child(5){
background-color: #0073C0;
}
.color:nth-child(6){
background-color: #C20D00;
}
</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"> COLOR SPACE </p>
<!--搜索-->
<div class="mid_search">
<!--搜索图标-->
<div class="mid_search_icon">
<img src="../images/bicon_27@2x.png">
</div>
<!--搜索内容-->
<input type="text" placeholder="请输入色彩名或色彩编号">
<!--搜索按钮-->
<div class="mid_search_button">
搜索
</div>
</div>
<!--盒模型内容-->
<div class="mid_box">
<!--滑动效果-->
<div class="mid_top">
<div class="mid_top_item color"></div>
<!--选中时变成大图片-->
<div class="mid_top_item item_big color">
<div class="item_picth">
<img src="../images/bicon_42@2x.png">
</div>
</div>
<div class="mid_top_item color"></div>
<div class="mid_top_item color"></div>
<div class="mid_top_item color"></div>
<div class="mid_top_item color"></div>
</div>
<!--图片列表-->
<div class="mid_list">
<div class="pic_list color_list_1">
<div class="iconfont"></div>
</div>
<div class="pic_list color_list_2">
<div class="iconfont"></div>
</div>
<div class="pic_list color_list_3">
<div class="iconfont"></div>
</div>
<div class="pic_list color_list_4">
<div class="iconfont"></div>
</div>
<div class="pic_list color_list_5">
<div class="iconfont"></div>
</div>
<div class="pic_list color_list_6">
<div class="iconfont"></div>
</div>
<div class="pic_list color_list_7 ">
<div class="iconfont ">
</div>
</div>
<!--出现图片样式-->
<div class="show_pic" >
<div class="pic_size">
<img src="../images/bicon_39@2x.png">
</div>
<div class="pic_text">
查看详情>
</div>
</div>
</div>
</div>
<!--色彩搭配-->
<p class="mid_big_text"> 色彩搭配 </p>
<p class="mid_small_text"> COLOR MATCHING </p>
<!--色彩搭配模块-->
<div class="mid_color_box_big">
<div class="mid_color_box">
<div class="mid_color_box_left">
<div class="mid_color_big">
搭配色块
</div>
<!--颜色简称-->
<div class="mid_center">
<div class="center_left">
BN7007-4
</div>
<div class="center_right center_color_1">
</div>
</div>
<div class="mid_center">
<div class="center_left">
BN7007-4
</div>
<div class="center_right center_color_2">
</div>
</div>
<div class="mid_center">
<div class="center_left">
BN7007-4
</div>
<div class="center_right center_color_3">
</div>
</div>
</div>
<div class="mid_color_box_right">
<img src="../images/bicon_43@2x.png">
</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 class="footer_menu">
<div class="footer_item" onclick="btn_sckj()">
<div class="footer_item_icon icon_select"></div>
<div class="footer_item_text">在线选色</div>
</div>
<div class="footer_item" onclick="btn_cpzx()">
<div class="footer_item_icon icon_product"></div>
<div class="footer_item_text">产品中心</div>
</div>
<div class="footer_item" onclick="btn_khfw()">
<div class="footer_item_icon icon_inquire"></div>
<div class="footer_item_text">防伪查询</div>
</div>
<div class="footer_item">
<div class="footer_item_icon icon_join icon_big" onclick="btn_jm()"></div>
<div class="footer_item_text">加盟可耐美</div>
</div>
</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"
}
//点击色彩变大功能
$('.mid_top').on('click','.mid_top_item',function () {
var a = $(this);
var html = "";
html+=' <div class="item_picth">\n' +
' <img src="../images/bicon_42@2x.png">\n' +
' </div>'
a.addClass("item_big").siblings(".mid_top_item").removeClass("item_big").html("")
a.html(html)
})
//点击时出现下三角
$('.mid_list').on('click','.pic_list',function () {
var b= $(this).children('.iconfont');
var showPic = $('show_pic')
if (b.hasClass('icon-shangjiantou')){
b.removeClass('icon-shangjiantou')
$('.show_pic').css("display","none")
}else{
b.addClass('icon-shangjiantou').parents(".pic_list").siblings().children(".iconfont").removeClass('icon-shangjiantou')
// $('.show_pic').css("display","flex")
$('.show_pic').css({
display:'flex',
position:'absolute',
top:'1rem',
})
}
})
//点击方框时出现图片
// $('.pic_list').click(function () {
// // alert(1)
// if ($('.show_pic').css("display")=='none' ) {
// $('.show_pic').css("display","flex")
// }else{
// $('.show_pic').css("display","none")
// }
// })
$(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_color_box">\n' +
' <div class="mid_color_box_left">\n' +
' <div class="mid_color_big">\n' +
' 搭配色块\n' +
' </div>\n' +
' <!--颜色简称-->\n' +
' <div class="mid_center">\n' +
' <div class="center_left">\n' +
' BN7007-4\n' +
' </div>\n' +
' <div class="center_right center_color_1">\n' +
'\n' +
' </div>\n' +
' </div>\n' +
' <div class="mid_center">\n' +
' <div class="center_left">\n' +
' BN7007-4\n' +
' </div>\n' +
' <div class="center_right center_color_2">\n' +
'\n' +
' </div>\n' +
' </div>\n' +
' <div class="mid_center">\n' +
' <div class="center_left">\n' +
' BN7007-4\n' +
' </div>\n' +
' <div class="center_right center_color_3">\n' +
'\n' +
' </div>\n' +
' </div>\n' +
' </div>\n' +
' <div class="mid_color_box_right">\n' +
' <img src="../images/bicon_43@2x.png">\n' +
' </div>\n' +
' </div>'
}
// 如果没有数据
}else{
// 锁定
me.lock();
// 无数据
me.noData();
}
// 为了测试,延迟1秒加载
setTimeout(function(){
// 插入数据到页面,放到最后面
$('.mid_color_box_big').append(result);
// 每次数据插入,必须重置
me.resetload();
},500);
},
error: function(xhr, type){
alert('Ajax error!');
// 即使加载出错,也得重置
me.resetload();
}
});
},
threshold : 50
});
})
</script>
</body>
</html>