联系官方销售客服

1835022288

028-61286886

开发框架 版主:迅睿框架研发组
首页注册请大神帮忙修改下!谢谢!创建一个账号个人账号或者企业
类型:迅睿CMS 更新时间:2019-12-14 11:53:28 用户注册

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

<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
    Chrome 0
    代码签名加一句
    {php $register=$ci->member_cache['register']; }
    后面用你的代码
  • yogaq
    #2楼    yogaq
    2019-12-13 20:42:01
    Chrome 0
    靠悬赏(设置悬赏)赚钱买授权不管用呀,连用户名表单都不显示!
    满意答案
  • 靠悬赏赚钱买授权
    #3楼    靠悬赏赚钱买授权
    2019-12-13 21:40:55
    Chrome 0
    {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楼    yogaq
    2019-12-14 11:53:28
    Chrome 0
    @yogaq:按楼主操作 还是不行