27484f71a544758404158911aa03a3b6.php 9.8 KB
<?php if (!defined('THINK_PATH')) exit(); /*a:2:{s:71:"/www/wwwroot/menhu/public/../application/index/view/standard/index.html";i:1575885424;s:61:"/www/wwwroot/menhu/application/index/view/layout/default.html";i:1576722830;}*/ ?>
<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title><?php echo $title['title']; ?></title>
    <link rel="stylesheet" href="/statis/bootstrap/bootstrap.min.css">
    <link rel="stylesheet" href="/statis/css/base.css">
    <link rel="stylesheet" href="/statis/css/index.css">
    <link rel="stylesheet" href="/statis/css/public.css">
    <link rel="stylesheet" href="/statis/css/swiper.min.css">
    <script type="text/javascript" src="http://api.map.baidu.com/api?v=2.0&ak=d6PnuoA0EWXbee3HpVP84MT2GsflcVQk"></script>
    <script src="/statis/js/swiper.min.js"></script>
    <script src="/statis/js/jquery.js"></script>
    <script src="/statis/js/include.js"></script>
    <script src="http://pv.sohu.com/cityjson?ie=utf-8"></script>
    

    
</head>

<body>
<div class="indexBox">
    <!-- 顶部 -->
    <div class="top_bg">
        <div class="top_width">
            <!-- 最上面 -->
            <div class="top_item clearfix">
                <div class="top_itemL clearfix">
                    <img class="top_itemImg" src="/statis/image/gonggao_img.png" alt="">
                    <div class="top_itemTxt">公告:<a href="/index/gg/detail?id=<?php echo $titlegg[0]['id']; ?>&style=1"><?php echo $titlegg[0]["title"]; ?></a></div>
                </div>
                <div class="top_itemR">
                    <span><a href="/index/index/contactMe">联系我们</a></span>|
                    <span><a href="/index/release/index">发布留言</a></span>|
                    <span>添加收藏</span>
                </div>
            </div>
            <!-- 第二部分 -->
            <div class="top_item2 clearfix">
                <div class="top_item2L clearfix">
                    <!-- logo -->
                    <div class="top_item2Img"><img src="/statis/image/logo_icon.png" alt=""></div>
                    <div class="top_item2Box">
                        <h2>中关村国联绿色产业服务创新联盟</h2>
                        <p>Zhongguancun Green Industry Alliance</p>
                    </div>
                </div>
                <div class="top_item2R clearfix" style="<?php echo session('login')?'display:none':''; ?>">
                    <form id="formLog" class="top_item2Form">
                        <div class="top_formLi">
                            <label for="">帐号:</label>
                            <input type="hidden" name="location" id="location2">
                            <input type="text" name="tel">
                        </div>
                        <div class="top_formLi">
                            <label for="">密码:</label>
                            <input type="text" name="user_password">
                        </div>
                    </form>
                    <div class="top_item2Box2" >
                        <div class="top_item2Box3 clearfix">
                            <div class="top_item2_Txt login">会员登录</div>
                            <div class="top_item2_img"><img src="/statis/image/qq_icon.png" alt=""></div>
                            <div class="top_item2_img"><img src="/statis/image/weixin_icon.png" alt=""></div>
                        </div>
                        <div class="top_item2Box4">
                            <a href="/index/login/register">新用户注册</a>
                            <a href="/index/login/password">密码找回</a>
                        </div>
                    </div>
                </div>
                <div class="top_item2R" style="<?php echo session('login')?'':'display:none'; ?>">
                    <div class="top_item2Box5 clearfix">
                        <a href="/index/index/personal">
                            <div class="top_item2Img2"><img src="<?php echo session('user')['image']==''?'/statis/image/touxiang_imh.png':session('user')['image']; ?>" alt=""></div>
                            <div class="top_item2Box6">
                                <div class="top_item2Name one-txt-cut"><?php echo session('user')['user_name']; ?></div>
                                <div class="top_item2Area one-txt-cut" id="location">天津</div>
                            </div>
                        </a>
                        <a href="/index/gg/index?style=3"><div class="top_item2News">消息<span><?php echo $nums; ?></span></div></a>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <!-- 导航 -->
    <div class="nav">
        <div class="nav_width">
            <div class="nav_imag">
                <a href="/">
                    <img src="/statis/image/zhuye_icon.png" alt="">
                </a>
            </div>
            <div class="nav_List">
                <ul>
                    <?php foreach($menu as $v): ?>
                        <li data-id="<?php echo $v['id']; ?>" data-url="<?php echo $v['url']; ?>">
                            <a href="<?php echo $v['url']; ?>?pid=<?php echo $v['id']; ?>" onmouseover="move('<?php echo $v['id']; ?>','<?php echo $v['url']; ?>',this)">
                                <div  class="nav_Txt one-txt-cut"><?php echo $v['title']; ?></div>
                            </a>
                            <div class="nav_down">
                            </div>
                        </li>
                    <?php endforeach; ?>
                </ul>
            </div>
        </div>
    </div>
    
    <div class="max-width">
        <!-- 当前位置 -->
        <div class="current">
            <a href="">首页</a>
            <span>></span>
            <a href="">政策·要闻</a>
        </div>
        <!-- 内容 -->
        <div class="news_Con clearfix">
            <div class="news_nav">
                <h1 class="news_Txt">标准·指南</h1>
                <ul>
                    <?php foreach($left as $v): ?>
                        <li class="clearfix"  >
                            <a href="/index/standard/index?pid=<?php echo $v['id']; ?>"><p class="news_Txt2 one-txt-cut"><?php echo $v['title']; ?></p></a>
                        </li>
                    <?php endforeach; ?>
                </ul>
            </div>
            <div class="news_List">
                <ul>
                    <?php foreach($list as $v): ?>
                    <li class="clearfix">
                        <div class="news_Img"><img src="<?php echo $v['image']; ?>" alt=""></div>
                        <div class="news_Box2">
                            <p class="news_Txt4 txt-cut"><?php echo $v['title']; ?></p>
                            <p class="news_Txt5 txt-cut"><?php echo $v['desc']; ?></p>
                        </div>
                        <div class="news_Txt6"><?php echo $v['createtime']; ?></div>
                        <a href="/index/standard/detail?id=<?php echo $v['id']; ?>" class="news_Txt7">[详情]</a>
                    </li>
                    <?php endforeach; ?>
                </ul>
                <nav aria-label="Page navigation" class="page">
                    <?php echo $list->render(); ?>
                </nav>
            </div>

        </div>
    </div>

    <!-- footer -->
    <footer class="footer">
        <div class="footer_top">
            <div class="footer_width">
                <div class="footer_Txt">
                    |<?php foreach($menu as $v): ?>
                    <a href="<?php echo $v['url']; ?>?pid=<?php echo $v['id']; ?>">
                        <span><?php echo $v['title']; ?></span>|
                    </a>
                    <?php endforeach; ?>
                </div>
                <p class="footer_Txt2">版权所有:<span>中关村国联绿色产业服务创新联盟</span></p>
                <p class="footer_Txt2">北京市大兴区同济中路甲7号院</p>
                <p class="footer_Txt2">京ICP备05052419号</p>
            </div>
        </div>
        <div class="footer_bot"></div>
    </footer>
    <script>
        $("#location").html(returnCitySN["cname"]);
        $("#location1").html(returnCitySN["cname"]);
        $("#location2").val(returnCitySN["cname"]);
    </script>
