sckj.html
30.0 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
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
<!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.13rem;
left: 0.25rem;
z-index: 666;
}
.show_pic{
display: none;
position: absolute;
top: 0.84rem;
z-index: 666;
}
/*.margin-lef{*/
/*left: -0.12rem;*/
/*}*/
.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;
}
ul{
display: flex;
flex-wrap: wrap;
list-style: none;
}
.margin-lef1{
left: -0.12rem;
}
.margin-lef2{
left: -1.02rem;
}
.margin-lef3{
left: -1.96rem;
}
.margin-lef4{
left: -2.88rem;
}
.margin-lef5{
left: -3.8rem;
}
.margin-lef6{
left: -4.72rem;
}
.margin-lef7{
left: -5.64rem;
}
/*.color_list_1:nth-child(1){*/
/*background-color: #E5E0D2;*/
/*}*/
/*.color_list_1:nth-child(2){*/
/*background-color: #CFC9BC;*/
/*}*/
/*.color_list_1:nth-child(3){*/
/*background-color: #B2ACA2;*/
/*}*/
/*.color_list_1:nth-child(4){*/
/*background-color: #A1988B;*/
/*}*/
/*.color_list_1:nth-child(5){*/
/*background-color: #8C8578;*/
/*}*/
/*.color_list_1:nth-child(6){*/
/*background-color: #605C58;*/
/*}*/
/*.color_list_1:nth-child(7){*/
/*background-color: #5E5241;*/
/*}*/
.mid_color_content_item_bottom{
margin-top: 0.05rem;
}
.mid_color_content_item{
margin-top: 0.24rem;
}
</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">
<ul>
<li class="pic_list color_list_1">
<span class="iconfont"></span>
<!--出现图片样式-->
<div class="show_pic " >
<div class="pic_size">
<img src="../images/bicon_39@2x.png">
</div>
</div>
</li>
<li class="pic_list color_list_1">
<span class="iconfont"></span>
<!--出现图片样式-->
<div class="show_pic " >
<div class="pic_size">
<img src="../images/bicon_39@2x.png">
</div>
</div>
</li>
<li class="pic_list color_list_1">
<span class="iconfont"></span>
<!--出现图片样式-->
<div class="show_pic " >
<div class="pic_size">
<img src="../images/bicon_39@2x.png">
</div>
</div>
</li>
<li class="pic_list color_list_1">
<span class="iconfont"></span>
<!--出现图片样式-->
<div class="show_pic " >
<div class="pic_size">
<img src="../images/bicon_39@2x.png">
</div>
</div>
</li>
<li class="pic_list color_list_1">
<span class="iconfont"></span>
<!--出现图片样式-->
<div class="show_pic " >
<div class="pic_size">
<img src="../images/bicon_39@2x.png">
</div>
</div>
</li>
<li class="pic_list color_list_1">
<span class="iconfont"></span>
<!--出现图片样式-->
<div class="show_pic " >
<div class="pic_size">
<img src="../images/bicon_39@2x.png">
</div>
</div>
</li>
<li class="pic_list color_list_1">
<span class="iconfont"></span>
<!--出现图片样式-->
<div class="show_pic " >
<div class="pic_size">
<img src="../images/bicon_39@2x.png">
</div>
</div>
</li>
<li class="pic_list color_list_1">
<span class="iconfont"></span>
<!--出现图片样式-->
<div class="show_pic " >
<div class="pic_size">
<img src="../images/bicon_39@2x.png">
</div>
</div>
</li>
<li class="pic_list color_list_1">
<span class="iconfont"></span>
<!--出现图片样式-->
<div class="show_pic " >
<div class="pic_size">
<img src="../images/bicon_39@2x.png">
</div>
</div>
</li>
<li class="pic_list color_list_1">
<span class="iconfont"></span>
<!--出现图片样式-->
<div class="show_pic " >
<div class="pic_size">
<img src="../images/bicon_39@2x.png">
</div>
</div>
</li>
<li class="pic_list color_list_1">
<span class="iconfont"></span>
<!--出现图片样式-->
<div class="show_pic " >
<div class="pic_size">
<img src="../images/bicon_39@2x.png">
</div>
</div>
</li>
<li class="pic_list color_list_1">
<span class="iconfont"></span>
<!--出现图片样式-->
<div class="show_pic " >
<div class="pic_size">
<img src="../images/bicon_39@2x.png">
</div>
</div>
</li>
<li class="pic_list color_list_1">
<span class="iconfont"></span>
<!--出现图片样式-->
<div class="show_pic " >
<div class="pic_size">
<img src="../images/bicon_39@2x.png">
</div>
</div>
</li>
<li class="pic_list color_list_1">
<span class="iconfont"></span>
<!--出现图片样式-->
<div class="show_pic " >
<div class="pic_size">
<img src="../images/bicon_39@2x.png">
</div>
</div>
</li>
<li class="pic_list color_list_1">
<span class="iconfont"></span>
<!--出现图片样式-->
<div class="show_pic " >
<div class="pic_size">
<img src="../images/bicon_39@2x.png">
</div>
</div>
</li>
</ul>
</div>
</div>
<!--色彩搭配-->
<p class="mid_big_text"> 色彩搭配 </p>
<p class="mid_small_text"> COLOR MATCHING </p>
<!--色彩搭配模块2 6个块-->
<div class="mid_color_box_big">
<div class="mid_color_box">
<div class="mid_color_box_left">
<div class="mid_color_big">
搭配色块
</div>
<!--颜色简称 6个盒子的类-->
<div class="mid_color_items">
<div class="mid_color_content_item">
<!--颜色盒-->
<div class="mid_color_content_item_top center_color_1">
</div>
<!--介绍字体-->
<div class="mid_color_content_item_bottom">
BN7007-4
</div>
</div>
<div class="mid_color_content_item">
<!--颜色盒-->
<div class="mid_color_content_item_top center_color_1">
</div>
<!--介绍字体-->
<div class="mid_color_content_item_bottom">
BN7007-4
</div>
</div>
<div class="mid_color_content_item">
<!--颜色盒-->
<div class="mid_color_content_item_top center_color_1">
</div>
<!--介绍字体-->
<div class="mid_color_content_item_bottom">
BN7007-4
</div>
</div>
<div class="mid_color_content_item">
<!--颜色盒-->
<div class="mid_color_content_item_top center_color_1">
</div>
<!--介绍字体-->
<div class="mid_color_content_item_bottom">
BN7007-4
</div>
</div>
<div class="mid_color_content_item">
<!--颜色盒-->
<div class="mid_color_content_item_top center_color_1">
</div>
<!--介绍字体-->
<div class="mid_color_content_item_bottom">
BN7007-4
</div>
</div>
<div class="mid_color_content_item">
<!--颜色盒-->
<div class="mid_color_content_item_top center_color_1">
</div>
<!--介绍字体-->
<div class="mid_color_content_item_bottom">
BN7007-4
</div>
</div>
</div>
</div>
<div class="mid_color_box_right">
<img src="../images/bicon_43@2x.png">
</div>
</div>
</div>
<!--色彩搭配模块1 3个块-->
<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 () {
window.event.stopPropagation()
var b= $(this).children('.iconfont');
var showPic = $('show_pic')
if (b.hasClass('icon-shangjiantou')){
b.removeClass('icon-shangjiantou')
$(this).children(".show_pic").css("display","none").siblings().children(".show_pic").css("display","none")
//$('.show_pic').css("display","none")
}else{
b.addClass('icon-shangjiantou').parents(".pic_list").siblings().children(".iconfont").removeClass('icon-shangjiantou')
//$('.show_pic').css("display","flex")
$(this).children(".show_pic").css("display","flex")
$(this).siblings().children(".show_pic").hide()
}
})
//点击其他地方隐藏时隐藏图片
// $('.show_pic').blur(function () {
// $(this).hide();
// console.log(1111)
// })
$('body').click(function () {
$('.show_pic').hide();
$('.iconfont').removeClass('icon-shangjiantou');
})
//点击图片距离循环
var li=$(".pic_list");
console.log(li)
for(var i=0;i<li.length;i++){
if(i%7==0){
console.log("00")
$(li[i]).children(".show_pic").addClass("margin-lef1")
}else if(i%7==6){
console.log("11")
$(li[i]).children(".show_pic").addClass("margin-lef7")
}else if(i%7==5){
$(li[i]).children(".show_pic").addClass("margin-lef6")
}else if(i%7==4){
$(li[i]).children(".show_pic").addClass("margin-lef5")
}else if(i%7==3){
$(li[i]).children(".show_pic").addClass("margin-lef4")
}else if(i%7==2){
$(li[i]).children(".show_pic").addClass("margin-lef3")
}else if(i%7==1){
$(li[i]).children(".show_pic").addClass("margin-lef2")
}
}
$(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>