<!--{include file="<!--{$oetplpath}-->block_head.tpl"}-->
<!--{if $a == "run"}-->
<div class="layui-fluid oe_fluid">

  <form class="layui-form" id="mysearch" action="<!--{$oefile}-->&c=<!--{$c}-->" method="post">
  <div class="oe_breadcrumb_box clearfix">
    <div class="layui-breadcrumb fl" lay-filter="breadcrumb" style="visibility: visible;">
      <a href="javascript:;">会员管理</a><span lay-separator="">/</span>
      <a href="javascript:;">认证管理</a><span lay-separator="">/</span>
      <a><cite>自助认证(三要素实名认证：姓名、身份证和手机号)</cite></a>
    </div>
  </div>
  <!--//top end -->
  
  <div class="oe_searchbar layui-form">
    <div class="more_search_open"></div>
    <div class="layui-form-item">
      <div class="layui-inline">
        <div class="layui-form-label">会员UID：</div>
        <div class="layui-input-inline input-100">
          <input type="text" name="suserid" id="suserid" class="layui-input" value="<!--{if $suserid > 0}--><!--{$suserid}--><!--{/if}-->" />
        </div>
      </div>
      <div class="layui-inline">
        <div class="layui-form-label">用户名：</div>
        <div class="layui-input-inline input-120">
          <input type="text" name="susername" id="susername" class="layui-input" value="<!--{$susername}-->" />
        </div>
      </div>
      
      <div class="layui-inline">
        <div class="layui-form-label">手机号：</div>
        <div class="layui-input-inline input-120">
          <input type="text" name="smobile" id="smobile" class="layui-input" value="<!--{$smobile}-->" />
        </div>
      </div>
      
      
      <div class="layui-inline">
        <div class="layui-form-label">姓名：</div>
        <div class="layui-input-inline input-120">
          <input type="text" name="struename" id="struename" class="layui-input" value="<!--{$struename}-->" />
        </div>
      </div>
      <div class="layui-inline">
        <div class="layui-form-label">身份证号：</div>
        <div class="layui-input-inline input-150">
          <input type="text" name="sidnumber" id="sidnumber" class="layui-input" value="<!--{$sidnumber}-->" />
        </div>
      </div>
      <br />
      
      <div class="layui-inline">
        <div class="layui-form-label">实名状态：</div>
        <div class="layui-input-inline input-150">
          <select name="srzflag" id="srzflag">
            <option value="">不限</option>
            <option value="1"<!--{if $srzflag == '1'}--> selected<!--{/if}-->>实名匹配</option>
            <option value="2"<!--{if $srzflag == '2'}--> selected<!--{/if}-->>实名不匹配</option>
            <option value="3"<!--{if $srzflag == '3'}--> selected<!--{/if}-->>实名失败</option>
            <option value="4"<!--{if $srzflag == '4'}--> selected<!--{/if}-->>待实名</option>
          </select>
        </div>
      </div>
      
      <div class="layui-inline">
        <div class="layui-form-label">支付状态：</div>
        <div class="layui-input-inline input-150">
          <select name="spayflag" id="spayflag">
            <option value="">不限</option>
            <option value="1"<!--{if $spayflag == '1'}--> selected<!--{/if}-->>已支付</option>
            <option value="2"<!--{if $spayflag == '2'}--> selected<!--{/if}-->>未支付</option>
          </select>
        </div>
      </div>
      
      
      <div class="layui-inline">
        <button class="layui-btn layui-btn-sm search" id="but_submit_search2" lay-submit lay-filter="searchform2">
          <i class="layui-icon layui-icon-search"></i>
          搜索
          <span class="oe_btn_loading layui-anim layui-icon layui-anim-rotate layui-anim-loop" style="display:none;">&#xe63d;</span>
        </button>
      </div>
      
    </div>
  </div>
  <!--//search End -->
  </form>

  <div class="oe_table_wrap layui-form">
    <div class="oe_tbl_tool clearfix">
      <div class="oe_gnbar clearfix">
        <div class="select btn fl">
          <input type="checkbox" name="allid[]" lay-skin="primary" title="全选" lay-filter="selectAll">
        </div>
        <div class="btn del fl del_line" f="handle-array" data-form="myform">
          <i class="layui-icon layui-icon-delete"></i>
          <span>删除</span>
        </div>
      </div>
      <div class="oe_tongji_bar clearfix current">
        <span><b><!--{$total}--></b> 条记录</span>
      </div>
    </div>
    
    <form class="layui-form" id="myform" action="<!--{$oefile}-->&c=<!--{$c}-->" method="post">
    <input type="hidden" name="a" id="a" value="del" />
    <table class="layui-table">
      <thead>
        <tr>
          <th width="5%">ID</th>
          <th width="7%">UID</th>
          <th width="6%">用户名</th>
          <th width="10%">手机号</th>
          <th width="5%">姓名</th>
          <th width="8%">身份证</th>
          <th width="4%">性别</th>
          <th width="8%">归属地</th>
          <th width="6%">费用</th>
          <th width="7%">支付状态</th>
          <th width="8%">提交时间</th>
          <th width="7%">状态</th>
          <th width="8%">返回结果</th>
          <th width="8%">返回时间</th>
          <th>操作</th>
        </tr>
      </thead>
      
      <!--{if empty($yunrz)}-->
      <tr>
        <td colspan="14" class="text_center">没有符合条件的信息</td>
      </tr>
      <!--{else}-->
      <!--{foreach $yunrz as $volist}-->
      <tr>
        <td class="check text_center">
          <input type="checkbox" name="id[]" lay-skin="primary" value="<!--{$volist.rzid}-->" />
          <!--{$volist.rzid}-->
        </td>
        
        <td class="text_center">
          <!--{if $volist.userid > 0}-->
          <a href="<!--{$urlpath}-->index.php?c=home&a=detail&id=<!--{$volist.userid}-->" target="_blank"><!--{$volist.userid}--></a>
          <!--{else}-->
          --
          <!--{/if}-->
        </td>
        <td class="text_center">
          <!--{if $volist.userid > 0}-->
          <a href="<!--{$oefile}-->&c=user&a=view&id=<!--{$volist.userid}-->"><!--{hook mod="user" item="username" type="text" value=$volist.userid}--></a>
          <!--{else}-->
          --
          <!--{/if}-->
        </td>
        <td class="text_center"><!--{$volist.mobile}--></td>
        <td class="text_center"><!--{$volist.truename}--></td>
        <td class="text_center"><!--{$volist.idnumber}--></td>
        <td class="text_center">
          <!--{if $volist.sex > 0}-->
          <!--{hook mod="var" item="gender" type="text" value=$volist.sex}-->
          <!--{else}-->
          --
          <!--{/if}-->
        </td>
        <td class="text_center">
          <!--{if !empty($volist.area)}-->
          <!--{$volist.area}-->
          <!--{else}-->
          --
          <!--{/if}-->
        </td>
        <td class="text_center">
          ¥<!--{$volist.fee}-->
        </td>
        <td class="text_center">
          <!--{if $volist.fee > 0}-->
          <!--{if $volist.payflag == 1}-->
          <font color="orange">已支付</font>
          <!--{else}-->
          待支付
          <!--{/if}-->
          <!--{else}-->
          --
          <!--{/if}-->
        </td>
        <td class="text_center">
          <!--{$volist.addtime|date_format:"%Y-%m-%d"}--><br />
          <!--{$volist.addtime|date_format:"%H:%M:%S"}-->
        </td>
        <td class="text_center">
          <!--{if $volist.rzflag == '1'}-->
          <font color="green">实名匹配</font>
          <!--{elseif $volist.rzflag == '2'}-->
          <font color="blue">实名不匹配</font>
          <!--{elseif $volist.rzflag == '3'}-->
          <font color="red">实名失败</font>
          <!--{else}-->
          待实名
          <!--{/if}-->
        </td>
        <td class="text_center" title="请求次数：<!--{$volist.reqstimes}-->">
          <!--{if !empty($volist.retmsg)}-->
          <!--{$volist.retmsg}-->
          <!--{else}-->
          --
          <!--{/if}-->
        </td>
        <td class="text_center">
          <!--{if $volist.rettime > 0}-->
          <!--{$volist.rettime|date_format:"%Y-%m-%d"}--><br />
          <!--{$volist.rettime|date_format:"%H:%M:%S"}-->
          <!--{else}-->
          --
          <!--{/if}-->
        </td>
        <td class="text_right">
          <!--{if $volist.rzflag != "1" && $volist.idrz != '1'}-->
          <a href="javascript:;" f="pop_makerz" data-uid="<!--{$volist.userid}-->" class="layui-btn layui-btn-xs" style="margin-bottom:5px;">认证</a>
          <!--{/if}-->
          
          <!--{if $volist.rzflag == '0' || $volist.rzflag == '3'}-->
          <a href="javascript:;" f="but_again" data-id="<!--{$volist.rzid}-->" class="layui-btn layui-btn-normal layui-btn-xs" style="margin-bottom:5px;">补单</a>
          <!--{/if}-->
          <a href="javascript:;" data-text="确定要删除吗？" f="handle-one" data-url="<!--{$oefile}-->&c=<!--{$c}-->&a=del&id[]=<!--{$volist.rzid}-->&<!--{$comeurl}-->" class="layui-btn layui-btn-xs layui-btn-danger" style="margin-bottom:5px;">删除</a>
        </td>
      </tr>
      <!--{/foreach}-->
      <!--{/if}-->
    </table>
    </form>
    
    <div class="oe_page_box"><!--{$showpage}--></div>
    
  </div>
