业务经理

微信扫描以上二维码

028-61286886

技术咨询

首页注册请大神帮忙修改下!谢谢!创建一个账号个人账号或者企业

迅睿框架 更新 2019-12-14 11:53:28 yogaq

首页注册 请大神帮忙修改下!谢谢!

<div class="col-md-11 col-lg-10">
  <h2>创建一个账号</h2>
  <p class="lead">个人账号或者企业账号</p>
  <div class="row">
    <div class="col-12"> 
	 {loop $register.group $i}
      <div class="col-lg-6 col-md-6 col-md-offset-6 col-6"> <a class="btn block btn--icon bg--twitter type--uppercase {if $groupid == $i}active{/if}" href="{dr_member_url('register/index', ['groupid' => $i])}"> <span class="btn__text"> <i class="socicon-twitter"></i> {$group[$i][name]} </span> </a> </div>
      {/loop} 
      </div>
  </div>
  <hr data-title="OR">
  <form id="myform_reg">
    {dr_form_hidden()}
    <div class="row form-body" style="padding-bottom:0"> {if in_array('username', $register.field)}
      <div class="col-12" id="dr_row_username">
        <input type="text" class="form-control input-large" name="data[username]" id="dr_username" placeholder="用户名" >
      </div>
      {/if}
      
      {if in_array('email', $register.field)}
      <div class="col-12" id="dr_row_email">
        <input type="text" class="form-control input-large" name="data[email]" id="dr_email" placeholder="邮箱" >
      </div>
      {/if}
      
      {if in_array('phone', $register.field)}
      <div class="col-12 " id="dr_row_phone">
        <input type="text" class="form-control input-large" name="data[phone]" id="dr_phone" placeholder="手机号" >
      </div>
      {/if}
      <div class="col-12 " id="dr_row_password">
        <input type="password" class="form-control input-large" name="data[password]" id="dr_password" placeholder="密码" >
      </div>
      <div class="col-12" id="dr_row_password2">
        <input type="password" class="form-control input-large" name="data[password2]" id="dr_password2" placeholder="确认密码" >
      </div>
      {$myfield}
      
      {if $register.sms}
      <div class="col-12" id="dr_row_sms">
        <div class="col-6">
          <input class="form-control placeholder-no-fix" type="text" autocomplete="off" id="dr_sms" name="sms"  placeholder="短信验证" >
        </div>
        <div class="col-6">
          <button class="btn blue" onclick="dr_ajax_url('/index.php?s=member&c=api&m=register_code&id='+$('#dr_phone').val()+'&code='+$('#dr_code').val())" type="button">获取手机验证码</button>
        </div>
      </div>
      {/if}
      
      {if $register.sms || $register.code}
      <div class="col-12" id="dr_row_code">
        <div class="col-6">
          <input class="form-control placeholder-no-fix" type="text" autocomplete="off" id="dr_code" name="code"  placeholder="验证码">
        </div>
        <div class="col-6"> {dr_code(120, 35)} </div>
      </div>
      {/if}
      <div class="col-12">
        <button type="button" class="btn btn--primary" onclick="dr_ajax_member('{dr_member_url('register/index')}', 'myform_reg');" style="width: 100%">立即注册</button>
      </div>
      <div class="col-12">
        <div class="input-checkbox">
          <input type="checkbox" name="is_protocol" value="1" checked id="input-assigned-0">
          <label for="input-assigned-0"></label>
        </div>
        <span>我已阅读并同意<a href="javascript:dr_show_protocol();"><span>《用户注册协议》</span> </a></span> </div>
    </div>
  </form>
</div>


