联系官方销售客服
1835022288
028-61286886
如何新建自定义页面作为登录页面
复制template/pc/default/member/login.html,放至default/home/page/下,并改名page_denglu.html,
新建自定义页面,并在页面的《功能设置》填写指定模板文件为page_denglu.html。打开该自定义页面,登录处输入用户名密码点击登录,系统提示“系统错误”。
求助,我要怎么改代码才能正常使用登录
{template "header.html"}
<div class="page-wrapper-row full-height">
<div class="page-wrapper-middle">
<div class="page-content">
<div class="container">
<ul class="page-breadcrumb breadcrumb">
<li>
<a href="{SITE_URL}">首页</a>
<i class="fa fa-circle"></i>
</li>
<li>
<a href="{MEMBER_URL}">用户中心</a>
<i class="fa fa-circle"></i>
</li>
<li>
<span>登录</span>
</li>
</ul>
<div class="page-content-inner">
<div class="search-page search-content-2">
<div class="portlet light">
<div class="portlet-title">
<div class="caption">
<span class="caption-subject font-dark">用户登录</span>
</div>
</div>
<div class="portlet-body login">
<div class="row">
<div class="col-md-4"></div>
<div class="col-md-4">
<form class="content" id="myform" method="post" novalidate="novalidate">
{$form}
<div class="form-group">
<div class="input-icon">
<i class="fa fa-user"></i>
<input class="form-control placeholder-no-fix" type="text" autocomplete="off" placeholder="账号/邮箱/手机" name="data[username]">
</div>
</div>
<div class="form-group">
<div class="input-icon">
<i class="fa fa-lock"></i>
<input class="form-control placeholder-no-fix" type="password" autocomplete="off" placeholder="登录密码" name="data[password]">
</div>
</div>
{if $is_code}
<div class="form-group">
<div class="input-group login-code">
<div class="input-icon">
<i class="fa fa-code"></i>
<input class="form-control placeholder-no-fix" type="text" autocomplete="off" placeholder="验证码" name="code">
</div>
<div class="input-group-btn fc-code">
{dr_code(120, 35)}
</div>
</div>
</div>
{/if}
<div class="form-actions">
<label class="rememberme mt-checkbox mt-checkbox-outline">
<input type="checkbox" name="remember" value="1"> 记住登录
<span></span>
</label>
<button type="button" onclick="dr_ajax_member('{dr_now_url()}', 'myform');" class="btn green pull-right"> 登录 </button>
</div>
<div class="create-account">
<p>
<a href="{dr_member_url('register/index')}"> 注册账号 </a>
</p>
</div>
</form>
</div>
<div class="col-md-4"></div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
{template "footer.html", "/"}