index.html 4.4 KB
<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>捷敏--首页</title>
    <link rel="stylesheet" href="__TMPL__/public/assets/css/swiper.min.css">
    <link rel="stylesheet" href="__TMPL__/public/assets/css/base.css">
</head>
<body>
    <div class="index_box">
      <include file="public@nav"/>
        <!--banner-->
        <div class="banner swiper-container">
            <div class="swiper-wrapper">
                <volist name="lunbo" id="vo">
                    <img class="swiper-slide" src="{:cmf_get_image_url($vo.image)}" alt="">
                </volist>
            </div>
            <div class="swiper-pagination"></div>
            <div class="swiper-button-next"></div>
            <div class="swiper-button-prev"></div>
        </div>
        <!--主题内容-->
        <div class="main1">
            <div class="main1_content">
                <ul>

                    <volist name="lunbo1" id="vo">
                        <li>
                            <a href="{$vo.url}">
                                <img src="{:cmf_get_image_url($vo.image)}" alt="">
                                <!-- <div class="main1_box">
                                    <img src="__TMPL__/public/assets/images/aicon07.png" alt="">
                                    <p>
                                        {$vo.title}
                                    </p>
                                </div> -->
                            </a>
                        </li>
                    </volist>

                </ul>
            </div>
        </div>
        <div class="main1 main2">
            <div class="main1_content">
                <ul>
                    <volist name="lunbo2" id="vo">
                        <li>
                            <a href="{$vo.url}">
                                <img src="{:cmf_get_image_url($vo.image)}" alt="">
                                <div class="main1_box">
                                    <img src="__TMPL__/public/assets/images/aicon07.png" alt="">
                                    <p>
                                        {$vo.title}
                                    </p>
                                </div>
                            </a>
                        </li>
                    </volist>
                </ul>
            </div>
        </div>
        <div class="main1">
            <div class="main1_content">
                <ul>

                    <volist name="lunbo3" id="vo">
                        <li>
                            <a href="{$vo.url}">
                                <img src="{:cmf_get_image_url($vo.image)}" alt="">
                                <div class="main1_box">
                                    <img src="__TMPL__/public/assets/images/aicon07.png" alt="">
                                    <p>
                                        {$vo.title}
                                    </p>
                                </div>
                            </a>
                        </li>
                    </volist>

                </ul>
            </div>
        </div>
        <!--底部-->
        <include file="public@footer" />
    </div>
    <script src="__TMPL__/public/assets/js/jquery.js"></script>
    <script type="text/javascript" src="__TMPL__/public/assets/js/swiper.min.js"></script>
    <script>

        $('.header2_box>ul>li').each(function () {
            $(this).mouseover(function () {
                $(this).children('.header2_box2').show();
            }).mouseout(function () {
                $(this).children('.header2_box2').hide();
            })
        });
        //swiper 轮播图
        var swiper = new Swiper('.swiper-container', {
            slidesPerView: 1,
            spaceBetween: 20,
            autoplay:{
                delay:2500,
                disableOnInteraction: false,
            },
            keyboard: {
                enabled: true,
            },
            pagination: {
                el: '.swiper-pagination',
                clickable: true,
            },
            navigation: {
                nextEl: '.swiper-button-next',
                prevEl: '.swiper-button-prev',
            },
        });

    </script>
</body>
</html>