mirror of
https://gitee.com/zoujingli/ThinkAdmin.git
synced 2025-04-05 19:41:44 +08:00
57 lines
3.3 KiB
PHP
57 lines
3.3 KiB
PHP
{extend name="index/index"}
|
|
|
|
{block name='style'}
|
|
<meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1">
|
|
<script>if (location.href.indexOf('#') > -1) location.replace(location.href.split('#')[0])</script>
|
|
<link rel="stylesheet" href="__ROOT__/static/theme/css/login.css">
|
|
{/block}
|
|
|
|
{block name="body"}
|
|
<div class="login-container" {$loginStyle|raw}>
|
|
<div class="header notselect layui-hide-xs">
|
|
<a href="{:url('@')}" class="title">{:sysconf('app_name')}<span>{:sysconf('app_version')}</span></a>
|
|
{notempty name='developMode'}
|
|
<a class="pull-right layui-anim layui-anim-fadein" target="_blank" href='https://gitee.com/zoujingli/ThinkAdmin'>
|
|
<img src='https://gitee.com/zoujingli/ThinkAdmin/widgets/widget_1.svg' alt='Fork me on Gitee'>
|
|
</a>
|
|
{/notempty}
|
|
</div>
|
|
<form data-login-form onsubmit="return false" method="post" class="layui-anim layui-anim-upbit" autocomplete="off">
|
|
<h2 class="notselect">{:sysconf('login_name')?:'系统管理'}</h2>
|
|
<ul>
|
|
<li class="username">
|
|
<label class="label-required-null">
|
|
<i class="layui-icon layui-icon-username"></i>
|
|
<input class="layui-input" required pattern="^\S{4,}$" vali-name="登录账号" name="username" autofocus autocomplete="off" placeholder="登录账号">
|
|
</label>
|
|
</li>
|
|
<li class="password">
|
|
<label class="label-required-null">
|
|
<i class="layui-icon layui-icon-password"></i>
|
|
<input class="layui-input" required pattern="^\S{4,}$" vali-name="登录密码" name="password" maxlength="32" type="password" autocomplete="off" placeholder="登录密码">
|
|
</label>
|
|
</li>
|
|
<li class="verify layui-hide">
|
|
<label class="inline-block relative label-required-null">
|
|
<i class="layui-icon layui-icon-picture-fine"></i>
|
|
<input class="layui-input" required pattern="^\S{4,}$" name="verify" maxlength="4" autocomplete="off" vali-name="验证码" placeholder="验证码">
|
|
</label>
|
|
<label data-captcha="{:url('admin/login/captcha',[],false)}" data-field-verify="verify" data-field-uniqid="uniqid" data-captcha-type="{$captchaType}" data-captcha-token="{$captchaToken}"></label>
|
|
</li>
|
|
<li class="text-center padding-top-20">
|
|
<button type="submit" class="layui-btn layui-disabled full-width" data-form-loaded="立即登入">正在载入</button>
|
|
</li>
|
|
</ul>
|
|
</form>
|
|
<div class="footer notselect">
|
|
<p class="layui-hide-xs">推荐使用 <a target="_blank" href="https://www.google.cn/chrome">Google Chrome</a> 或 <a target="_blank" href="https://www.microsoft.com/zh-cn/edge#platform">Microsoft Edge</a> 浏览器访问</p>
|
|
{:sysconf('site_copy')}
|
|
{if sysconf('beian')}<span class="padding-5">|</span><a target="_blank" href="https://www.beian.gov.cn/portal/registerSystemInfo">{:sysconf('beian')}</a>{/if}
|
|
{if sysconf('miitbeian')}<span class="padding-5">|</span><a target="_blank" href="https://beian.miit.gov.cn/">{:sysconf('miitbeian')}</a>{/if}
|
|
</div>
|
|
</div>
|
|
{/block}
|
|
|
|
{block name='script'}
|
|
<script src="__ROOT__/static/login.js"></script>
|
|
{/block} |