header.html 3.4 KB
<link rel="stylesheet" href="__TMPL__/public/assets/css/header.css">
<!--导航-->
<div class="nav">
    <div class="navImg1">
        <img src="__TMPL__/public/assets/images/cicon_02@2x.png" />
    </div>
    <div class="navImg2">
        <img src="__TMPL__/public/assets/images/cicon_01@2x.png" alt="" />
    </div>
    <!-- input框 -->
    <div class="nav_search">
        <form action="/portal/login/searchList" method="GET">
            <i></i>
            <input type="text" placeholder="请输入搜索内容" name="keyword" value="{$keyword}" id="keywords">
        </form>
    </div>
    <div class="navImg3">
        <img src="__TMPL__/public/assets/images/cicon_03@2x.png" alt="" />
    </div>
    <!--导航下拉-->
    <div class="nav_down">
        <!--未登录-->
        <notempty name="user">
            <!--登陆后-->
            <div class="nav_downBtn login_person">
                <notempty name="user.avatar">
                    <div class="nav_downImg">
                        <img src="{:cmf_get_image_url($user.avatar)}" alt="" />
                    </div>
                    <else/>
                    <div class="nav_downImg">
                        <img src="__TMPL__/public/assets/starImg/aicon_82.png" alt="" />
                    </div>
                </notempty>

                <notempty name="user.user_nickname">
                    <p class="nav_downName">{$user.user_nickname}</p>
                    <else/>
                    <p class="nav_downName"></p>
                </notempty>

            </div>
            <else/>
            <!-- 登录注册 -->
            <div class="nav_downBtn">
                <a href="/portal/login/login">
                    <div class="nav_landing">登录</div>
                </a>
                <a href="/portal/login/register">
                    <div class="nav_reg">注册</div>
                </a>
            </div>
        </notempty>

        <div class="nav_downLi">
            <div class="nav_downN">
                <a href="/">
                    <p class="nav_downTxt">首页</p>
                </a>
            </div>
        </div>
        <div class="nav_downLi">
            <div class="nav_downN">
                <a href="/#star">
                    <p class="nav_downTxt">星球奇境</p>
                </a>
            </div>
        </div>
        <volist name="slide" id="vo">
            <div class="nav_downLi">
                <div class="nav_downN">
                    <a href="javascript:void(0);">
                        <p class="nav_downTxt">{$vo.name}</p>
                    </a>
                    <img class="nav_downImg2" src="__TMPL__/public/assets/images/down.png" alt="" />
                </div>
                <div class="nav_drop-down">
                    <notempty name="vo.child">
                        <ul>
                            <volist name="vo.child" id="voo">
                                <a href="{$voo.url}"><li>{$voo.name}</li></a>
                            </volist>
                        </ul>
                    </notempty>
                </div>
            </div>
        </volist>
        <div class="nav_downLi">
            <div class="nav_downN">
                <a href="javascript:void(0);">
                    <p class="nav_downTxt">星际活动</p>
                </a>
                <!--<img class="nav_downImg2" src="__TMPL__/public/assets/images/down.png" alt="" />-->
            </div>
        </div>
    </div>
</div>