123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270 |
- <!DOCTYPE html>
- <html lang="zh-CN">
- <head>
- <meta charset="utf-8">
- <meta name="viewport" content="width=device-width, initial-scale=1">
- <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
- <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@4.5.0/dist/css/bootstrap.min.css" integrity="sha384-9aIt2nRpC12Uk9gS9baDl411NQApFmC26EwAOH8WgZl5MYYxFfc+NcPb1dKGj7Sk" crossorigin="anonymous">
- <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.3.0/font/bootstrap-icons.css">
- <link rel="stylesheet" type="text/css" href="/Public/Static/css/base2.css" />
- <link rel="stylesheet" type="text/css" href="/Public/Static/css/nologed.css" />
- <link rel="stylesheet" href="/Public/Static/Icoinfont/iconfont.css">
- <script src="/Public/Static/Icoinfont/iconfont.js"></script>
- <title>{$webname}</title>
- <style>
- ::-webkit-input-placeholder {color: #b5b5b5;font-size: 12px;}
- ::-moz-placeholder {color: #b5b5b5;font-size: 12px;}
- input:focus{background:#f5f5f5;outline: 1px solid #f5f5f5;}
- a:hover,a:link,a:visited,a:active{color:#707A8A;text-decoration:none;}
- .no_header{position: fixed;z-index: 9999;padding:0px 10px;top:0px;line-height: 50px;background:#f5f5f5;}
- .contentbox{width:100%;height:600px;margin-top:45px;padding:5px 15px;}
- .contentbox_top{width:100%;height:50px;line-height:50px;text-align:left;}
- .contentbox_line{width:100%;background:#fff;border-radius:10px;padding:0px 10px;}
- .line_2{width:100%;padding:10px;}
- .imgbox{width:100%;padding:10px;background:#fff;margin-top:15px;border-radius:10px;}
- .imgbox_1{width:100%;height:40px;line-height:40px;text-align:left;}
- .imgbox_2{width:100%;height:35px;line-height:35px;text-align:left;}
- .imgbox_3{width:100px;height:35px;line-height:35px;text-align:center;border:1px solid #FCD535;border-radius:5px;}
- .imgbox_4{width:100%;margin-top:15px;border-top:1px solid #f5f5f5;padding: 10px 0px 20px 0px;}
- .imgbox_5{width:100%;height:40px;line-height:40px;text-align:left;}
- .imgbox_6{width:100%;height:120px;margin-top:10px;text-align:center;}
- .imgbox_7{width:100%;height:30px;line-height:30px;text-align:center;margin-top:10px;}
- .imgbox_8{width:100%;height:30px;line-height:30px;text-align:center;}
- .imgbox_9{width:100px;height:30px;line-height:30px;text-align:center;border-radius:5px;border:1px solid #FCD535;margin:auto;}
- .imgbox_10{width:100%;height:40px;line-height:40px;text-align:center;border-radius:5px;margin:auto;background: linear-gradient(to left,#eeb80d,#ffe35b);}
- .textbox{width:100%;background:#fff;margin-top:10px;border-radius:10px;padding:15px;}
-
- .zz_inputbox{width:100%;height:40px;line-height:40px;background:#f5f5f5;border-radius:10px;padding:0px 15px;}
- .zz_input{height:30px;line-height:30px;margin-top:5px;border:#f5f5f5;background:#f5f5f5;width:100%;}
- .layui-upload-file{display: none!important;opacity: .01;}
- </style>
- </head>
- <body>
- <div class="container-fluid " style="padding:0px;width:100vw;">
- <div class="no_header">
- <div class="fl allhg txtl">
- <i class="bi bi-arrow-left fcc fw" onclick="goback()" style="font-size: 24px;"></i>
- </div>
-
- <div class="fr allhg txtr" style="line-height:50px;width:10%;">
- </div>
-
- </div>
- <div class="contentbox">
- <div class="contentbox_top">
-
- <span style="font-size:26px;font-weight:500;">{:L('实名认证')}</span>
-
- </div>
-
- <div class="contentbox_line">
- <div class="line_2">
- <span>{:L('完成实名认证后能够获得相应的权益')}</span>
- </div>
- </div>
- <div class="contentbox_line">
- <div class="line_2">
- <!-- <span style="text-align:left" onclick="chuji()">{:L('初级实名')}</span>-->
- <span style="margin-left:20px;text-align:right" onclick="gaoji()">{:L('高級實名')}</span>
- </div>
- </div>
-
- <div class="imgbox">
- <div class="imgbox_4" style="border:none;margin:0px;">
- <!-- <div id="neirong">-->
- <!-- <div class="imgbox_5">-->
- <!-- <span class="fzmmm fch">{:L('姓名')}</span>-->
- <!-- </div>-->
- <!-- <div class="zz_inputbox">-->
- <!-- <input type="text" id="name" class="zz_input" value="{$info.name}" placeholder="{:L('姓名')}" />-->
- <!-- </div>-->
- <!-- <div class="imgbox_5">-->
- <!-- <span class="fzmmm fch">{:L('证件号')}</span>-->
- <!-- </div>-->
- <!-- <div class="zz_inputbox">-->
- <!-- <input type="text" id="zhengjian" class="zz_input" value="{$info.zhengjian}" placeholder="{:L('请输入证件号')}" />-->
- <!-- </div>-->
- <!-- </div>-->
- <div id="neirongs" style="display:hide">
- <div class="imgbox_5">
- <span class="fzmmm fch">{:L('上传身份证正面')}</span>
- </div>
-
- <div class="imgbox_6">
- <?php if($info['cardzm'] != ''){ ?>
- <img src="/Public/Static/payimgs/<?php echo $info['cardzm'];?>" id="test1" style="height:100px;" />
- <input type="hidden" id="cardzm" value="<?php echo $info['cardzm'];?>" />
- <?php }else{?>
- <img src="/Public/Static/img/upimg.png" id="test1" style="height:100px;" />
- <input type="hidden" id="cardzm" value="" />
- <?php }?>
- </div>
- <div class="imgbox_5">
- <span class="fzmmm fch">{:L('上传身份证背面')}</span>
- </div>
-
- <div class="imgbox_6">
- <?php if($info['cardfm'] != ''){ ?>
- <img src="/Public/Static/payimgs/<?php echo $info['cardfm'];?>" id="test2" style="height:100px;" />
- <input type="hidden" id="cardfm" value="<?php echo $info['cardfm'];?>" />
- <?php }else{?>
- <img src="/Public/Static/img/upimg.png" id="test2" style="height:100px;" />
- <input type="hidden" id="cardfm" value="" />
- <?php }?>
- </div>
- </div>
-
-
- <input type="hidden" id="flag" value="1" />
-
- <!-- <if condition="$info.rzstatus eq 2">-->
- <!-- <div class="imgbox_8">-->
- <!-- <div class="imgbox_10">-->
- <!-- <span class="fzmm fch">{:L('初级审核成功')}</span>-->
- <!-- </div>-->
- <!-- </div>-->
- <!-- <else />-->
- <!-- <div class="imgbox_8" id="sub">-->
- <!-- <div class="imgbox_10" id="sumbtns"><span class="fzmm fch">{:L('初级提交')}</span></div>-->
- <!-- -->
- <!-- </div>-->
- <!-- </if>-->
- <div class="imgbox_10" style="display:hide" id="sumbtn"><span class="fzmm fch">{:L('高級提交')}</span></div>
- </div>
- </div>
- <div style="width:100%;height:80px;"></div>
-
- </div>
- </div>
- </body>
- <script src="https://cdn.staticfile.org/jquery/2.1.1/jquery.min.js"></script>
- <script type="text/javascript" src="/Public/Static/js/layer/layer.js" ></script>
- <script type="text/javascript" src="__PUBLIC__/layui/layui.js"></script>
- <script type="text/javascript">
- function chuji(){
- $("#neirong").show();
- $("#neirongs").hide();
- $("#sumbtn").hide();
- $("#sumbtns").show();
- }
- function gaoji(){
- $("#neirongs").show();
- $("#neirong").hide();
- $("#sumbtn").show('')
- $("#sumbtns").hide('')
- }
- </script>
- <script type="text/javascript">
- $("#sumbtn").click(function(){
- var flag = $("#flag").val();
- if(flag == 2){
- return false;
- }
- var phone = $("#phone").val();
- var cardzm = $("#cardzm").val();
- var cardfm = $("#cardfm").val();
- /*if(phone == ''){
- layer.msg("{:L('请输入手机号码')}");return false;
- }*/
- if(cardzm == null || cardzm == ''){
- layer.msg("{:L('请上传上传身份证正面')}");return false;
- }
- if(cardfm == ''){
- layer.msg("{:L('请上传上传身份证背面')}");return false;
- }
- $("#flag").val(2)
- $.post("{:U('User/upauthrz')}",
- {'phone' : phone,'cardzm':cardzm,'cardfm':cardfm},
- function(data){
- if(data.code == 1){
- layer.msg(data.info);
- setTimeout(function(args){
- window.location.reload();
- },2000);
- }else{
- layer.msg(data.info);return false;
- }
- }
- );
-
- });
- </script>
- <script type="text/javascript">
- $("#sumbtns").click(function(){
- var flag = $("#flag").val();
- var name = $("#name").val();
- var zhengjian = $("#zhengjian").val();
- if(flag == 2){
- return false;
- }
- if(zhengjian == ''){
- layer.msg("{:L('请输入证件号码')}");return false;
- }
- $("#flag").val(2)
- $.post("{:U('User/upauthrzs')}",
- {'name' : name,'zhengjian':zhengjian},
- function(data){
- if(data.code == 1){
- layer.msg(data.info);
- setTimeout(function(args){
- window.location.reload();
- },2000);
- }else{
- layer.msg(data.info);return false;
- }
- }
- );
-
- });
- </script>
- <script type="text/javascript">
- layui.use('upload', function(){
- var upload = layui.upload;
- var uploadInst = upload.render({
- elem: '#test1' //绑定元素
- ,url: '{:U("User/recharge_img")}' //上传接口
- ,done: function(res){
-
- if(res.code == 0){
- $('#cardzm').val(res.data.img);
- $("#test1").attr('src',res.data.src);
- }
- }
- ,error: function(){
- layer.msg("{:L('上传失败')}");
- }
- });
- });
- </script>
- <script type="text/javascript">
- layui.use('upload', function(){
- var upload = layui.upload;
- var uploadInst = upload.render({
- elem: '#test2' //绑定元素
- ,url: '{:U("User/recharge_img")}' //上传接口
- ,done: function(res){
- console.log(res);
- if(res.code == 0){
- $('#cardfm').val(res.data.img);
- $("#test2").attr('src',res.data.src);
- }
- }
- ,error: function(){
- layer.msg("{:L('上传失败')}");
- }
- });
- });
- </script>
- <script type="text/javascript">
- function goback(){
- window.history.go(-1);
- }
- </script>
- </html>
|