</div>

</body>

</html>
<script>
    $(".login").on("click",function () {
        var data=$("#formLog").serialize();
        ajax("/index/login/login",data,"post",function (res) {
            w(res.msg);
            if(res.code==200){
                setTimeout(function () {
                    location.href="/index/index/index";
                },500)
            }
        },"false");
    })
    function move(id,href,e) {
        var data={'id':id};
        ajax("/index/index/menu",data,"post",function (res) {
            if(res.msg!=""){
                console.log(1212);
                var msg=res.msg;
                var html='';
                for(var i=0;i<msg.length;i++){
                    var href1=href+"?pid="+msg[i].id;
                    html+='<div class="nav_Txt2">'+
                        '   <a class="one-txt-cut" href="'+href1+'">'+msg[i].title+'</a>'+
                        '</div>'+
                        ''+
                        '';
                }
                $(e).parent().find(".nav_down").html(html);
            }
        },"false");
    }
    $('.nav_List ul li').mouseover(function() {
        console.log($(this));
        // move($(this).data("id"),$(this).data("url"),this);
        $(this).find('.nav_down').stop().slideDown(300).parents('li').siblings().find('.nav_down').stop().slideUp(300);
    }).mouseout(function() {
        $(this).find('.nav_down').stop().slideUp(300);
    })

</script>