side_nav.phtml 1.6 KB
<div class="side-nav">
    <ul>
        {{# sideNav}}
        <li class="{{styleClass}}">
            {{# url}}
            <a href="{{.}}">
            {{/ url}}
            {{^ url}}
            <a href="javascript:;">
            {{/ url}}
                {{# img}}
                <!-- <img class="nav-img" src="{{.}}" alt=""> -->
                <span class="nav-img" style="background-image: url({{.}})"></span>
                {{/ img}}
                {{^ img}}
                <i class="nav-icon"></i>
                {{/ img}}
                <em>{{textCn}}</em>{{textEn}}
                {{# subNav}}
                <span class="enter-subnav iconfont">&#xe614;</span>
                {{/ subNav}}
            </a>
            {{# subNav}}
            <ul class="sub-nav">
                {{# list}}
                <li class="{{# isSelect}}current{{/ isSelect}}" style="background-color:{{bgColor}}">
                    {{# url}}
                    <a href="{{.}}">
                    {{/ url}}
                    {{^ url}}
                    <a href="javascript:;">
                    {{/ url}}
                        {{^ back}}
                        <span class="nav-point iconfont">&#xe60c;</span>
                        {{/ back}}
                        {{# back}}
                        <i class="nav-back iconfont">&#xe610;</i>
                        {{/ back}}
                        <em>{{textCn}}</em>
                        {{textEn}}
                    </a>
                </li>
                {{/ list}}
            </ul>
            {{/ subNav}}
        </li>
        {{/ sideNav}}
    </ul>
</div>