业务经理

微信扫描以上二维码

028-61286886

技术咨询

会员登录页面,提交登录按钮 没有跳转到用户中心页面

迅睿框架 更新 2023-07-18 10:02:15 蜡笔小新


会员登录页面,提交登录按钮 没有跳转到用户中心页面,而是显示如下:  求教这是什么情况?感谢


1689569366871

----------------------------------------------------------------------------------------------------------------------------------------------------------------

<form class="mb-0" id="myform" method="post" novalidate="novalidate">
  {$form}
  <h3>登录您的账户</h3>
  <div class="row">
    <div class="col-12 form-group">
      <label for="login-form-username">用户名:</label>
      <input type="text" autocomplete="off" placeholder="请输入账号/邮箱/手机" name="data[username]" class="form-control">
    </div>
    <div class="col-12 form-group">
      <label for="login-form-password">密码:</label>
      <input type="password" autocomplete="off" placeholder="请输入登录密码" name="data[password]" class="form-control">
    </div>
    {if $is_code}
    <div class="col-12 form-group">
      <label for="login-form-code">{dr_code(120, 35)}</label>
      <input type="text" autocomplete="off" placeholder="请输入上层显示的验证码" name="code" class="form-control">
    </div>
    {/if}
    <div class="col-12 form-group">
      <div class="d-flex justify-content-between">
        <button type="button" class="button button-3d button-black m-0" onclick="dr_ajax_member('{dr_member_url('login/index')}', 'myform');">立即登录</button>
        <a href="{dr_member_url('login/find')}">找回密码</a> </div>
    </div>
    <div class="col-12 form-group">
      <div class="d-flex justify-content-between"> <a href="{dr_member_url('register/index')}">还没有账号?立刻注册账号</a> </div>
    </div>
  </div>
</form>


方案

  • 迅睿框架创始人 #1 · 2023-07-17 13:00:41
    代码感觉没有问题,你把登录地址发给我看看
  • 风扬 #2 · 2023-07-17 19:54:59
    应该是缺少js文件了
  • 简单哥 #3 · 2023-07-18 10:02:15
    <script type="text/javascript" charset="utf-8">$(document).ready(function() { $("#myform").submit(function(event) { event.preventDefault(); });});</script>把这个代码加上就ok,不用谢我,我也是刚在做这个

迅睿系统漏洞

站群分站系统
站群分站系统(2026-10-15)
子站域名新增llms.txt访问
GEO系统
GEO系统(2026-10-14)
修复下载zip空白地址问题 修复流量复刻和任务队列错误
GeoSeo收录宝
GeoSeo收录宝(2026-10-14)
新增 站长工具箱 前端首页自动调用meta 数据
滑块验证码 Gocaptcha
滑块验证码 Gocaptcha(2026-10-13)
基于开源项目 go-captcha 的行为验证码插件,滑动拼图、区域...
GeoSeo工具箱
GeoSeo工具箱(2026-10-13)
优化巡检任务
GeoSeo排名助手
GeoSeo排名助手(2026-10-11)
加入大模型自定义
SEO聚合关键字
SEO聚合关键字(2026-10-11)
优化关键字列表页最多支持1万篇文章,过多会导致服务器扛不住;
CMS内容同步复制
CMS内容同步复制(2026-10-10)
增加时间是否更新的开关