companyprojectdetail.html 7.7 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">
    <link rel="stylesheet" href="https://at.alicdn.com/t/font_986598_owvl2a9owc.css">
    <title>公司项目-项目详情</title>
    <link rel="stylesheet" href="__TMPL__/public/assets/css/bootstrap.min.css">
    <link rel="stylesheet" href="__TMPL__/public/assets/css/swiper.min.css">
    <link rel="stylesheet" href="__TMPL__/public/assets/css/common.css">

</head>
<body>
<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')}">首页</a>
                </li>
                <li>
                    <a href="{:url('portal/company/companyIntroduce')}">
                        关于公司
                    </a>

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

                    </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>

<div class="position">
    <ul class="positionlist">
        <li class="aboutposition"><a href="">当前位置:</a></li>
        <li class="aboutposition"><a href="{:url('portal/companyProject/personalCompanyProject',array('id'=>$list.cid))}">公司项目</a></li><span class="iconfont icon-jiantou rightrow"></span>
        <a href="{:url('portal/companyProject/personalCompanyProject',array('id'=>$list.cid))}"><li  class="aboutposition aboutpositionname">{$list.cname}</li></a>
    </ul>
</div>
<div class="container">
    <div class="col-md-12 col-sm-12 col-xs-12">
        <!--<div class="companyprojectimg">-->

        <!--</div>-->
        <div id="myCar2" class="carousel slide companyprojectimg" data-ride="carousel" data-interval="0">
            <!--图片轮播区域-->
            <div class="carousel-inner">
                <!--1、轮播图片1-->
                <foreach name="list.more" item="vo">
                <div class="item companyprojectimg <eq name="key" value="0">active</eq> ">
                    <img src="{:cmf_get_image_preview_url($vo.url)}">
                    <!-- 说明文本区域 -->
                </div>
                </foreach>
                <!--2、轮播图片2-->
                <!--<div class="item companyprojectimg">-->
                    <!--<img src="__TMPL__/public/assets/images/img/jkhjk@2x.png">-->
                <!--</div>-->
                <!--&lt;!&ndash;3、轮播图片3&ndash;&gt;-->
                <!--<div class="item companyprojectimg">-->
                    <!--<img src="__TMPL__/public/assets/images/img/jkhjk@2x.png">-->
                <!--</div>-->
                <!--&lt;!&ndash;4、轮播图片4&ndash;&gt;-->
                <!--<div class="item companyprojectimg">-->
                    <!--<img src="__TMPL__/public/assets/images/img/jkhjk@2x.png">-->
                <!--</div>-->
            </div>
            <!--方向按钮:左-->


            <!-- 导航圆点 -->
            <ul class="carousel-indicators">
                <foreach name="list.more" item="vo">
                <li data-slide-to="{$key}" data-target="#myCar2" class="<eq name="key" value="0">active</eq>"></li>
                <!--<li data-slide-to="1" data-target="#myCar2" ></li>-->
                <!--<li data-slide-to="2" data-target="#myCar2" ></li>-->
                <!--<li data-slide-to="3" data-target="#myCar2" ></li>-->
                </foreach>
            </ul>
        </div>
    </div>
    <div class="col-md-12 col-sm-12 col-xs-12">
        <div class="companyprojectinfo">
            <p class="peopletailname">{$list.name}</p>
            <div class="row">
                <div class="col-md-3">
                    {$list.brief1}
                </div>
                <div class="col-md-3">
                    {$list.brief2}
                </div>
                <div class="col-md-3">
                    {$list.brief3}
                </div>
                <div class="col-md-3">
                    {$list.brief4}
                </div>
            </div>
        </div>
    </div>
    <div class="col-md-12 col-sm-12 col-xs-12 slidebanner">
        <div class="swiper-container projectswiper">
            <div class="swiper-wrapper">

                <foreach name="more" item="vo">

                    <div class="swiper-slide picitemproject">
                        <a href="{:url('portal/companyProject/companyProjectDetail',array('id'=>$vo.id))}" style="display: block">
                            <img src="{:cmf_get_image_preview_url($vo.more.0.url)}">
                        </a>
                    </div>
                </foreach>
            </div>
            <div class="swiper-button-prev swiper-button-black prerow"></div>
            <div class="swiper-button-next swiper-button-black backrow"></div>
        </div>


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

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

</body>

<script>
    console.log($(".companylist"))
    $(".companylist").click(function(){

        $(this).addClass("companylistactive");
        $(this).siblings(".companylist").removeClass("companylistactive")
    })

    var mySwiper = new Swiper('.swiper-container', {
        //autoplay: true,//可选选项,自动滑动
        // 一行显示slider的个数
        slidesPerView: 4,
        // // 定义slides的数量多少为一组
        slidesPerGroup: 4,

        navigation: {
            nextEl: '.swiper-button-next',
            prevEl: '.swiper-button-prev',
        },
    })


    var height=$(window).height();
    var bodyheight=$("body").height();
    console.log(height);
    console.log(bodyheight)
    if(height>bodyheight){
        $("body").css("height","100%")
    }else{

        $("body").css("height","auto")
        $("body").css("position","relative")
    }
</script>
</html>