|
| 1 | +@extends($_viewFrame) |
| 2 | + |
| 3 | +@section('pageTitleMain')登录@endsection |
| 4 | +@section('pageKeywords')登录@endsection |
| 5 | +@section('pageDescription')登录@endsection |
| 6 | + |
| 7 | +@section('headAppend') |
| 8 | + @parent |
| 9 | + {!! \ModStart\Core\Hook\ModStartHook::fireInView('MemberLoginPageHeadAppend'); !!} |
| 10 | +@endsection |
| 11 | + |
| 12 | +@section('bodyAppend') |
| 13 | + @parent |
| 14 | + {!! \ModStart\Core\Hook\ModStartHook::fireInView('MemberLoginPageBodyAppend'); !!} |
| 15 | +@endsection |
| 16 | + |
| 17 | +{!! \ModStart\ModStart::style('html,body{background:var(--color-content-bg);}') !!} |
| 18 | +@section('body') |
| 19 | + |
| 20 | + <div class="ub-account pb-member-login-account"> |
| 21 | + |
| 22 | + <div class="box" data-member-login-box> |
| 23 | + <div class="nav"> |
| 24 | + <a href="javascript:;" class="active">登录</a> |
| 25 | + @if(!modstart_config('registerDisable',false)) |
| 26 | + · |
| 27 | + <a href="{{$__msRoot}}register?dialog=1&redirect={{!empty($redirect)?urlencode($redirect):''}}">注册</a> |
| 28 | + @endif |
| 29 | + </div> |
| 30 | + |
| 31 | + <div class="ub-form flat"> |
| 32 | + <form action="{{\ModStart\Core\Input\Request::currentPageUrl()}}" method="post" data-ajax-form> |
| 33 | + <div class="line"> |
| 34 | + <div class="field"> |
| 35 | + <input type="text" class="form-lg" name="username" placeholder="输入用户" /> |
| 36 | + </div> |
| 37 | + </div> |
| 38 | + <div class="line"> |
| 39 | + <div class="field"> |
| 40 | + <input type="password" class="form-lg" name="password" placeholder="输入密码" /> |
| 41 | + </div> |
| 42 | + </div> |
| 43 | + @if(modstart_config('loginCaptchaEnable',false)) |
| 44 | + <?php $providerName = modstart_config('loginCaptchaProvider',null); ?> |
| 45 | + @if($providerName && ($provider = \Module\Vendor\Provider\Captcha\CaptchaProvider::get($providerName))) |
| 46 | + <div style="padding:0.5rem;"> |
| 47 | + {!! $provider->render() !!} |
| 48 | + </div> |
| 49 | + @else |
| 50 | + <div class="line"> |
| 51 | + <div class="field"> |
| 52 | + <div class="row no-gutters"> |
| 53 | + <div class="col-6"> |
| 54 | + <input type="text" class="form-lg" name="captcha" autocomplete="off" placeholder="图片验证码" /> |
| 55 | + </div> |
| 56 | + <div class="col-6"> |
| 57 | + <img class="captcha captcha-lg" title="刷新验证" data-captcha |
| 58 | + src="{{modstart_web_url('login/captcha')}}" |
| 59 | + onclick="$(this).attr('src','{{modstart_web_url('login/captcha')}}?'+Math.random())" /> |
| 60 | + </div> |
| 61 | + </div> |
| 62 | + </div> |
| 63 | + </div> |
| 64 | + @endif |
| 65 | + @endif |
| 66 | + <div class="line"> |
| 67 | + <div class="field"> |
| 68 | + <button type="submit" class="btn btn-primary btn-lg btn-block">登录</button> |
| 69 | + <input type="hidden" name="redirect" value="{{empty($redirect)?'':$redirect}}"> |
| 70 | + </div> |
| 71 | + </div> |
| 72 | + </form> |
| 73 | + </div> |
| 74 | + |
| 75 | + @include('module::Member.View.pc.oauthButtons') |
| 76 | + |
| 77 | + @if(!modstart_config('retrieveDisable',false)) |
| 78 | + <div class="retrieve"> |
| 79 | + 忘记密码? |
| 80 | + <a target="_parent" href="{{$__msRoot}}retrieve?redirect={{urlencode($redirect)}}">找回密码</a> |
| 81 | + </div> |
| 82 | + @endif |
| 83 | + </div> |
| 84 | + |
| 85 | + </div> |
| 86 | + |
| 87 | +@endsection |
0 commit comments