index.html 17.8 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
<!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="../icon/iconfont.css">
    <link rel="stylesheet" type="text/css" href="../css/index.css">
    <link rel="stylesheet" href="../css/swiper.css">
    <link rel="stylesheet" type="text/css" href="https://at.alicdn.com/t/font_1011505_vdlnckj4lm.css">
    <script src="../js/base.js"></script>
    <script src="../js/jquery-2.1.0.js"></script>

    <style>
        .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 menu">
                </div>
                <!--关闭菜单图标-->
                <!--<div class="iconfont icon-guanbi" ></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">
                <!-- Swiper -->
                <div class="swiper-container">
                    <div class="swiper-wrapper">
                        <div class="swiper-slide">
                            <img src="../images/bicon_01@2x.png">
                        </div>
                        <div class="swiper-slide">
                            <img src="../images/bicon_23@2x.png">
                        </div>
                        <div class="swiper-slide">
                            <img src="../images/bicon_43@2x.png">
                        </div>

                    </div>
                    <!-- Add Pagination -->
                    <div class="swiper-pagination"></div>
                </div>

            </div>
            <!--图片展示-->
            <div class="pic1">
                <div class="pic1_dynamic">
                    源于德国
                </div>
                <div class="pic1_subtitle">
                    FORM GERMANY
                </div>
                <div class="pic1_mid">

                </div>
            </div>
            <!--最新动态-->
            <div class="pic2">
                <div class="pic2_dynamic">
                    最新动态
                </div>
                <div class="pic2_subtitle">
                    NEWS
                </div>



                <!--动态消息列表-->
                <div class="pic2_big_box">
                    <div class="pic2_box" onclick="btn_zxdt()">
                        <div class="pic2_box_left">
                            <img src="../images/bicon_03@2x.png">
                        </div>
                        <div class="pic2_box_right">
                            <div class="pic2_box_right_top">
                                品质优越,更广泛的满足高端人群的需求
                                品质优越,更广泛的满足高端人群的需求
                            </div>
                            <div class="pic2_box_right_bottom">
                                2018-11-01
                            </div>
                        </div>
                    </div>
                    <div class="pic2_box" onclick="btn_zxdt()">
                        <div class="pic2_box_left">
                            <img src="../images/bicon_03@2x.png">
                        </div>
                        <div class="pic2_box_right">
                            <div class="pic2_box_right_top">
                                品质优越,更广泛的满足高端人群的需求
                                品质优越,更广泛的满足高端人群的需求
                            </div>
                            <div class="pic2_box_right_bottom">
                                2018-11-01
                            </div>
                        </div>
                    </div>
                </div>



                <!--查看更多-->
                <div class="pic2_viewMore" onclick="btn_zxdt()">
                    查看更多+
                </div>


            </div>
            <!--四小块-->
            <div class="pic3">
                <!--在线选色-->
                <div class="pic3_block select_color">
                    <!--pic3盒子-->
                    <div class="pic3_block_box">
                        <!--图片-->
                        <div class="pic3_pic_box">
                            <div class="pic3_pic">
                                <img src="../images/bicon_04@2x.png">
                            </div>
                        </div>
                        <!--大标题-->
                        <div class="pic3_big_text">
                            在线选色
                        </div>
                        <!--小标题-->
                        <div class="pic3_small_text">
                            进入某个空间,我们最先被触发得感知是—色彩
                            进入某个空间,我们最先被触发得感知是—色彩
                        </div>
                        <!--查看更多-->
                        <div class="pic3_viewMore">
                            查看更多
                        </div>

                    </div>
                </div>
                <!--产品中心-->
                <div class="pic3_block product_color">
                    <!--pic3盒子-->
                    <div class="pic3_block_box">
                        <!--图片-->
                        <div class="pic3_pic_box">
                            <div class="pic3_pic product_pic">
                            <img src="../images/bicon_05@2x.png">
                            </div>
                        </div>
                        <!--大标题-->
                        <div class="pic3_big_text">
                            在线选色
                        </div>
                        <!--小标题-->
                        <div class="pic3_small_text">
                            进入某个空间,我们最先被触发得感知是—色彩
                        </div>
                        <!--查看更多-->
                        <div class="pic3_viewMore">
                            查看更多
                        </div>

                    </div>
                </div>
                <!--加盟可耐美-->
                <div class="pic3_block join_color">
                    <!--pic3盒子-->
                    <div class="pic3_block_box">
                        <!--图片-->
                        <div class="pic3_pic_box">
                            <div class="pic3_pic join_pic">
                                <img src="../images/bicon_06@2x.png">
                            </div>
                        </div>
                        <!--大标题-->
                        <div class="pic3_big_text">
                            在线选色
                        </div>
                        <!--小标题-->
                        <div class="pic3_small_text">
                            进入某个空间,我们最先被触发得感知是—色彩
                        </div>
                        <!--查看更多-->
                        <div class="pic3_viewMore">
                            查看更多
                        </div>

                    </div>
                </div>
                <!--防伪查询-->
                <div class="pic3_block inquire_color">
                    <!--pic3盒子-->
                    <div class="pic3_block_box">
                        <!--图片-->
                        <div class="pic3_pic_box">
                            <div class="pic3_pic inquire_pic">
                                <img src="../images/bicon_07@2x.png">
                            </div>
                        </div>
                        <!--大标题-->
                        <div class="pic3_big_text">
                            在线选色
                        </div>
                        <!--小标题-->
                        <div class="pic3_small_text">
                            进入某个空间,我们最先被触发得感知是—色彩
                        </div>
                        <!--查看更多-->
                        <div class="pic3_viewMore">
                            查看更多
                        </div>

                    </div>
                </div>
            </div>
            <!--产品认证-->
            <div class="pic4">
                <div class="pic4_dynamic">
                    可耐美产品认证
                </div>
                <div class="pic4_subtitle">
                    CERTIFICATION COSMETIC PRODUCTS
                </div>
                <!--图片轮播-->
                <div class="pic4_banner">
                    <div class="pic4_banner_mid">
                        <img src="../images/bicon_08@2x.png">
                    </div>
                    <div class="pic4_banner_left">
                        <!--<img src="../images/bicon_09@2x.png">-->
                    </div>
                    <div class="pic4_banner_right">

                    </div>

                </div>
                <!--查看更多-->
                <div class="pic4_viewMore">
                    查看更多+
                </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>

