<!--{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="layui-form-item">
      <div class="layui-inline">
        <div class="layui-form-label">所在地区：</div>
        <div class="layui-input-inline input-120">
          <!--//9.10.12 -->
          <!--{assign var="distlist" value=vo_list("mod={area0} where={v.parentid='0'} orderby={v.orders ASC}")}-->
          <select name="sdist1" id="sdist1" lay-filter="area" data-depth="1" data-name="sdist" data-text="=请选择=">
            <option value="">=请选择=</option>
            <!--{foreach $distlist as $val}-->
            <option value="<!--{$val.areaid}-->"<!--{if $sdist1 == $val.areaid}--> selected<!--{/if}-->><!--{$val.areaname}--></option>
            <!--{/foreach}-->
          </select>
        </div>
        <div class="layui-input-inline input-120" id="json_sdist2">
          <!--{if $sdist1 > 0}-->
          <!--{assign var="distlist2" value=vo_list("mod={area} where={v.parentid='<!--{$sdist1}-->'}")}-->
          <select name="sdist2" id="sdist2" lay-filter="area" data-depth="2" data-name="sdist" data-text="=请选择=">
            <option value="">=请选择=</option>
            <!--{foreach $distlist2 as $val}-->
            <option value="<!--{$val.areaid}-->"<!--{if $sdist2 == $val.areaid}--> selected<!--{/if}-->><!--{$val.areaname}--></option>
            <!--{/foreach}-->
          </select>
          <!--{else}-->
          <select name="sdist2" id="sdist2" lay-filter="area">
            <option value="">=请选择=</option>
          </select>
          <!--{/if}-->
        </div>
        <div class="layui-input-inline input-120" id="json_sdist3">
          <!--{if $sdist2 > 0}-->
          <!--{assign var="distlist3" value=vo_list("mod={area} where={v.parentid='<!--{$sdist2}-->'}")}-->
          <select name="sdist3" id="sdist3" lay-filter="area" data-depth="3" data-name="sdist" data-text="=请选择=">
            <option value="">=请选择=</option>
            <!--{foreach $distlist3 as $val}-->
            <option value="<!--{$val.areaid}-->"<!--{if $sdist3 == $val.areaid}--> selected<!--{/if}-->><!--{$val.areaname}--></option>
            <!--{/foreach}-->
          </select>
          <!--{else}-->
          <select name="sdist3" id="sdist3" lay-filter="area">
            <option value="">=请选择=</option>
          </select>
          <!--{/if}-->
        </div>

      </div>
      <br />
      <div class="layui-inline">
        <div class="layui-form-label">&nbsp;会员UID：</div>
        <div class="layui-input-inline input-150">
          <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-150">
          <input type="text" name="susername" id="susername"  class="layui-input" value="<!--{$susername}-->" />
        </div>
      </div>
      <div class="layui-inline">
        <div class="layui-form-label">&nbsp;手&nbsp;机&nbsp;号：</div>
        <div class="layui-input-inline input-150">
          <input type="text" name="smobile" id="smobile"  class="layui-input" value="<!--{$smobile}-->" />
        </div>
      </div>
      <br />
      <div class="layui-inline">
        <div class="layui-form-label">性&#12288;&#12288;别：</div>
        <div class="layui-input-inline input-150">
          <!--{hook mod="var" item="gender" name="sgender" type="select" text="不限" value=$sgender}-->
        </div>
      </div>
      
      <div class="layui-inline">
        <div class="layui-form-label">姓&#12288;名：</div>
        <div class="layui-input-inline input-150">
          <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>
      
    </div>
    
    <div class="layui-form-item">
      <div class="layui-form-label">认证类型：</div>
      <div class="layui-inline"><input type="checkbox" lay-skin="primary" name="sidrz" id="sidrz" title="身份证" value="1"<!--{if $sidrz == '1'}--> checked<!--{/if}--> /></div>
      <div class="layui-inline"><input type="checkbox" lay-skin="primary" name="smobilerz" id="smobilerz" title="手机" value="1"<!--{if $smobilerz == '1'}--> checked<!--{/if}--> /></div>
      <div class="layui-inline"><input type="checkbox" lay-skin="primary" name="semailrz" id="semailrz" title="邮箱" value="1"<!--{if $semailrz == '1'}--> checked<!--{/if}--> /></div>
      <div class="layui-inline"><input type="checkbox" lay-skin="primary" name="sqqrz" id="sqqrz" title="QQ" value="1"<!--{if $sqqrz == '1'}--> checked<!--{/if}--> /></div>
      <div class="layui-inline"><input type="checkbox" lay-skin="primary" name="shouserz" id="shouserz" title="房子" value="1"<!--{if $shouserz == '1'}--> checked<!--{/if}--> /></div>
      <div class="layui-inline"><input type="checkbox" lay-skin="primary" name="scarrz" id="scarrz" title="车子" value="1"<!--{if $scarrz == '1'}--> checked<!--{/if}--> /></div>
      <div class="layui-inline"><input type="checkbox" lay-skin="primary" name="sedurz" id="sedurz" title="学历" value="1"<!--{if $smobilerz == '1'}--> checked<!--{/if}--> /></div>
      <div class="layui-inline"><input type="checkbox" lay-skin="primary" name="smarryrz" id="smarryrz" title="婚况" value="1"<!--{if $smarryrz == '1'}--> checked<!--{/if}--> /></div>
    </div>
    <div class="layui-form-item">
      <div class="layui-inline">
        <div class="layui-form-label">排&#12288;&#12288;序：</div>
        <div class="layui-input-inline input-150">
          <select name="sorderby" id="sorderby">
          <option value="">不限</option>
          <option value="id_desc"<!--{if $sorderby == 'id_desc'}--> selected<!--{/if}-->>注册_升序</option>
          <option value="id_asc"<!--{if $sorderby == 'id_asc'}--> selected<!--{/if}-->>注册_降序</option>
          <option value="login_desc"<!--{if $sorderby == 'login_desc'}--> selected<!--{/if}-->>登录_升序</option>
          <option value="login_asc"<!--{if $sorderby == 'login_asc'}--> selected<!--{/if}-->>登录_降序</option>

          <option value="idrz_desc"<!--{if $sorderby == 'idrz_desc'}--> selected<!--{/if}-->>身份认证_升序</option>
          <option value="idrz_asc"<!--{if $sorderby == 'idrz_asc'}--> selected<!--{/if}-->>身份认证_降序</option>
          <option value="houserz_desc"<!--{if $sorderby == 'houserz_desc'}--> selected<!--{/if}-->>房子认证_升序</option>
          <option value="houserz_asc"<!--{if $sorderby == 'houserz_asc'}--> selected<!--{/if}-->>房子认证_降序</option>
          <option value="carrz_desc"<!--{if $sorderby == 'carrz_desc'}--> selected<!--{/if}-->>车子认证_升序</option>
          <option value="carrz_asc"<!--{if $sorderby == 'carrz_asc'}--> selected<!--{/if}-->>车子认证_降序</option>
          <option value="edurz_desc"<!--{if $sorderby == 'edurz_desc'}--> selected<!--{/if}-->>学历认证_升序</option>
          <option value="edurz_asc"<!--{if $sorderby == 'edurz_asc'}--> selected<!--{/if}-->>学历认证_降序</option>
          </select>
        </div>
      </div>
      <div class="layui-inline">
        <button class="layui-btn layui-btn-sm search" id="btn_search" 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>
  </form>
  
  <div class="oe_table_wrap layui-form">
    <table class="layui-table">
      <thead>
        <tr>
          <th width="7%">UID</th>
          <th width="4%">头像</th>
          <th width="10%">用户名</th>
          <th width="6%">姓名</th>
          <th width="4%">性别</th>
          <th width="4%">年龄</th>
          <th width="4%">婚况</th>
          <th width="7%">地区</th>
          <th width="4%">手机</th>
          <th width="4%">邮箱</th>
          <th width="4%">实名</th>
          <th width="4%">QQ</th>
          <th width="4%">房子</th>
          <th width="4%">车子</th>
          <th width="4%">学历</th>
          <th width="7%">婚况证明</th>
          <th width="9%">注册时间</th>
          <th>操作</th>
        </tr>
      </thead>
      <!--{if empty($user)}-->
      <tr>
        <td class="text_center" colspan="19">没有符合条件的信息</td>
      </tr>
      <!--{else}-->
      <!--{foreach $user as $volist}-->
       <tr>
        <td class="text_center">
          <a href="<!--{$urlpath}-->index.php?c=home&a=detail&id=<!--{$volist.userid}-->" target="_blank"><!--{$volist.userid}--></a>
        </td>
        <td class="text_center drop">
          <!--{if !empty($volist.headimg)}-->
          <div class="down">
            <div>
              <img src="<!--{$urlpath}-->tpl/static/images/loading_img.png" data-src="<!--{$volist.headimg_0}-->" width="20px" height="20px" preload="0" f="zoom_avatar" />
            </div>
            <div class="sub">
              <img src="<!--{$urlpath}-->tpl/static/images/loading_img.png" data-src="<!--{$volist.headimg}-->" f="viewimg" />
            </div>
          </div>
          <!--{else}-->
          --
          <!--{/if}-->
        </td>
        <td class="text_center">
          <a href="<!--{$oefile}-->&c=user&a=view&id=<!--{$volist.userid}-->">
          <!--{$volist.username}-->
          </a>
        </td>
        <td class="text_center"><!--{$volist.truename}--></td>
        <td class="text_center">
          <!--{if $volist.gender=='1'}-->
          <i class="iconfont icon-nan" title="男"></i>
          <!--{else}-->
          <i class="iconfont icon-nv" title="女"></i>
          <!--{/if}-->
          <!--{hook mod="var" item="gender" type="text" value=$volist.gender}-->
        </td>
        <td class="text_center"><!--{$volist.age}--></td>
        <td class="text_center"><!--{hook mod="var" item="marry" type="text" value=$volist.marry}--></td>
        <td class="text_center"><!--{$volist.city}--></td>
        <td class="text_center">
          <!--{if $volist.mobilerz == '1'}-->
          <img src="<!--{$urlpath}-->tpl/admin/images/allow.gif" />
          <!--{else}-->
          <img src="<!--{$urlpath}-->tpl/admin/images/forbid.gif" />
          <!--{/if}-->
        </td>
        <td class="text_center">
          <!--{if $volist.emailrz == '1'}-->
          <img src="<!--{$urlpath}-->tpl/admin/images/allow.gif" />
          <!--{else}-->
          <img src="<!--{$urlpath}-->tpl/admin/images/forbid.gif" />
          <!--{/if}-->
        </td>
        <td class="text_center">
          <!--{if $volist.idrz == '1'}-->
          <img src="<!--{$urlpath}-->tpl/admin/images/allow.gif" />
          <!--{else}-->
          <img src="<!--{$urlpath}-->tpl/admin/images/forbid.gif" />
          <!--{/if}-->
        </td>
        <td class="text_center">
          <!--{if $volist.qqrz == '1'}-->
          <img src="<!--{$urlpath}-->tpl/admin/images/allow.gif" />
          <!--{else}-->
          <img src="<!--{$urlpath}-->tpl/admin/images/forbid.gif" />
          <!--{/if}-->
        </td>
        <td class="text_center">
          <!--{if $volist.houserz == '1'}-->
          <img src="<!--{$urlpath}-->tpl/admin/images/allow.gif" />
          <!--{else}-->
          <img src="<!--{$urlpath}-->tpl/admin/images/forbid.gif" />
          <!--{/if}-->
        </td>
        <td class="text_center">
          <!--{if $volist.carrz == '1'}-->
          <img src="<!--{$urlpath}-->tpl/admin/images/allow.gif" />
          <!--{else}-->
          <img src="<!--{$urlpath}-->tpl/admin/images/forbid.gif" />
          <!--{/if}-->
        </td>
        <td class="text_center">
          <!--{if $volist.edurz == '1'}-->
          <img src="<!--{$urlpath}-->tpl/admin/images/allow.gif" />
          <!--{else}-->
          <img src="<!--{$urlpath}-->tpl/admin/images/forbid.gif" />
          <!--{/if}-->
        </td>
        <td class="text_center">
          <!--{if $volist.marryrz == '1'}-->
          <img src="<!--{$urlpath}-->tpl/admin/images/allow.gif" />
          <!--{else}-->
          <img src="<!--{$urlpath}-->tpl/admin/images/forbid.gif" />
          <!--{/if}-->
        </td>
        <td class="text_center" title="<!--{$volist.addtime|date_format:"%Y-%m-%d %H:%M:%S"}-->"><!--{$volist.addtime|date_format:"%Y/%m/%d"}--></td>
        <td class="text_center">
          <a href="<!--{$oefile}-->&c=<!--{$c}-->&a=edit&id=<!--{$volist.userid}-->&<!--{$comeurl}-->" class="layui-btn layui-btn-xs layui-btn-normal">编辑</a>
        </td>
      </tr>
      <!--{/foreach}-->
      <!--{/if}-->
    </table>
    <div class="oe_page_box"><!--{$showpage}--></div>
  </div>
</div>
<script type="text/javascript">
$(function(){
    //预载图片 9.10.12
    preload_img();
});
</script>
<!--{/if}-->

<!--{if $a == 'edit'}-->
<div class="layui-fluid oe_fluid">
  <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="<!--{$oefile}-->&c=<!--{$c}-->&<!--{$comeurl}-->">诚信认证</a><span lay-separator="">/</span>
      <a><cite>修改认证</cite></a>
    </div>
    <div class="oe_tool_bar ft">
      <button class="layui-btn layui-btn-sm layui-btn-radius" id="but_submit_post2" lay-submit lay-filter="editform">
        编辑保存
        <span class="oe_btn_loading layui-anim layui-icon layui-anim-rotate layui-anim-loop" style="display:none;">&#xe63d;</span>
      </button>
      <a href="<!--{$oefile}-->&c=<!--{$c}-->&<!--{$comeurl}-->" class="layui-btn layui-btn-sm layui-btn-primary layui-btn-radius">返回列表</a>
    </div> 
  </div>
  
  <form id="myform" action="<!--{$oefile}-->&c=<!--{$c}-->&<!--{$comeurl}-->" method="post" />
  <input type="hidden" name="a" id="a" value="saveedit" />
  <input type="hidden" name="id" id="id" value="<!--{$id}-->" />
  <div class="layui-card oe_table_edit">
    <div class="layui-card-header">修改会员认证状态</div>
    <div class="layui-card-body">
      <table class="oe_tbl_form layui-form">
        <tr>
          <th>用户名：<span class="f_red"></span></th>
          <td>
            <!--{if !empty($user.headimg)}-->
            <img src="<!--{$user.headimg}-->" width="20px" height="20px" f="viewimg" />
            <!--{/if}-->
            uid:<!--{$user.userid}-->/<!--{$user.username}-->
          </td>
          <th>资料：<span class="f_red"></span></th>
          <td colspan="3">
            <!--{hook mod="var" item="gender" type="text" value=$user.gender}-->
            <!--{$user.age}-->岁
            <!--{hook mod="var" item="marry" type="text" value=$user.marry}--> 
            <!--{hook mod="var" item="education" type="text" value=$user.education}-->
            <!--{$user.height}-->CM
          </td>
        </tr>
        <tr>
          <th width="15%">手机号：<span class="f_red"></span></th>
          <td width="35%">
            <div class="tbl_input">
              <input type="text" name="mobile" id="mobile" class="layui-input input-150" f="user_checkcan" data-type="mobile" data-uid="<!--{$user.userid}-->" value="<!--{$user.mobile}-->" />
            </div>
            <span id="mobile_tips"></span>
             <div class="tbl_input input-100">             
              <select name="mobilerz" id="mobilerz">
                <option value="">认证状态</option>
                <option value="1"<!--{if $user.mobilerz == '1'}--> selected<!--{/if}-->>已认证</option>
                <option value="0"<!--{if $user.mobilerz == '0'}--> selected<!--{/if}-->>未认证</option>
              </select>
             </div>
          </td>
          <th width="15%">邮箱：<span class="f_red"></span></th>
          <td width="35%">
            <div class="tbl_input">
              <input type="text" name="email" id="email" class="layui-input input-150" f="user_checkcan" data-type="email" data-uid="<!--{$user.userid}-->" value="<!--{$user.email}-->" />
            </div>
            <span id="email_tips"></span>
            <div class="tbl_input input-100">            
              <select name="emailrz" id="emailrz">
                <option value="">认证状态</option>
              <option value="1"<!--{if $user.emailrz == '1'}--> selected<!--{/if}-->>已认证</option>
              <option value="0"<!--{if $user.emailrz == '0'}--> selected<!--{/if}-->>未认证</option>
              </select>
            </div>
          </td>
        </tr>
        <tr>
          <th>QQ号：<span class="f_red"></span></th>
          <td>
            <div class="tbl_input">
              <input type="text" name="qq" id="qq" class="layui-input input-150" f="user_checkcan" data-type="qq" data-uid="<!--{$user.userid}-->" value="<!--{$user.qq}-->" />
            </div>
            <span id="qq_tips"></span>
            <div class="tbl_input input-100">
              <select name="qqrz" id="qqrz">
                <option value="">认证状态</option>
              <option value="1"<!--{if $user.qqrz == '1'}--> selected<!--{/if}-->>已认证</option>
              <option value="0"<!--{if $user.qqrz == '0'}--> selected<!--{/if}-->>未认证</option>
              </select>
            </div>
          </td>
          <th>微信号：<span class="f_red"></span></th>
          <td>
            <div class="tbl_input">
              <input type="text" name="weixin" id="weixin" class="layui-input input-150" value="<!--{$user.weixin}-->" />
            </div>
            <span id="weixin_tips"></span>
            <div class="tbl_input input-100">
              <select name="weixinrz" id="weixinrz">
                <option value="">认证状态</option>
              <option value="1"<!--{if $user.weixinrz == '1'}--> selected<!--{/if}-->>已认证</option>
              <option value="0"<!--{if $user.weixinrz == '0'}--> selected<!--{/if}-->>未认证</option>
              </select>
            </div>
          </td>
        </tr>
        <tr>
          <th>姓名：<span class="f_red"></span></th>
          <td>
            <div class="tbl_input">
              <input type="text" name="truename" id="truename" class="layui-input input-150" value="<!--{$user.truename}-->" />
            </div>
          </td>
          <th>身份证号：<span class="f_red"></span></th>
          <td>
            <div class="tbl_input">
              <input type="text" name="idnumber" id="idnumber" class="layui-input input-150" f="user_checkcan" data-type="idnumber" data-uid="<!--{$user.userid}-->" value="<!--{$user.idnumber}-->" />
            </div>
            <span id="idnumber_tips"></span>
            <div class="tbl_input input-100">
              <select name="idrz" id="idrz">
                <option value="">认证状态</option>
                <option value="1"<!--{if $user.idrz == '1'}--> selected<!--{/if}-->>已认证</option>
                <option value="0"<!--{if $user.idrz == '0'}--> selected<!--{/if}-->>未认证</option>
                <option value="2"<!--{if $user.idrz == '2'}--> selected<!--{/if}-->>未通过</option>
              </select>
            </div>
          </td>
        </tr>
        <tr>
          <th>身份证正面：<span class="f_red"></span> </th>
          <td>
            <div class="layui-btn">
              <i class="layui-icon layui-icon-upload"></i>
              点击上传
              <input type="file" name="img1" id="img1" value="" f="but_upload_image" data-mod="paper" />
            </div>
            <div class="upload_loading" id="img1_loading" style="display:none;"></div>
            <input type="hidden" id="img1_thumb" name="img1_thumb" value="" />
            <input type="hidden" id="img1_url" name="paper1" value="<!--{$user.paper1}-->" />
 
            <div class="tblform_tips normal">&nbsp;&nbsp;&nbsp;预览：</div>
            <div class="upload_pic upload_pic_md" style="width:30px;height:30px;">
              <!--{if !empty($user.paper1)}-->
                <img src="<!--{$user.paper1}-->" width="30px" height="30px" id="img1_preview" f="viewimg" />
              <!--{else}-->
              <img src="<!--{$urlpath}-->tpl/static/images/waitimg.jpg" width="30px" height="30px" id="img1_preview" f="viewimg" />
              <!--{/if}-->
            </div>
            <a href="javascript:;" class="oe_deluploadimg" f="removeimg" data-preview="img1" data-input="img1">移除</a>
          </td>
          <th>身份证反面：<span class="f_red"></span> </th>
          <td>
            <div class="layui-btn">
              <i class="layui-icon layui-icon-upload"></i>
              点击上传
              <input type="file" name="img2" id="img2" value="" f="but_upload_image" data-mod="paper" />
            </div>
            <div class="upload_loading" id="img2_loading" style="display:none;"></div>
            <input type="hidden" id="img2_thumb" name="img2_thumb" value="" />
            <input type="hidden" id="img2_url" name="paper2" value="<!--{$user.paper2}-->" />
            
            <div class="tblform_tips normal">&nbsp;&nbsp;&nbsp;预览：</div>
            <div class="upload_pic upload_pic_md" style="width:30px;height:30px;">
              <!--{if !empty($user.paper2)}-->
              <img src="<!--{$user.paper2}-->" width="30px" height="30px" id="img2_preview" f="viewimg" />
              <!--{else}-->
              <img src="<!--{$urlpath}-->tpl/static/images/waitimg.jpg" width="30px" height="30px" id="img2_preview" f="viewimg" />
              <!--{/if}-->
            </div>
            <a href="javascript:;" class="oe_deluploadimg" f="removeimg" data-preview="img2" data-input="img2">移除</a>
          </td>
        </tr>
        <tr>
          <th>房子认证：<span class="f_red"></span> </th>
          <td>
            <div class="layui-btn">
              <i class="layui-icon layui-icon-upload"></i>
              点击上传
              <input type="file" name="himg" id="himg" value="" f="but_upload_image" data-mod="paper" />
            </div>
            <div class="upload_loading" id="himg_loading" style="display:none;"></div>
            <input type="hidden" id="himg_thumb" name="himg_thumb" value="" />
            <input type="hidden" id="himg_url" name="houseimg" value="<!--{$user.houseimg}-->" />
            
            <div class="tblform_tips normal">&nbsp;&nbsp;&nbsp;预览：</div>
            <div class="upload_pic upload_pic_md" style="width:30px;height:30px;">
              <!--{if !empty($user.houseimg)}-->
              <img src="<!--{$user.houseimg}-->" width="30px" height="30px" id="himg_preview" f="viewimg" />
              <!--{else}-->
              <img src="<!--{$urlpath}-->tpl/static/images/waitimg.jpg" width="30px" height="30px" id="himg_preview" f="viewimg" />
              <!--{/if}-->
            </div>
            <a href="javascript:;" class="oe_deluploadimg" f="removeimg" data-preview="himg" data-input="himg">移除</a>
          </td>
          <th>认证状态：</th>
          <td>
            <div class="tbl_input input-100">
              <select name="houserz" id="houserz">
                <option value="">认证状态</option>
                <option value="1"<!--{if $user.houserz == '1'}--> selected<!--{/if}-->>已认证</option>
                <option value="0"<!--{if $user.houserz == '0'}--> selected<!--{/if}-->>未认证</option>
                <option value="2"<!--{if $user.houserz == '2'}--> selected<!--{/if}-->>未通过</option>
              </select>
            </div>
            <div class="tblform_tips normal">
              <!--{if $user.housetime > 0}-->
              <!--{$user.housetime|date_format:"%Y-%m-%d %H:%M:%S"}-->
              <!--{/if}-->
            </div>
          </td>
        </tr>
        <tr>
          <th>车子认证：<span class="f_red"></span> </th>
          <td>
            <div class="layui-btn">
              <i class="layui-icon layui-icon-upload"></i>
              点击上传
              <input type="file" name="cimg" id="cimg" value="" f="but_upload_image" data-mod="paper" />
            </div>
            <div class="upload_loading" id="cimg_loading" style="display:none;"></div>
            <input type="hidden" id="cimg_thumb" name="cimg_thumb" value="" />
            <input type="hidden" id="cimg_url" name="carimg" value="<!--{$user.carimg}-->" />
            
            <div class="tblform_tips normal">&nbsp;&nbsp;&nbsp;预览：</div>
            <div class="upload_pic upload_pic_md" style="width:30px;height:30px;">
              <!--{if !empty($user.carimg)}-->
              <img src="<!--{$user.carimg}-->" width="30px" height="30px" id="cimg_preview" f="viewimg" />
              <!--{else}-->
              <img src="<!--{$urlpath}-->tpl/static/images/waitimg.jpg" width="30px" height="30px" id="cimg_preview" f="viewimg" />
              <!--{/if}-->
            </div>
            <a href="javascript:;" class="oe_deluploadimg" f="removeimg" data-preview="cimg" data-input="cimg">移除</a>
          </td>
          <th>认证状态：</th>
          <td>
            <div class="tbl_input input-100">
              <select name="carrz" id="carrz">
                <option value="">认证状态</option>
                <option value="1"<!--{if $user.carrz == '1'}--> selected<!--{/if}-->>已认证</option>
                <option value="0"<!--{if $user.carrz == '0'}--> selected<!--{/if}-->>未认证</option>
                <option value="2"<!--{if $user.carrz == '2'}--> selected<!--{/if}-->>未通过</option>
              </select>
            </div>

            <div class="tblform_tips normal">
              <!--{if $user.cartime > 0}-->
              <!--{$user.cartime|date_format:"%Y-%m-%d %H:%M:%S"}-->
              <!--{/if}-->
            </div>
          </td>
        </tr>
        <tr>
          <th>学历认证：<span class="f_red"></span> </th>
          <td>
            <div class="layui-btn">
              <i class="layui-icon layui-icon-upload"></i>
              点击上传
              <input type="file" name="eimg" id="eimg" value="" f="but_upload_image" data-mod="paper" />
            </div>
            <div class="upload_loading" id="eimg_loading" style="display:none;"></div>
            <input type="hidden" id="eimg_thumb" name="eimg_thumb" value="" />
            <input type="hidden" id="eimg_url" name="eduimg" value="<!--{$user.eduimg}-->" />
            
            <div class="tblform_tips normal">&nbsp;&nbsp;&nbsp;预览：</div>
            <div class="upload_pic upload_pic_md" style="width:30px;height:30px;">
              <!--{if !empty($user.eduimg)}-->
              <img src="<!--{$user.eduimg}-->" width="30px" height="30px" id="eimg_preview" f="viewimg" />
              <!--{else}-->
              <img src="<!--{$urlpath}-->tpl/static/images/waitimg.jpg" width="30px" height="30px" id="eimg_preview" f="viewimg" />
              <!--{/if}-->
            </div>
            <a href="javascript:;" class="oe_deluploadimg" f="removeimg" data-preview="eimg" data-input="eimg">移除</a>
          </td>
          <th>认证状态：</th>
          <td>
            <div class="tbl_input input-100">
              <select name="edurz" id="edurz">
                <option value="">认证状态</option>
                <option value="1"<!--{if $user.edurz == '1'}--> selected<!--{/if}-->>已认证</option>
                <option value="0"<!--{if $user.edurz == '0'}--> selected<!--{/if}-->>未认证</option>
                <option value="2"<!--{if $user.edurz == '2'}--> selected<!--{/if}-->>未通过</option>
              </select>
            </div>

            <div class="tblform_tips normal">
              <!--{if $user.edutime > 0}-->
              <!--{$user.edutime|date_format:"%Y-%m-%d %H:%M:%S"}-->
              <!--{/if}-->
            </div>
          </td>
        </tr>
        
        <tr>
          <th>婚况证明：<span class="f_red"></span> </th>
          <td>
            <div class="layui-btn">
              <i class="layui-icon layui-icon-upload"></i>
              点击上传
              <input type="file" name="mimg" id="mimg" value="" f="but_upload_image" data-mod="paper" />
            </div>
            <div class="upload_loading" id="mimg_loading" style="display:none;"></div>
            <input type="hidden" id="mimg_thumb" name="mimg_thumb" value="" />
            <input type="hidden" id="mimg_url" name="marryimg" value="<!--{$user.marryimg}-->" />
            
            <div class="tblform_tips normal">&nbsp;&nbsp;&nbsp;预览：</div>
            <div class="upload_pic upload_pic_md" style="width:30px;height:30px;">
              <!--{if !empty($user.marryimg)}-->
              <img src="<!--{$user.marryimg}-->" width="30px" height="30px" id="mimg_preview" f="viewimg" />
              <!--{else}-->
              <img src="<!--{$urlpath}-->tpl/static/images/waitimg.jpg" width="30px" height="30px" id="mimg_preview" f="viewimg" />
              <!--{/if}-->
            </div>
            <a href="javascript:;" class="oe_deluploadimg" f="removeimg" data-preview="mimg" data-input="mimg">移除</a>
          </td>
          <th>认证状态：</th>
          <td>
            <div class="tbl_input input-100">
              <select name="marryrz" id="marryrz">
                <option value="">认证状态</option>
                <option value="1"<!--{if $user.marryrz == '1'}--> selected<!--{/if}-->>已认证</option>
                <option value="0"<!--{if $user.marryrz == '0'}--> selected<!--{/if}-->>未认证</option>
                <option value="2"<!--{if $user.marryrz == '2'}--> selected<!--{/if}-->>未通过</option>
              </select>
            </div>

            <div class="tblform_tips normal">
              <!--{if $user.marryuptime > 0}-->
              <!--{$user.marryuptime|date_format:"%Y-%m-%d %H:%M:%S"}-->
              <!--{/if}-->
            </div>
          </td>
        </tr>
      </table>
    </div>
  </div>
  </form>
  
  <div class="oe_tbl_form_btn">
    <button class="layui-btn" id="but_submit_post" lay-submit lay-filter="editform">
      编辑保存
      <span class="oe_btn_loading layui-anim layui-icon layui-anim-rotate layui-anim-loop" style="display:none;">&#xe63d;</span>
    </button>
  </div>
  
</div>
<script type="text/javascript">
$(function(){

    layui.use('form', function(){
        $form = layui.form;
        //保存...
        $form.on('submit(editform)', function(data){
            $obj_id = data.elem.getAttribute("id");
            if (!$("#"+$obj_id).hasClass("forbid_submit")) {
                $("#"+$obj_id).addClass("forbid_submit");
                if ($("#"+$obj_id).find("span").length > 0) {
                    $("#"+$obj_id).find("span").show();
                }
                $("#myform").submit();
            }
        });   
    });
    
});
</script>
<!--{/if}-->

<!--{if $a == "editidcard"}-->
<div class="layui-fluid oe_fluid">
  <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 class="oe_tool_bar ft">
      <a href="<!--{$oefile}-->&c=<!--{$c}-->&a=idcard&<!--{$comeurl}-->" class="layui-btn layui-btn-sm layui-btn-primary layui-btn-radius">返回列表</a>
    </div> 
  </div>

  <div class="layui-card oe_table_edit">
    <div class="layui-card-header">
      审核会员实名认证
    </div>
    <div class="layui-card-body">
      <table class="oe_tbl_form layui-form">
        <tr>
          <th width="15%">会员UID：<span class="f_red"></span></th>
          <td width="35%"><!--{$user.userid}--></td>
          <th width="15%">用户名：</th>
          <td width="35%">
            <!--{if !empty($user.headimg)}-->
            <img src="<!--{$user.headimg}-->" width="20px" height="20px" f="viewimg" />
            <!--{/if}-->
            <!--{$user.username}-->
          </td>
        </tr>
        <tr>
          <th>会员资料：</th>
          <td>
            <!--{hook mod="var" item="gender" type="text" value=$user.gender}-->
            <!--{$user.age}-->岁
            <!--{hook mod="var" item="marry" type="text" value=$user.marry}--> 
            <!--{hook mod="var" item="education" type="text" value=$user.education}-->
            <!--{$user.height}-->CM
          </td>
          <th>所在地区：</th>
          <td>
            <!--{if $user.dist1 > 0}-->
            <!--{area type="text" value=$user.dist1}--> <!--{area type="text" value=$user.dist2}-->
            <!--{else}-->
            --
            <!--{/if}-->
          </td>
        </tr>

        <tr>
          <th>身份证正面：</th>
          <td>
            <!--{if !empty($user.paper1)}-->
            <img src="<!--{$user.paper1}-->" width="20px" height="20px" f="viewimg" />
            <!--{/if}-->
          </td>
          <th>身份证反面：</th>
          <td>
            <!--{if !empty($user.paper2)}-->
            <img src="<!--{$user.paper2}-->" width="20px" height="20px" f="viewimg" />
            <!--{/if}-->
          </td>
        </tr>
        <tr>
          <th>手持身份证：</th>
          <td>
            <!--{if !empty($user.paper3)}-->
            <img src="<!--{$user.paper3}-->" width="20px" height="20px" f="viewimg" />
            <!--{/if}-->
          </td>
          <th>上传时间：</th>
          <td>
            <!--{if $user.idtime > 0}-->
            <!--{$user.idtime|date_format:"%Y-%m-%d %H:%M:%S"}-->
            <!--{else}-->
            --
            <!--{/if}-->
          </td>
        </tr>
        <tr>
          <th><font color="red">*</font> 姓名：</th>
          <td>
            <div class="tbl_input">
              <input type="text" name="truename" id="truename" class="layui-input input-200" value="<!--{$user.truename}-->" />
            </div>
          </td>
          <th><font color="red">*</font> 身份证号：</th>
          <td>
            <div class="tbl_input">
              <input type="text" name="idnumber" id="idnumber" class="layui-input input-200" value="<!--{$user.idnumber}-->" />
            </div>
          </td>
        </tr>
        <tr>
          <th><font color="red">*</font> 生日：</th> 
          <td colspan="3">
            <div class="tbl_input input-100"><!--{hook mod="year" name="ageyear" type="select" text="年" value=$user.ageyear}--></div>年-
            <div class="tbl_input input-100"><!--{hook mod="month" name="agemonth" type="select" text="月" value=$user.agemonth}--></div>月-
            <div class="tbl_input input-100"><!--{hook mod="day" name="ageday" type="select" text="日" value=$user.ageday}--></div>日
          </td>
        </tr>
      </table>
      
    </div>
  </div>
  
  <div class="oe_tbl_form_btn">
    <button class="layui-btn" f="but_post_save" data-id="<!--{$user.userid}-->">
      保存并返回
      <span class="oe_btn_loading layui-anim layui-icon layui-anim-rotate layui-anim-loop" style="display:none;">&#xe63d;</span>
    </button>
    
    <!--{if $user.idrz == '0'}-->
    <button class="layui-btn btn_red" f="but_post_audit" data-id="<!--{$user.userid}-->" data-type="unpass">
      <i class="layui-icon layui-icon-close"></i>不通过
      <span class="oe_btn_loading layui-anim layui-icon layui-anim-rotate layui-anim-loop" style="display:none;">&#xe63d;</span>
    </button>
    <button class="layui-btn btn_green" f="but_post_audit" data-id="<!--{$user.userid}-->" data-type="pass">
      <i class="layui-icon layui-icon-ok"></i>通过
      <span class="oe_btn_loading layui-anim layui-icon layui-anim-rotate layui-anim-loop" style="display:none;">&#xe63d;</span>
    </button>
    <!--{/if}-->
  </div>
  
</div>

<div class="oe_menu_inner">
  <div class="menu_head">
    操作
    <a class="layui-layer-ico enlarge" f="enlarge" href="javascript:;"></a>
    <a class="narrow" f="narrow" href="javascript:;"><span></span></a>
  </div>
  <div class="menu_body">
    <ul>
      <li><a href="javascript:;" f="pop_send_sms" data-uid="<!--{$user.userid}-->">发送短信通知</a></li>
      <li><a href="javascript:;" f="pop_send_email" data-uid="<!--{$user.userid}-->">发送邮件通知</a></li>
      <li><a href="javascript:;" f="pop_send_msg" data-uid="<!--{$user.userid}-->">发送站内通知</a></li>
    </ul>
  </div>
</div>
<script type="text/javascript">
$(function(){
    //渲染...
    layui.use(['element', 'form'], function(){
        
    });
    
    //保存并返回...
    $(document).on("click", "[f='but_post_save']", function(){
        $(this).find("span").show();
        _syn_save_data(function(){
            layer.msg("保存成功");
            setTimeout(function(){
                window.location.href = "<!--{$oefile}-->&c=<!--{$c}-->&a=idcard&<!--{$comeurl}-->";
            }, 500);
        });
    });
    
    //ajax 审核
    $(document).on("click", "[f='but_post_audit']", function(){
        $ageyear = $("#ageyear").val();
        if ($ageyear.length == 0) {
            layer.msg("请设置生日");
            return false;
        }
        $agemonth = $("#agemonth").val();
        if ($agemonth.length == 0) {
            layer.msg("请设置生日");
            return false;
        }
        $ageday = $("#ageday").val();
        if ($ageday.length == 0) {
            layer.msg("请设置生日");
            return false;
        }
        
        $(this).find("span").show();
        $id = $(this).attr("data-id");
        $type = $(this).attr("data-type");
        $url = "<!--{$oefile}-->&c=<!--{$c}-->&a=saveidcard&id="+$id+"&lotact="+$type+"&datatype=ajax";
        _syn_save_data();
        oelove_do_ajax($url, function(){
            layer.msg("操作成功");
            setTimeout(function(){
                window.location.href = "<!--{$oefile}-->&c=<!--{$c}-->&a=idcard&<!--{$comeurl}-->";
            }, 500);
        });
    });
});
//异步保存...
function _syn_save_data(call_back) {
    call_back = call_back || function(){};
    $ageyear = $("#ageyear").val();
    if ($ageyear.length == 0) {
        layer.msg("请设置生日");
        return false;
    }
    $agemonth = $("#agemonth").val();
    if ($agemonth.length == 0) {
        layer.msg("请设置生日");
        return false;
    }
    $ageday = $("#ageday").val();
    if ($ageday.length == 0) {
        layer.msg("请设置生日");
        return false;
    }
    
    $truename = $("#truename").val();
    $idnumber = $("#idnumber").val();
        
    $_url = "<!--{$oefile}-->&c=user&a=savedata&id=<!--{$user.userid}-->&type=idcard"+
            "&ageyear="+$ageyear+"&agemonth="+$agemonth+"&ageday="+$ageday+
            "&truename="+$truename+"&idnumber="+$idnumber;
    oelove_do_ajax($_url, call_back);
}
</script>
<!--{/if}-->

<!--{if $a == "edithouse"}-->
<div class="layui-fluid oe_fluid">
  <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 class="oe_tool_bar ft">
      <a href="<!--{$oefile}-->&c=<!--{$c}-->&a=house&<!--{$comeurl}-->" class="layui-btn layui-btn-sm layui-btn-primary layui-btn-radius">返回列表</a>
    </div> 
  </div>
  <div class="layui-card oe_table_edit">
    <div class="layui-card-header">
      审核会员房产资料
    </div>
    
    <div class="layui-card-body">
      <table class="oe_tbl_form layui-form">
        <tr>
          <th width="15%">会员UID：<span class="f_red"></span></th>
          <td width="35%"><!--{$user.userid}--></td>
          <th width="15%">用户名：</th>
          <td width="35%">
            <!--{if !empty($user.headimg)}-->
            <img src="<!--{$user.headimg}-->" width="20px" height="20px" f="viewimg" />
            <!--{/if}-->
            <!--{$user.username}-->
          </td>
        </tr>
        <tr>
          <th>会员资料：</th>
          <td>
            <!--{hook mod="var" item="gender" type="text" value=$user.gender}-->
            <!--{$user.age}-->岁
            <!--{hook mod="var" item="marry" type="text" value=$user.marry}--> 
            <!--{hook mod="var" item="education" type="text" value=$user.education}-->
            <!--{$user.height}-->CM
          </td>
          <th>所在地区：</th>
          <td>
            <!--{if $user.dist1 > 0}-->
            <!--{area type="text" value=$user.dist1}--> <!--{area type="text" value=$user.dist2}-->
            <!--{else}-->
            --
            <!--{/if}-->
          </td>
        </tr>

        <tr>
          <th>姓名：<span class="f_red"></span></th>
          <td>
            <!--{if !empty($user.truename)}-->
            <!--{$user.truename}-->
            <!--{else}-->
            --
            <!--{/if}-->
          </td>
          <th>身份证号：<span class="f_red"></span></th>
          <td>
            <!--{if !empty($user.idnumber)}-->
            <!--{$user.idnumber}-->
            <!--{else}-->
            --
            <!--{/if}-->
          </td>
        </tr>
        <tr>
          <th>房产证件：</th>
          <td>
            <!--{if !empty($user.houseimg)}-->
            <img src="<!--{$user.houseimg}-->" width="20px" height="20px" f="viewimg" />
            <!--{/if}-->
          </td>
          <th>上传时间：</th>
          <td colspan="3">
            <!--{if $user.housetime > 0}-->
            <!--{$user.housetime|date_format:"%Y-%m-%d %H:%M:%S"}-->
            <!--{else}-->
            --
            <!--{/if}-->
          </td>
        </tr>
        <tr>
          <th><font color="red">*</font> 购房情况：</th>
          <td colspan="3">
            <div class="tbl_input input-200">
              <!--{hook mod="var" item="house" name="house" type="select" text="=请选择=" value=$user.house}-->
            </div>
          </td>
        </tr>

      </table>
    </div>

  </div>
  
  <div class="oe_tbl_form_btn">
    <button class="layui-btn" f="but_post_save" data-id="<!--{$user.userid}-->">
      保存并返回
      <span class="oe_btn_loading layui-anim layui-icon layui-anim-rotate layui-anim-loop" style="display:none;">&#xe63d;</span>
    </button>
    
    <!--{if $user.houserz == '0'}-->
    <button class="layui-btn btn_red" f="but_post_audit" data-id="<!--{$user.userid}-->" data-type="unpass">
      <i class="layui-icon layui-icon-close"></i>不通过
      <span class="oe_btn_loading layui-anim layui-icon layui-anim-rotate layui-anim-loop" style="display:none;">&#xe63d;</span>
    </button>
    <button class="layui-btn btn_green" f="but_post_audit" data-id="<!--{$user.userid}-->" data-type="pass">
      <i class="layui-icon layui-icon-ok"></i>通过
      <span class="oe_btn_loading layui-anim layui-icon layui-anim-rotate layui-anim-loop" style="display:none;">&#xe63d;</span>
    </button>
    <!--{/if}-->
  </div>
  
</div>
<div class="oe_menu_inner">
  <div class="menu_head">
    操作
    <a class="layui-layer-ico enlarge" f="enlarge" href="javascript:;"></a>
    <a class="narrow" f="narrow" href="javascript:;"><span></span></a>
  </div>
  <div class="menu_body">
    <ul>
      <li><a href="javascript:;" f="pop_send_sms" data-uid="<!--{$user.userid}-->">发送短信通知</a></li>
      <li><a href="javascript:;" f="pop_send_email" data-uid="<!--{$user.userid}-->">发送邮件通知</a></li>
      <li><a href="javascript:;" f="pop_send_msg" data-uid="<!--{$user.userid}-->">发送站内通知</a></li>
    </ul>
  </div>
</div>
<script type="text/javascript">
$(function(){
    //渲染...
    layui.use(['element', 'form'], function(){
        
    });
    
    //保存并返回...
    $(document).on("click", "[f='but_post_save']", function(){
        $(this).find("span").show();
        _syn_save_data(function(){
            layer.msg("保存成功");
            setTimeout(function(){
                window.location.href = "<!--{$oefile}-->&c=<!--{$c}-->&a=house&<!--{$comeurl}-->";
            }, 500);
        });
    });
    
    //ajax 审核
    $(document).on("click", "[f='but_post_audit']", function(){
        $house = $("#house").val();
        if ($house.length == 0) {
            layer.msg("请选择购房情况");
            return false;
        }
    
        $(this).find("span").show();
        $id = $(this).attr("data-id");
        $type = $(this).attr("data-type");
        $url = "<!--{$oefile}-->&c=<!--{$c}-->&a=savehouse&id="+$id+"&lotact="+$type+"&datatype=ajax";
        _syn_save_data();
        oelove_do_ajax($url, function(){
            layer.msg("操作成功");
            setTimeout(function(){
                window.location.href = "<!--{$oefile}-->&c=<!--{$c}-->&a=house&<!--{$comeurl}-->";
            }, 500);
        });
    });
});
//异步保存...
function _syn_save_data(call_back) {
    call_back = call_back || function(){};
    $house = $("#house").val();
        if ($house.length == 0) {
            layer.msg("请选择购房情况");
            return false;
        }
    
    $_url = "<!--{$oefile}-->&c=user&a=savedata&id=<!--{$user.userid}-->&type=house&house="+$house;
    oelove_do_ajax($_url, call_back);
}
</script>
<!--{/if}-->

<!--{if $a == "editcar"}-->
<div class="layui-fluid oe_fluid">
  <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 class="oe_tool_bar ft">
      <a href="<!--{$oefile}-->&c=<!--{$c}-->&a=car&<!--{$comeurl}-->" class="layui-btn layui-btn-sm layui-btn-primary layui-btn-radius">返回列表</a>
    </div> 
  </div>
  <div class="layui-card oe_table_edit">
    <div class="layui-card-header">
      审核会员购车资料
    </div>
    
    <div class="layui-card-body">
      <table class="oe_tbl_form layui-form">
        <tr>
          <th width="15%">会员UID：</th>
          <td width="35%"><!--{$user.userid}--></td>
          <th width="15%">用户名：</th>
          <td width="35%">
            <!--{if !empty($user.headimg)}-->
            <img src="<!--{$user.headimg}-->" width="20px" height="20px" f="viewimg" />
            <!--{/if}-->
            <!--{$user.username}-->
          </td>
        </tr>
        <tr>
          <th>会员资料：</th>
          <td>
            <!--{hook mod="var" item="gender" type="text" value=$user.gender}-->
            <!--{$user.age}-->岁
            <!--{hook mod="var" item="marry" type="text" value=$user.marry}--> 
            <!--{hook mod="var" item="education" type="text" value=$user.education}-->
            <!--{$user.height}-->CM
          </td>
          <th>所在地区：</th>
          <td>
            <!--{if $user.dist1 > 0}-->
            <!--{area type="text" value=$user.dist1}--> <!--{area type="text" value=$user.dist2}-->
            <!--{else}-->
            --
            <!--{/if}-->
          </td>
        </tr>

        <tr>
          <th>姓名：<span class="f_red"></span></th>
          <td>
            <!--{if !empty($user.truename)}-->
            <!--{$user.truename}-->
            <!--{else}-->
            --
            <!--{/if}-->
          </td>
          <th>身份证号：<span class="f_red"></span></th>
          <td>
            <!--{if !empty($user.idnumber)}-->
            <!--{$user.idnumber}-->
            <!--{else}-->
            --
            <!--{/if}-->
          </td>
        </tr>
        <tr>
          <th>车子证件：</th>
          <td>
            <!--{if !empty($user.carimg)}-->
            <img src="<!--{$user.carimg}-->" width="20px" height="20px" f="viewimg" />
            <!--{/if}-->
          </td>
          <th>上传时间：</th>
          <td colspan="3">
            <!--{if $user.cartime > 0}-->
            <!--{$user.cartime|date_format:"%Y-%m-%d %H:%M:%S"}-->
            <!--{else}-->
            --
            <!--{/if}-->
          </td>
        </tr>
        
        <tr>
          <th><font color="red">*</font> 购车情况：</th>
          <td colspan="3">
            <div class="tbl_input input-200">
              <!--{hook mod="var" item="car" name="car" type="select" text="=请选择=" value=$user.car}-->
            </div>
          </td>
        </tr>

      </table>
    </div>

  </div>
  
  <div class="oe_tbl_form_btn">
    <button class="layui-btn" f="but_post_save" data-id="<!--{$user.userid}-->">
      保存并返回
      <span class="oe_btn_loading layui-anim layui-icon layui-anim-rotate layui-anim-loop" style="display:none;">&#xe63d;</span>
    </button>
    
    <!--{if $user.carrz == '0'}-->
    <button class="layui-btn btn_red" f="but_post_audit" data-id="<!--{$user.userid}-->" data-type="unpass">
      <i class="layui-icon layui-icon-close"></i>不通过
      <span class="oe_btn_loading layui-anim layui-icon layui-anim-rotate layui-anim-loop" style="display:none;">&#xe63d;</span>
    </button>
    <button class="layui-btn btn_green" f="but_post_audit" data-id="<!--{$user.userid}-->" data-type="pass">
      <i class="layui-icon layui-icon-ok"></i>通过
      <span class="oe_btn_loading layui-anim layui-icon layui-anim-rotate layui-anim-loop" style="display:none;">&#xe63d;</span>
    </button>
    <!--{/if}-->
  </div>
  
</div>
<div class="oe_menu_inner">
  <div class="menu_head">
    操作
    <a class="layui-layer-ico enlarge" f="enlarge" href="javascript:;"></a>
    <a class="narrow" f="narrow" href="javascript:;"><span></span></a>
  </div>
  <div class="menu_body">
    <ul>
      <li><a href="javascript:;" f="pop_send_sms" data-uid="<!--{$user.userid}-->">发送短信通知</a></li>
      <li><a href="javascript:;" f="pop_send_email" data-uid="<!--{$user.userid}-->">发送邮件通知</a></li>
      <li><a href="javascript:;" f="pop_send_msg" data-uid="<!--{$user.userid}-->">发送站内通知</a></li>
    </ul>
  </div>
</div>
<script type="text/javascript">
$(function(){
    //渲染...
    layui.use(['element', 'form'], function(){
        
    });
    
    //保存并返回...
    $(document).on("click", "[f='but_post_save']", function(){
        $(this).find("span").show();
        _syn_save_data(function(){
            layer.msg("保存成功");
            setTimeout(function(){
                window.location.href = "<!--{$oefile}-->&c=<!--{$c}-->&a=car&<!--{$comeurl}-->";
            }, 500);
        });
    });
    
    //ajax 审核
    $(document).on("click", "[f='but_post_audit']", function(){
        $car = $("#car").val();
        if ($car.length == 0) {
            layer.msg("请选择购车情况");
            return false;
        }
    
        $(this).find("span").show();
        $id = $(this).attr("data-id");
        $type = $(this).attr("data-type");
        $url = "<!--{$oefile}-->&c=<!--{$c}-->&a=savecar&id="+$id+"&lotact="+$type+"&datatype=ajax";
        _syn_save_data();
        oelove_do_ajax($url, function(){
            layer.msg("操作成功");
            setTimeout(function(){
                window.location.href = "<!--{$oefile}-->&c=<!--{$c}-->&a=car&<!--{$comeurl}-->";
            }, 500);
        });
    });
});
//异步保存...
function _syn_save_data(call_back) {
    call_back = call_back || function(){};
    $car = $("#car").val();
    if ($car.length == 0) {
        layer.msg("请选择购车情况");
        return false;
    }
    
    $_url = "<!--{$oefile}-->&c=user&a=savedata&id=<!--{$user.userid}-->&type=car&car="+$car;
    oelove_do_ajax($_url, call_back);
}
</script>
<!--{/if}-->


<!--{if $a == "editeducation"}-->
<div class="layui-fluid oe_fluid">
  <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 class="oe_tool_bar ft">
      <a href="<!--{$oefile}-->&c=<!--{$c}-->&a=education&<!--{$comeurl}-->" class="layui-btn layui-btn-sm layui-btn-primary layui-btn-radius">返回列表</a>
    </div> 
  </div>
  <div class="layui-card oe_table_edit">
    <div class="layui-card-header">
      审核会员学历情况
    </div>
    

    <div class="layui-card-body">
    
      <table class="oe_tbl_form layui-form">
        <tr>
          <th width="15%">会员UID：</th>
          <td width="35%"><!--{$user.userid}--></td>
          <th width="15%">用户名：</th>
          <td width="35%">
            <!--{if !empty($user.headimg)}-->
            <img src="<!--{$user.headimg}-->" width="20px" height="20px" f="viewimg" />
            <!--{/if}-->
            <!--{$user.username}-->
          </td>
        </tr>
        <tr>
          <th>会员资料：</th>
          <td>
            <!--{hook mod="var" item="gender" type="text" value=$user.gender}-->
            <!--{$user.age}-->岁
            <!--{hook mod="var" item="marry" type="text" value=$user.marry}--> 
            <!--{hook mod="var" item="education" type="text" value=$user.education}-->
            <!--{$user.height}-->CM
          </td>
          <th>所在地区：</th>
          <td>
            <!--{if $user.dist1 > 0}-->
            <!--{area type="text" value=$user.dist1}--> <!--{area type="text" value=$user.dist2}-->
            <!--{else}-->
            --
            <!--{/if}-->
          </td>
        </tr>

        <tr>
          <th>姓名：<span class="f_red"></span></th>
          <td>
            <!--{if !empty($user.truename)}-->
            <!--{$user.truename}-->
            <!--{else}-->
            --
            <!--{/if}-->
          </td>
          <th>身份证号：<span class="f_red"></span></th>
          <td>
            <!--{if !empty($user.idnumber)}-->
            <!--{$user.idnumber}-->
            <!--{else}-->
            --
            <!--{/if}-->
          </td>
        </tr>
        <tr>
          <th>学历证件：</th>
          <td>
            <!--{if !empty($user.eduimg)}-->
            <img src="<!--{$user.eduimg}-->" width="20px" height="20px" f="viewimg" />
            <!--{/if}-->
          </td>
          <th>上传时间：</th>
          <td colspan="3">
            <!--{if $user.edutime > 0}-->
            <!--{$user.edutime|date_format:"%Y-%m-%d %H:%M:%S"}-->
            <!--{else}-->
            --
            <!--{/if}-->
          </td>
        </tr>
        <tr>
          <th><font color="red">*</font> 学历：</th>
          <td colspan="3">
            <div class="tbl_input input-200">
              <!--{hook mod="var" item="education" name="education" type="select" text="=请选择=" value=$user.education}-->
            </div>
          </td>
        </tr>
      </table>
    </div>

  </div>
  
  <div class="oe_tbl_form_btn">
    <button class="layui-btn" f="but_post_save" data-id="<!--{$user.userid}-->">
      保存并返回
      <span class="oe_btn_loading layui-anim layui-icon layui-anim-rotate layui-anim-loop" style="display:none;">&#xe63d;</span>
    </button>
    
    <!--{if $user.edurz == '0'}-->
    <button class="layui-btn btn_red" f="but_post_audit" data-id="<!--{$user.userid}-->" data-type="unpass">
      <i class="layui-icon layui-icon-close"></i>不通过
      <span class="oe_btn_loading layui-anim layui-icon layui-anim-rotate layui-anim-loop" style="display:none;">&#xe63d;</span>
    </button>
    <button class="layui-btn btn_green" f="but_post_audit" data-id="<!--{$user.userid}-->" data-type="pass">
      <i class="layui-icon layui-icon-ok"></i>通过
      <span class="oe_btn_loading layui-anim layui-icon layui-anim-rotate layui-anim-loop" style="display:none;">&#xe63d;</span>
    </button>
    <!--{/if}-->
  </div>
  
  
  
</div>
<div class="oe_menu_inner">
  <div class="menu_head">
    操作
    <a class="layui-layer-ico enlarge" f="enlarge" href="javascript:;"></a>
    <a class="narrow" f="narrow" href="javascript:;"><span></span></a>
  </div>
  <div class="menu_body">
    <ul>
      <li><a href="javascript:;" f="pop_send_sms" data-uid="<!--{$user.userid}-->">发送短信通知</a></li>
      <li><a href="javascript:;" f="pop_send_email" data-uid="<!--{$user.userid}-->">发送邮件通知</a></li>
      <li><a href="javascript:;" f="pop_send_msg" data-uid="<!--{$user.userid}-->">发送站内通知</a></li>
    </ul>
  </div>
</div>
<script type="text/javascript">
$(function(){
    //渲染...
    layui.use(['element', 'form'], function(){
        
    });
    
    //保存并返回...
    $(document).on("click", "[f='but_post_save']", function(){
        $(this).find("span").show();
        _syn_save_data(function(){
            layer.msg("保存成功");
            setTimeout(function(){
                window.location.href = "<!--{$oefile}-->&c=<!--{$c}-->&a=education&<!--{$comeurl}-->";
            }, 500);
        });
    });
    
    //ajax 审核
    $(document).on("click", "[f='but_post_audit']", function(){
        $education = $("#education").val();
        if ($education.length == 0) {
            layer.msg("请选择学历");
            return false;
        }
    
        $(this).find("span").show();
        $id = $(this).attr("data-id");
        $type = $(this).attr("data-type");
        $url = "<!--{$oefile}-->&c=<!--{$c}-->&a=saveeducation&id="+$id+"&lotact="+$type+"&datatype=ajax";
        _syn_save_data();
        oelove_do_ajax($url, function(){
            layer.msg("操作成功");
            setTimeout(function(){
                window.location.href = "<!--{$oefile}-->&c=<!--{$c}-->&a=education&<!--{$comeurl}-->";
            }, 500);
        });
    });
});
//异步保存...
function _syn_save_data(call_back) {
    call_back = call_back || function(){};
    $education = $("#education").val();
    if ($education.length == 0) {
        layer.msg("请选择学历");
        return false;
    }
    $_url = "<!--{$oefile}-->&c=user&a=savedata&id=<!--{$user.userid}-->&type=education&education="+$education;
    oelove_do_ajax($_url, call_back);
}
</script>
<!--{/if}-->

<!--{if $a == "editmarry"}-->
<div class="layui-fluid oe_fluid">
  <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 class="oe_tool_bar ft">
      <a href="<!--{$oefile}-->&c=<!--{$c}-->&a=marry&<!--{$comeurl}-->" class="layui-btn layui-btn-sm layui-btn-primary layui-btn-radius">返回列表</a>
    </div> 
  </div>
  <div class="layui-card oe_table_edit">
    <div class="layui-card-header">
      审核会员婚况证明
    </div>
    

    <div class="layui-card-body">
    
      <table class="oe_tbl_form layui-form">
        <tr>
          <th width="15%">会员UID：</th>
          <td width="35%"><!--{$user.userid}--></td>
          <th width="15%">用户名：</th>
          <td width="35%">
            <!--{if !empty($user.headimg)}-->
            <img src="<!--{$user.headimg}-->" width="20px" height="20px" f="viewimg" />
            <!--{/if}-->
            <!--{$user.username}-->
          </td>
        </tr>
        <tr>
          <th>会员资料：</th>
          <td>
            <!--{hook mod="var" item="gender" type="text" value=$user.gender}-->
            <!--{$user.age}-->岁
            <!--{hook mod="var" item="marry" type="text" value=$user.marry}--> 
            <!--{hook mod="var" item="education" type="text" value=$user.education}-->
            <!--{$user.height}-->CM
          </td>
          <th>所在地区：</th>
          <td>
            <!--{if $user.dist1 > 0}-->
            <!--{area type="text" value=$user.dist1}--> <!--{area type="text" value=$user.dist2}-->
            <!--{else}-->
            --
            <!--{/if}-->
          </td>
        </tr>

        <tr>
          <th>姓名：<span class="f_red"></span></th>
          <td>
            <!--{if !empty($user.truename)}-->
            <!--{$user.truename}-->
            <!--{else}-->
            --
            <!--{/if}-->
          </td>
          <th>身份证号：<span class="f_red"></span></th>
          <td>
            <!--{if !empty($user.idnumber)}-->
            <!--{$user.idnumber}-->
            <!--{else}-->
            --
            <!--{/if}-->
          </td>
        </tr>
        <tr>
          <th>婚况证明：</th>
          <td>
            <!--{if !empty($user.marryimg)}-->
            <img src="<!--{$user.marryimg}-->" width="20px" height="20px" f="viewimg" />
            <!--{/if}-->
          </td>
          <th>上传时间：</th>
          <td colspan="3">
            <!--{if $user.marryuptime > 0}-->
            <!--{$user.marryuptime|date_format:"%Y-%m-%d %H:%M:%S"}-->
            <!--{else}-->
            --
            <!--{/if}-->
          </td>
        </tr>
        <tr>
          <th><font color="red">*</font> 婚况：</th>
          <td colspan="3">
            <div class="tbl_input input-200">
              <!--{hook mod="var" item="marry" name="marry" type="select" text="=请选择=" value=$user.marry}-->
            </div>
          </td>
        </tr>
      </table>
    </div>

  </div>
  
  <div class="oe_tbl_form_btn">
    <button class="layui-btn" f="but_post_save" data-id="<!--{$user.userid}-->">
      保存并返回
      <span class="oe_btn_loading layui-anim layui-icon layui-anim-rotate layui-anim-loop" style="display:none;">&#xe63d;</span>
    </button>
    
    <!--{if $user.marryrz == '0'}-->
    <button class="layui-btn btn_red" f="but_post_audit" data-id="<!--{$user.userid}-->" data-type="unpass">
      <i class="layui-icon layui-icon-close"></i>不通过
      <span class="oe_btn_loading layui-anim layui-icon layui-anim-rotate layui-anim-loop" style="display:none;">&#xe63d;</span>
    </button>
    <button class="layui-btn btn_green" f="but_post_audit" data-id="<!--{$user.userid}-->" data-type="pass">
      <i class="layui-icon layui-icon-ok"></i>通过
      <span class="oe_btn_loading layui-anim layui-icon layui-anim-rotate layui-anim-loop" style="display:none;">&#xe63d;</span>
    </button>
    <!--{/if}-->
  </div>
  
  
  
</div>
<div class="oe_menu_inner">
  <div class="menu_head">
    操作
    <a class="layui-layer-ico enlarge" f="enlarge" href="javascript:;"></a>
    <a class="narrow" f="narrow" href="javascript:;"><span></span></a>
  </div>
  <div class="menu_body">
    <ul>
      <li><a href="javascript:;" f="pop_send_sms" data-uid="<!--{$user.userid}-->">发送短信通知</a></li>
      <li><a href="javascript:;" f="pop_send_email" data-uid="<!--{$user.userid}-->">发送邮件通知</a></li>
      <li><a href="javascript:;" f="pop_send_msg" data-uid="<!--{$user.userid}-->">发送站内通知</a></li>
    </ul>
  </div>
</div>
<script type="text/javascript">
$(function(){
    //渲染...
    layui.use(['element', 'form'], function(){
        
    });
    
    //保存并返回...
    $(document).on("click", "[f='but_post_save']", function(){
        $(this).find("span").show();
        _syn_save_data(function(){
            layer.msg("保存成功");
            setTimeout(function(){
                window.location.href = "<!--{$oefile}-->&c=<!--{$c}-->&a=marry&<!--{$comeurl}-->";
            }, 500);
        });
    });
    
    //ajax 审核
    $(document).on("click", "[f='but_post_audit']", function(){
        $marry = $("#marry").val();
        if ($marry.length == 0) {
            layer.msg("请选择婚况");
            return false;
        }
    
        $(this).find("span").show();
        $id = $(this).attr("data-id");
        $type = $(this).attr("data-type");
        $url = "<!--{$oefile}-->&c=<!--{$c}-->&a=savemarry&id="+$id+"&lotact="+$type+"&datatype=ajax";
        _syn_save_data();
        oelove_do_ajax($url, function(){
            layer.msg("操作成功");
            setTimeout(function(){
                window.location.href = "<!--{$oefile}-->&c=<!--{$c}-->&a=marry&<!--{$comeurl}-->";
            }, 500);
        });
    });
});
//异步保存...
function _syn_save_data(call_back) {
    call_back = call_back || function(){};
    $marry = $("#marry").val();
    if ($marry.length == 0) {
        layer.msg("请选择婚况");
        return false;
    }
    $_url = "<!--{$oefile}-->&c=user&a=savedata&id=<!--{$user.userid}-->&type=marry&marry="+$marry;
    oelove_do_ajax($_url, call_back);
}
</script>
<!--{/if}-->
<script type="text/javascript">
  jQuery(".drop").slide({ type:"menu", titCell:".down", targetCell:".sub",effect:"slideDown",delayTime:100,triggerTime:0,returnDefault:true});
</script>
</body>
</html>