index.html 5.9 KB
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
    <link rel="stylesheet" href="https://at.alicdn.com/t/font_944516_li6nc21b88.css">
    <title>首页</title>
    <link rel="stylesheet" href="__TMPL__/public/assets/css/bootstrap.min.css">
    <link rel="stylesheet" href="__TMPL__/public/assets/css/common.css">

    <style>
        body, html {
            height: 100%;
            overflow: hidden;
        }
        #myCarousel {
            width: 100%;
            height: 100%;

        }

        .carousel-inner {
            width: 100%;
            height: 100%;
        }

        #myCarousel .item {
            width: 100%;
            height: 100%;
        }

        #myCarousel .item img {
            width: 100%;
            height: 100%;
        }
    </style>
</head>
<body>

<div id="myCarousel" class="carousel slide" data-ride="carousel" data-interval="2000">
    <nav id="common-nav" class="navbar navbar-inverse navbar-fixed-top">
        <div class="container">
            <!-- Brand and toggle get grouped for better mobile display -->
            <div class="navbar-header">
                <button type="button" class="navbar-toggle collapsed" data-toggle="collapse"
                        data-target="#bs-example-navbar-collapse-1">
                    <span class="sr-only">Toggle navigation</span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                </button>
                <a class="navbar-brand" href="/">
                    <img class="navbar-logo" src="__TMPL__/public/assets/images/img/dfsd@2x.png">
                </a>
            </div>

            <!-- Collect the nav links, forms, and other content for toggling -->
            <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">


                <ul class="nav navbar-nav navbar-right">
                    <li>
                        <a href="{:url('portal/index/index')}" class="navactive">首页</a>
                    </li>
                    <li>
                        <a href="{:url('portal/company/companyIntroduce')}" >
                            关于公司
                        </a>

                    </li>
                    <li>
                        <a href="{:url('portal/companyProject/personalCompanyProject')}" >
                            公司项目

                        </a>

                    </li>
                    <li>
                        <a href="{:url('portal/companyNews/industry')}" >
                            新闻动态
                        </a>
                    </li>
                    <li>
                        <a href="{:url('portal/companyService/townPlan')}" >
                            公司服务

                        </a>

                    </li>
                    <li>
                        <a href="{:url('portal/invitePeople/viewOfPeople')}">
                            招贤纳士
                        </a>
                    </li>

                </ul>
            </div><!-- /.navbar-collapse -->
        </div><!-- /.container-fluid -->
    </nav>
    <!-- 轮播(Carousel)指标 -->
    <ol class="carousel-indicators indexcourael">
        <foreach name="banner" item="vo">
            <li data-target="#myCarousel" data-slide-to="{$key}">
            <em></em>
            </li>
        </foreach>
        <!--<li data-target="#myCarousel" data-slide-to="1">-->
            <!--<em></em>-->
        <!--</li>-->

        <!--<li data-target="#myCarousel" data-slide-to="1">-->
            <!--<em></em>-->
        <!--</li>-->
        <!--<li data-target="#myCarousel" data-slide-to="2">-->
            <!--<em></em>-->
        <!--</li>-->
    </ol>
    <!-- 轮播(Carousel)项目 -->
    <div class="carousel-inner">
        <foreach name="banner" item="vo">
        <div class="item">
            <img src="{:cmf_get_image_preview_url($vo.url)}" alt="First slide">
        </div>
        </foreach>
        <!--<div class="item">-->
            <!--<img src="__TMPL__/public/assets/images/img/jkhjk@2x.png" alt="Second slide">-->
        <!--</div>-->
        <!--<div class="item">-->
            <!--<img src="__TMPL__/public/assets/images/img/jkhjk@2x.png" alt="Third slide">-->
        <!--</div>-->
            <!--<div class="item">-->
            <!--<img src="http://hefang.w.bronet.cn/upload/portal/20181221/e52ce864ec765da6e375791cf7f23679.png" alt="Second slide">-->
            <!--</div>-->
           <!--<div class="item">-->
            <!--<img src="http://hefang.w.bronet.cn/upload/portal/20181221/e52ce864ec765da6e375791cf7f23679.png" alt="Second slide">-->
        <!--</div>-->

    </div>
    <!-- 轮播(Carousel)导航 -->
    <!--<a class="carousel-control left" href="#myCarousel"-->
    <!--data-slide="prev"> <span _ngcontent-c3="" aria-hidden="true" class="glyphicon glyphicon-chevron-right"></span></a>-->
    <!--<a class="carousel-control right" href="#myCarousel"-->
    <!--data-slide="next">&rsaquo;</a>-->

    <div class="bannerbottomimg">
        <img src="__TMPL__/public/assets/images/img/dsfsdfsfdsg@2x.png" alt="">
    </div>

    <div class="indexfooter">版权所有©渝ICP备18005497号-1</div>
</div>

<script type="text/javascript" src="__TMPL__/public/assets/js/jquery.min.js"></script>
<script type="text/javascript" src="__TMPL__/public/assets/js/bootstrap.min.js"></script>

<script>

    var len = $(".item");
    console.log(len);
    for (var i = 0; i < len.length; i++) {
        $(len[0]).addClass("active")
    }

    var olen = $(".carousel-indicators li");
    for (var i = 0; i < olen.length; i++) {
        $(olen[0]).addClass("active")
    }

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