layout.hbs 6.06 KB
<!DOCTYPE html>
<html lang="en">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>YOHO!活动平台</title>

    {{#if devEnv}}
    <link rel="stylesheet" media="all" href="//{{devHost}}:{{devPort}}/css/common.css?t={{startTime}}">
    <link rel="stylesheet" media="all" href="//{{devHost}}:{{devPort}}/css/{{module}}.{{page}}.css?t={{startTime}}">
    {{^}}
    <link rel="stylesheet" media="all" href="/yoho-activity-platform/{{version}}/css/common.css?t={{startTime}}">
    <link rel="stylesheet" media="all"
          href="/yoho-activity-platform/{{version}}/css/{{module}}.{{page}}.css?t={{startTime}}">
    {{/if}}
</head>

<body class={{bodyClass}}>
<div class="container body">
    <div class="main_container">
        <div class="col-md-3 left_col">
            <div class="left_col scroll-view">
                <div class="navbar nav_title" style="border: 0;">
                    <a class="site_title"><span>YOHO!活动平台</span></a>
                </div>

                <div class="clearfix"></div>

                <!-- menu profile quick info -->
                <div class="profile clearfix">
                    <div class="profile_pic">
                        <img src="{{imgSrc 'img/admin/admin_avatar.png'}}" alt="..." class="img-circle profile_img">
                    </div>
                    <div class="profile_info">
                        <span>欢迎,</span>
                        <h2>admin</h2>
                    </div>
                    <div class="clearfix"></div>
                </div>
                <!-- /menu profile quick info -->

                <br/>

                <!-- sidebar menu -->
                <div id="sidebar-menu" class="main_menu_side hidden-print main_menu">
                    <div class="menu_section">
                        <ul class="nav side-menu">
                            <li><a><i class="fa fa-edit"></i> 活动管理 <span class="fa fa-chevron-down"></span></a>
                                <ul class="nav child_menu">
                                    <li><a href="/admin/activity/list">活动列表</a></li>
                                    <li><a href="/admin/activity/create">活动创建</a></li>
                                    <li><a href="/admin/activity/upload_excel">上传Y100excel</a></li>
                                    <li><a href="/admin/activity/zerobuy">0元购</a></li>
                                    <li><a href="/admin/wheelSurf">大转盘</a></li>
                                </ul>
                            </li>
                            <li><a><i class="fa fa-users"></i> 用户管理 <span class="fa fa-chevron-down"></span></a>
                                <ul class="nav child_menu">
                                    <li><a href="/admin/user/list">用户列表</a></li>
                                    <li><a href="/admin/user/users_list">用户信息收集</a></li>
                                    <li><a href="/admin/user/prize_users_list?actId=25">中奖用户信息</a></li>
                                    <li><a href="/admin/user/login-log">用户登录日志</a></li>
                                </ul>
                            </li>
                            <li><a><i class="fa fa-ticket"></i> 券管理 <span class="fa fa-chevron-down"></span></a>
                                <ul class="nav child_menu">
                                    <li><a href="/admin/coupon/list">券列表</a></li>
                                </ul>
                            </li>
                            <li><a><i class="fa fa-ticket"></i> 国潮排行 <span class="fa fa-chevron-down"></span></a>
                                <ul class="nav child_menu">
                                    <li><a href="/admin/guochao/list">品牌列表</a></li>
                                </ul>
                            </li>
                        </ul>
                    </div>
                </div>
                <!-- /sidebar menu -->

                <!-- /menu footer buttons -->
                <div class="sidebar-footer hidden-small">
                </div>
                <!-- /menu footer buttons -->
            </div>
        </div>

        <!-- top navigation -->
        <div class="top_nav">
            <div class="nav_menu">
                <nav>
                    <div class="nav toggle">
                        <a id="menu_toggle"><i class="fa fa-bars"></i></a>
                    </div>

                    <ul class="nav navbar-nav navbar-right">
                        <li class="">
                            <a href="javascript:;" class="user-profile dropdown-toggle" data-toggle="dropdown"
                               aria-expanded="false">
                                <img src="{{imgSrc 'img/admin/admin_avatar.png'}}" alt="">admin
                                <span class=" fa fa-angle-down"></span>
                            </a>
                            <ul class="dropdown-menu dropdown-usermenu pull-right">
                                <li><a class="btn-logout"><i class="fa fa-sign-out pull-right"></i>注销</a></li>
                            </ul>
                        </li>
                    </ul>
                </nav>
            </div>
        </div>
        <!-- /top navigation -->

        {{{body}}}

        <!-- footer content -->
        <footer>
            <div class="pull-right">
                YOHO! Activity Platform ©2017-2020 All Rights Reserved.
            </div>
            <div class="clearfix"></div>
        </footer>
        <!-- /footer content -->
    </div>
</div>
{{#if devEnv}}
<script src="//{{devHost}}:{{devPort}}/libs.js"></script>
<script src="//{{devHost}}:{{devPort}}/js/{{module}}.{{page}}.js"></script>
{{^}}
<script src="/yoho-activity-platform/{{version}}/libs.js?t={{startTime}}"></script>
<script src="/yoho-activity-platform/{{version}}/js/{{module}}.{{page}}.js?t={{startTime}}"></script>
{{/if}}
</body>
</html>