index.html 14.2 KB
{extend name="layout/default"}
<title>{block name='title'}首页{/block}</title>
{block name="style"}
<style>
    body {
        background-color: #F9F9F9;
    }
    .in_top {
        width: 102%;
        height: 2.56rem;
        margin-left: -0.16rem;
        background-size: 102% 100%;
        background-image: url('/static/image/top_bg_img.png')
    }
    .in_banner .swiper-container{
        height: 3.88rem;
    }
    .in_banner .swiper-pagination-bullet {
        width: 0.08rem;
        height: 0.08rem;
        opacity: 1;
        background: rgba(189, 196, 206, 1);
    }
    .in_banner .swiper-pagination-bullet-active {
        width: 0.24rem;
        height: 0.08rem;
        background: rgba(255, 255, 255, 1);
        opacity: 1;
        border-radius: 0.12rem;
    }
    .in_advertising{
        height: 0.76rem;
    }
</style>
{/block}
{block name="title1"}{/block}
    {block name="content"}
        <!-- 头部 -->
        <div class="in_top">
            <div class="in_topBox">
                <div class="in_topImg"><img src="/static/image/logo_img.png" alt=""></div>
                {if(session('login'))}
                <div class="in_topImg2"><img src="{:session('user')['image']==''?'/statis/image/touxiang_imh.png':session('user')['image']}" alt=""></div>
                {/if}
                {if(!session('login'))}
                <div class="in_topImg2"> <a href="/api/login/login"><img src="/static/image/touxiang_img.png" alt=""></a></div>
                {/if}

            </div>
            <div class="in_topNav">
                <ul>
                    {foreach $menu as $v }
                    <li data-id="{$v.id}" data-url="{$v.url}">
                        <a href="{$v.url}?pid={$v.id}" class="one-txt-cut">{$v.title}</a>
                    </li>
                    {/foreach}
                </ul>
            </div>
        </div>
        <!-- banner -->
        <div class="in_banner">
            <div class="swiper-container">
                <div class="swiper-wrapper">
                    {foreach $banner as $b}
                    <div class="swiper-slide">
                        <img src="{$b.image}" alt="">
                        <div class="in_bannerTxt">
                            <p class="txt-cut">{$b.title}</p>
                        </div>
                    </div>
                    {/foreach}
                </div>
                <div class="swiper-pagination"></div>
            </div>
        </div>
        <!-- 广告位 -->
        <div class="in_advertising">
            <img src="{$advice[0]['image']}" alt="">
        </div>
        <!-- 快捷入口 -->
        <div class="in_enterThe">
            <div class="in_enterTheTxt">快捷 入口</div>
            <div class="in_enterTheBox">
                {foreach($entry as $news)}
                <a href="{$news.url}" class="one-txt-cut">{$news.title}</a>
                {/foreach}
            </div>
        </div>
        <!-- 政策要闻 -->
        <div class="in_news">
            <div class="in_newsTop">
                <a href="{$newsMenu.first.url}?pid={$newsMenu.first.id}">
                    <div class="in_newsBox2">
                        <p class="in_newsTxt">{$newsMenu.first.title}</p>
                        <div class="in_newsImg"><img src="/static/image/xiayiji_icon.png" alt=""></div>
                    </div>
                </a>
                <div class="in_newsR">
                    {foreach($newsMenu["two"] as $news)}
                    <a href="{$news.url}"><span>{$news['title']}</span></a>
                    {/foreach}
                </div>
            </div>
            <div class="in_newsList">
                <ul>
                    {foreach($newsList as $news)}
                        <li class="one-txt-cut"><a href="/api/news/detail?id={$news.id}">{$news.title}</a></li>
                    {/foreach}
                </ul>
            </div>
        </div>
        <!-- 国际交流 -->
        <div class="in_world">
            <div class="in_newsTop">
                <a href="{$internationalMenu.first.url}?pid={$internationalMenu.first.id}">
                    <div class="in_newsBox2">
                        <p class="in_newsTxt">{$internationalMenu.first.title}</p>
                        <div class="in_newsImg"><img src="/static/image/xiayiji_icon.png" alt=""></div>
                    </div>
                </a>
                <div class="in_newsR">
                    {foreach($internationalMenu["two"] as $news)}
                        <a href="{$news.url}"><span>{$news['title']}</span></a>
                    {/foreach}
                </div>
            </div>

            <div class="in_worldList">
                <ul>
                    {foreach($internationalList as $news)}
                    <a href="/api/international/detail?id={$news.id}">
                        <li>
                            <div class="in_worldImg"><img src="{$news.image}" alt=""></div>
                            <p class="in_worldTxt txt-cut">{$news.title}</p>
                        </li>
                    </a>
                    {/foreach}
                </ul>
            </div>
        </div>
        <!-- 网上展厅 -->
        <div class="in_net">
            <div class="in_newsTop">
                <a href="{$onlineMenu.first.url}?pid={$onlineMenu.first.id}">
                    <div class="in_newsBox2">
                        <p class="in_newsTxt">{$onlineMenu.first.title}</p>
                        <div class="in_newsImg"><img src="/static/image/xiayiji_icon.png" alt=""></div>
                    </div>
                </a>
                <div class="in_newsR">
                    {foreach($onlineMenu["two"] as $news)}
                        <a href="{$news.url}"><span>{$news.title}</span></a>
                    {/foreach}
                </div>
            </div>

            <div class="in_netList">
                <ul>
                    {volist name="onlineList" id="news" offset="1"}
                    <li>
                        <div class="in_netBox">
                            <h1 class="in_netTit one-txt-cut">{$news.title}</h1>
                            <p class="in_netTxt txt-cut">{$news.desc} </p>
                        </div>
                        <div class="in_netImg"><img src="{$news.image}" alt=""></div>
                    </li>
                    {/volist}
                </ul>
            </div>
            {volist name="onlineList" id="news" offset="0" length='1'}
            <!-- 图片 -->
            <div class="in_netBanner">

                <div class="in_netBaBot">
                    <p class="txt-cut">{$news.title}</p>
                </div>
                <img src="{$news.image}" alt="">
            </div>
            {/volist}
        </div>
        <!-- 专家在线 -->
        <div class="in_experts">
            <div class="in_newsTop">
                <a href="{$expertsMenu.first.url}?pid={$expertsMenu.first.id}">
                    <div class="in_newsBox2">
                        <p class="in_newsTxt">{$expertsMenu.first.title}</p>
                        <div class="in_newsImg"><img src="/static/image/xiayiji_icon.png" alt=""></div>
                    </div>
                </a>
                <div class="in_newsR">
                    <a href="{$expertsMenu['two'][0]['url']}"><span>{$expertsMenu["two"][0]["title"]}</span></a>
                </div>
            </div>

            <div class="in_worldList">
                <ul>
                    {volist name="experts1List" id="news"  offset="0"  length='3'}
                        <a href="/api/experts/detail?id={$news.id}">
                            <li>
                                <div class="in_expertsImg"><img src="{$news.image}" alt=""></div>
                                <div class="in_expertsTxt1 txt-cut">{$news.name}<br>{$news.desc}
                                </div>
                            </li>
                        </a>
                    {/volist}
                </ul>
            </div>


            <div class="in_expertsList2">
                <ul>
                    {volist name="experts1List" id="news"  offset="3"  length='3'}
                    <li>
                        <div class="in_expertsTxt2 one-txt-cut">{$news.name}:{$news.desc}</div>
                        <a class="in_expertsTxt3" href="/api/experts/detail?id={$news.id}">[详情]</a>
                    </li>
                    {/volist}
                </ul>
            </div>
        </div>
        <!-- 广告位 -->
        <div class="in_advertising">
            <img src="{$advice[0]['image']}" alt="">
        </div>
        <!-- 招商招标 -->
        <div class="in_tender">
            <div class="in_newsTop">
                <a href="/api/invitation/index?pid={$invitationMenu.first.id}">
                    <div class="in_newsBox2">
                        <p class="in_newsTxt">{$invitationMenu.first.title}</p>
                        <div class="in_newsImg"><img src="/static/image/xiayiji_icon.png" alt=""></div>
                    </div>
                </a>
                <div class="in_newsR">
                    {foreach($invitationMenu["two"] as $news)}
                    <a href="{$news.url}"><span>{$news.title}</span></a>
                    {/foreach}
                </div>
            </div>
            <div class="in_netList">
                <ul>
                    {volist name="invitationList" id="news"}
                    <a href="/api/invitation/detail?id={$news.id}">
                        <li>
                            <div class="in_netBox">
                                <h1 class="in_tenderTxt1 txt-cut">{$news.title}</h1>
                                <p class="in_tenderTxt2 txt-cut">{$news.desc}</p>
                            </div>
                            <div class="in_netImg"><img src="{$news.image}" alt=""></div>
                        </li>
                    </a>
                    {/volist}
                </ul>
            </div>
        </div>
        <!-- 人才服务 -->
        <div class="in_talent">
            <div class="in_newsTop">
                <a href="{$talentMenu.first.url}?pid={$talentMenu.first.id}">
                    <div class="in_newsBox2">
                        <p class="in_newsTxt">{$talentMenu.first.title}</p>
                        <div class="in_newsImg"><img src="/static/image/xiayiji_icon.png" alt=""></div>
                    </div>
                </a>
                <div class="in_newsR">
                    {foreach($talentMenu["two"] as $news)}
                        <a href="{$news.url}"><span>{$news.title}</span></a>
                    {/foreach}
                </div>
            </div>
            <div class="in_expertsList2" style="margin-top:0.1rem;">
                <ul>
                    {volist name="talentList" id="news"}
                    <li>
                        <div class="in_expertsTxt2 one-txt-cut">{$news.title}</div>
                        <a class="in_expertsTxt3" href="/api/talent/detail?id={$news.id}"> [查看简历]</a>
                    </li>
                    {/volist}
                </ul>
            </div>
        </div>
        <!-- 标准·指南 -->
        <div class="in_talent">
            <div class="in_newsTop">
                <a href="">
                    <div class="in_newsBox2">
                        <p class="in_newsTxt">{$standardMenu.first.title}</p>
                        <div class="in_newsImg"><img src="/static/image/xiayiji_icon.png" alt=""></div>
                    </div>
                </a>
                <div class="in_newsR">
                    {foreach($standardMenu["two"] as $news)}
                    <a href="{$news.url}"><span>{$news.title}</span></a>
                    {/foreach}
                </div>
            </div>
            <div class="in_expertsList2" style="margin-top:0.1rem;">
                <ul>
                    {foreach($standardList as $news)}
                    <li>
                        <div class="in_expertsTxt2 one-txt-cut">{$news.title}</div>
                        <a class="in_expertsTxt3" href="/index/news/down?url={$news.downfile}"> [点击下载]</a>
                    </li>
                    {/foreach}
                </ul>
            </div>
        </div>
        <!-- 会员服务 -->
        <div class="in_talent">
            <div class="in_newsTop">
                <a href="{$huiyuanMenu.first.url}?pid={$huiyuanMenu.first.id}">
                    <div class="in_newsBox2">
                        <p class="in_newsTxt">{$huiyuanMenu.first.title}</p>
                        <div class="in_newsImg"><img src="/static/image/xiayiji_icon.png" alt=""></div>
                    </div>
                </a>
                <div class="in_newsR">
                    {foreach($huiyuanMenu["two"] as $news)}
                    <a href="{$news.url}"><span>{$news.title}</span></a>
                    {/foreach}
                </div>
            </div>
            <div class="in_expertsList2" style="margin-top:0.1rem;">
                <ul>
                    {volist name="huiyuanList" id="news"}
                    <li>
                        <div class="in_expertsTxt2 one-txt-cut">{$news.title}</div>
                        <a class="in_expertsTxt3" href="/api/huiyuan/detail?id={$news.id}">[详情]</a>
                    </li>
                    {/volist}
                </ul>
            </div>
        </div>
        <!-- 友情链接 -->
        <div class="in_link">
            <div class="in_newsTop">
                    <div class="in_newsBox2">
                        <p class="in_newsTxt">友情链接</p>
<!--                        <div class="in_newsImg"><img src="/static/image/xiayiji_icon.png" alt=""></div>-->
                    </div>
            </div>
            <div class="in_linkBox">
                {foreach $links as $link}
                <a href="{$link.link}">
                <div class="in_linkImg"><img src="{$link.image}" alt=""></div>
                </a>
                {/foreach}
            </div>
        </div>
    </div>
    <div class="footer_Box">
        <a href=""><span>联系我们</span></a>
        <a href=""><span>发布留言</span></a>
    </div>
<script>
    var swiper = new Swiper('.swiper-container', {
        pagination: '.swiper-pagination',
        paginationClickable: true
    });

</script>
{/block}