</body>

<!-- Swiper JS -->
<script src="../js/swiper.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_zxdt(){
        window.location.href = 'zxdt.html';
    }

    //---------------------加载更多_竖轴-----------------------

    $(".pic2_viewMore").click(function(){
        btn_onclik();
    })
    function btn_onclik() {
        var page = 0;
        // 每页展示10个
        var size = 3;

        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="pic2_box" onclick="btn_zxdt()">\n' +
                            '                            <div class="pic2_box_left">\n' +
                            '                                <img src="../images/bicon_03@2x.png">\n' +
                            '                            </div>\n' +
                            '                            <div class="pic2_box_right">\n' +
                            '                                <div class="pic2_box_right_top">\n' +
                            '                                    品质优越,更广泛的满足高端人群的需求\n' +
                            '                                    品质优越,更广泛的满足高端人群的需求\n' +
                            '                                </div>\n' +
                            '                                <div class="pic2_box_right_bottom">\n' +
                            '                                    2018-11-01\n' +
                            '                                </div>\n' +
                            '                            </div>\n' +
                            '                        </div>'


                    }
                    // 如果没有数据
                }else{
                    // 锁定
                    me.lock();
                    // 无数据
                    me.noData();
                }
                // 为了测试,延迟1秒加载
                setTimeout(function(){
                    // 插入数据到页面,放到最后面
                    $('.pic2_big_box').append(result);
                    // 每次数据插入,必须重置
                    me.resetload();
                },500);
            },
            error: function(xhr, type){
                alert('Ajax error!');
                // 即使加载出错,也得重置
                me.resetload();
            }
        });
    }

    //主菜单功能实现
    $(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");
            }

        })

    })


    var swiper = new Swiper('.swiper-container',{
        // observer:true,           //修改swiper自己或子元素时,自动初始化swiper
        // observeParents:true,       //修改swiper的父元素时,自动初始化swiper
        // zoom: true,
        loop: true, // 循环模式选项
        // autoplay: {
        //     disableOnInteraction: false,
        // },
        pagination: {
            el: '.swiper-pagination',
        },
    });
</script>
</html>