方案

  • 靠悬赏赚钱买授权 #1 · 2019-12-13 12:21:07
    代码签名加一句
    {php $register=$ci->member_cache['register']; }
    后面用你的代码
  • yogaq #2 · 2019-12-13 20:42:01
    满意答案
    靠悬赏(设置悬赏)赚钱买授权不管用呀,连用户名表单都不显示!
  • 靠悬赏赚钱买授权 #3 · 2019-12-13 21:40:55
    {php $register=$ci->member_cache['register']; }
    <div class="col-md-11 col-lg-10">
      <h2>创建一个账号</h2>
      <p class="lead">个人账号或者企业账号</p>
      <div class="row">
        <div class="col-12"> 
    	 {loop $register.group $i}
          <div class="col-lg-6 col-md-6 col-md-offset-6 col-6"> <a class="btn block btn--icon bg--twitter type--uppercase {if $groupid == $i}active{/if}"  target="_blank" href="{dr_member_url('register/index', ['groupid' => $i])}"> <span class="btn__text"> <i class="socicon-twitter"></i> {$group[$i][name]} </span> </a> </div>
          {/loop} 
          </div>
      </div>
      <hr data-title="OR">
      <form id="myform_reg">
        {dr_form_hidden()}
        <div class="row form-body" style="padding-bottom:0"> {if in_array('username', $register.field)}
          <div class="col-12" id="dr_row_username">
            <input type="text" class="form-control input-large" name="data[username]" id="dr_username" placeholder="用户名" >
          </div>
          {/if}
          
          {if in_array('email', $register.field)}
          <div class="col-12" id="dr_row_email">
            <input type="text" class="form-control input-large" name="data[email]" id="dr_email" placeholder="邮箱" >
          </div>
          {/if}
          
          {if in_array('phone', $register.field)}
          <div class="col-12 " id="dr_row_phone">
            <input type="text" class="form-control input-large" name="data[phone]" id="dr_phone" placeholder="手机号" >
          </div>
          {/if}
          <div class="col-12 " id="dr_row_password">
            <input type="password" class="form-control input-large" name="data[password]" id="dr_password" placeholder="密码" >
          </div>
          <div class="col-12" id="dr_row_password2">
            <input type="password" class="form-control input-large" name="data[password2]" id="dr_password2" placeholder="确认密码" >
          </div>
          {$myfield}
          
          {if $register.sms}
          <div class="col-12" id="dr_row_sms">
            <div class="col-6">
              <input class="form-control placeholder-no-fix" type="text" autocomplete="off" id="dr_sms" name="sms"  placeholder="短信验证" >
            </div>
            <div class="col-6">
              <button class="btn blue" onclick="dr_ajax_url('/index.php?s=member&c=api&m=register_code&id='+$('#dr_phone').val()+'&code='+$('#dr_code').val())" type="button">获取手机验证码</button>
            </div>
          </div>
          {/if}
          
          {if $register.sms || $register.code}
          <div class="col-12" id="dr_row_code">
            <div class="col-6">
              <input class="form-control placeholder-no-fix" type="text" autocomplete="off" id="dr_code" name="code"  placeholder="验证码">
            </div>
            <div class="col-6"> {dr_code(120, 35)} </div>
          </div>
          {/if}
          <div class="col-12">
            <button type="button" class="btn btn--primary" onclick="dr_ajax_member('{dr_member_url('register/index')}', 'myform_reg');" style="width: 100%">立即注册</button>
          </div>
          <div class="col-12">
            <div class="input-checkbox">
              <input type="checkbox" name="is_protocol" value="1" checked id="input-assigned-0">
              <label for="input-assigned-0"></label>
            </div>
            <span>我已阅读并同意<a  target="_blank" href="javascript:dr_show_protocol();"><span>《用户注册协议》</span> </a></span> </div>
        </div>
      </form>
    </div>
    明明可以啊,实测有效啊
  • yogaq #4 · 2019-12-14 11:53:28
    @yogaq:按楼主操作 还是不行

迅睿系统漏洞

多语言翻译Seolang
多语言翻译Seolang(2026-09-21)
1. 新增译文数据备份恢复页面,支持断点续传 2. 多语言声明中心...
AI文章生成器
AI文章生成器(2026-09-20)
任务拆分独立配置 新增AI生成关键词 新增指令模板 新增品牌信...
GEO系统
GEO系统(2026-09-20)
后台 AEO 与运营端对齐:区域、跑批、CSV、补强、剧本均可在迅睿...
GeoSeo工具箱
GeoSeo工具箱(2026-09-18)
修正菜单规范
后台二次登陆验证
后台二次登陆验证(2026-09-18)
新增邮箱验证 新增短信验证
京东云短信
京东云短信(2026-09-17)
- 验证码有效期改只读展示 - 有效期旁新增系统设置按钮 - 保...
创蓝短信
创蓝短信(2026-09-17)
- 验证码有效期改只读展示 - 有效期旁新增系统设置按钮 - 保...
火山引擎短信
火山引擎短信(2026-09-17)
- 验证码有效期改只读展示 - 有效期旁新增系统设置按钮 - 保...
外贸多语言建站
外贸多语言建站(2026-09-17)
优化独立内容过滤机制