</div>

<script type="text/javascript">
$(function(){
    
    //认证
    $(document).on("click", "[f='but_again']", function(){
        $id = $(this).attr("data-id");
        layer.confirm("是否要提交认证？RP诚信接口将可能产生扣费，请确保开发者帐号有足够的余额。", {
                btn: ["确定","取消"] //按钮
            }, 
            function(){
                layer.closeAll();
                
                $.ajax({
                    type: "POST",
                    url: "<!--{$oefile}-->&c=yunrz",
                    cache: false,
                    data: {
                        a:"again", id:$id, r:get_rndnum(8)
                    },
                    dataType: "json",
                    success: function(data) {
                      $json = eval(data);
                      $response = $json.response;
                      $result = $json.result;
                      if ($response == '1') {
                          layer.msg("实名匹配");
                      }
                      else if ($response == "2") {
                          layer.msg("实名不匹配");
                      }
                      else if ($response == "3") {
                          layer.msg("实名失败");
                      }
                      else {
                          if ($result.length == 0) {
                              $result = "操作失败，请检查";
                          }
                          layer.msg($result);
                      }
                      
                      setTimeout(function(){
                          window.location.reload();
                      }, 800);
                    },
                    error: function() {
                        layer.msg("系统繁忙，请稍后再试！");
                    }
                });
            }, 
            function(){
                layer.closeAll();
            }
        ); 
    
    });
    
});
</script>
<!--{/if}-->

</body>
</html>