|
|
|
@ -1,12 +1,18 @@
|
|
|
|
|
<extend name="Public/bases" />
|
|
|
|
|
<block name="body" >
|
|
|
|
|
<link href="__CSS__/user.css" rel="stylesheet" >
|
|
|
|
|
<script src="__JS__/jquery-1.11.3.min.js"></script>
|
|
|
|
|
<script type="text/javascript" src="__JS__/getRem.js"></script>
|
|
|
|
|
<link rel="stylesheet" type="text/css" href="__CSS__/reset.css">
|
|
|
|
|
<link rel="stylesheet" type="text/css" href="__CSS__/name.css">
|
|
|
|
|
<section class="trunker">
|
|
|
|
|
<section class="container">
|
|
|
|
|
<!DOCTYPE html>
|
|
|
|
|
<html lang="en">
|
|
|
|
|
<head>
|
|
|
|
|
<meta charset="UTF-8">
|
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
|
|
|
<meta http-equiv="X-UA-Compatible" content="ie=edge">
|
|
|
|
|
<link href="__CSS__/user.css" rel="stylesheet" >
|
|
|
|
|
<script src="__JS__/jquery-1.11.3.min.js"></script>
|
|
|
|
|
<script type="text/javascript" src="__JS__/getRem.js"></script>
|
|
|
|
|
<link rel="stylesheet" type="text/css" href="__CSS__/reset.css">
|
|
|
|
|
<link rel="stylesheet" type="text/css" href="__CSS__/name.css">
|
|
|
|
|
<link rel="stylesheet" type="text/css" href="__CSS__/common-cz.css">
|
|
|
|
|
<title>万盟天下</title>
|
|
|
|
|
</head>
|
|
|
|
|
<body>
|
|
|
|
|
<form id="form" action="" method="post" onsubmit="return false" class="">
|
|
|
|
|
<div class="name">
|
|
|
|
|
<!-- 子页公共头部 -->
|
|
|
|
@ -14,59 +20,39 @@
|
|
|
|
|
<a href="javascript:window.history.go(-1);" class="arrows"></a>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<?php if(empty($user['real_name'])){ ?>
|
|
|
|
|
<div class="name-input">
|
|
|
|
|
<div class="name-inputBox">
|
|
|
|
|
<img src="__IMG__/shimingrenzhengmoren.png" alt="">
|
|
|
|
|
<div>真实姓名</div>
|
|
|
|
|
</div>
|
|
|
|
|
<input type="text" placeholder="请输入真实姓名" style="padding: 0;color: #292929" name="real_name" id="real_name" value="">
|
|
|
|
|
</div>
|
|
|
|
|
<?php }else{ ?>
|
|
|
|
|
<div class="name-input">
|
|
|
|
|
<div class="name-inputBox">
|
|
|
|
|
<img src="__IMG__/shimingrenzhengmoren.png" alt="">
|
|
|
|
|
<div>真实姓名</div>
|
|
|
|
|
<if condition="$user.age_status eq 0">
|
|
|
|
|
<div class="login-box">
|
|
|
|
|
<div class="login-input">
|
|
|
|
|
<img src="__IMG__/user/mingzibianji2.png" alt="">
|
|
|
|
|
<input id="real_name" type="text" placeholder="请输入真实姓名">
|
|
|
|
|
</div>
|
|
|
|
|
<div class="login-input">
|
|
|
|
|
<img src="__IMG__/user/shimingrenzhengmoren2.png" alt="">
|
|
|
|
|
<input id="idcard" type="text" placeholder="请输入身份证号码">
|
|
|
|
|
</div>
|
|
|
|
|
<button class="login-btn jssubmit">提交</button>
|
|
|
|
|
</div>
|
|
|
|
|
<else />
|
|
|
|
|
<div class="remove-info">
|
|
|
|
|
<div class="remove-title">您已进行过实名认证</div>
|
|
|
|
|
<div class="remove-input">
|
|
|
|
|
<div>真实姓名:{$user['real_name']}</div>
|
|
|
|
|
<div>身份证号:{$user['idcard']}</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="save back">返回个人中心</div>
|
|
|
|
|
</div>
|
|
|
|
|
<input type="text" placeholder="请输入真实姓名" style="padding: 0;color: #292929;" readonly name="real_name" id="real_name" value="{$user['real_name']}">
|
|
|
|
|
</div>
|
|
|
|
|
<?php }?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<?php if(empty($user['idcard'])){ ?>
|
|
|
|
|
<div class="name-input">
|
|
|
|
|
<div class="name-inputBox">
|
|
|
|
|
<img src="__IMG__/haoma.png" alt="">
|
|
|
|
|
<div>证件号码</div>
|
|
|
|
|
</div>
|
|
|
|
|
<input type="text" placeholder="请输入证件号码" style="padding: 0;color: #292929" name="idcard" id="idcard" value="">
|
|
|
|
|
</div>
|
|
|
|
|
<div class="save jssubmit">提交</div>
|
|
|
|
|
<?php }else{ ?>
|
|
|
|
|
<div class="name-input">
|
|
|
|
|
<div class="name-inputBox">
|
|
|
|
|
<img src="__IMG__/haoma.png" alt="">
|
|
|
|
|
<div>证件号码</div>
|
|
|
|
|
</div>
|
|
|
|
|
<input type="text" placeholder="请输入证件号码" style="padding: 0" name="idcard" id="idcard" readonly value="{$user['idcard']}">
|
|
|
|
|
</div>
|
|
|
|
|
<div class="save back" >返回</div>
|
|
|
|
|
<?php }?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
</if>
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
</form>
|
|
|
|
|
</section>
|
|
|
|
|
</section>
|
|
|
|
|
<style>
|
|
|
|
|
.pop-dialog span{
|
|
|
|
|
top:35%;
|
|
|
|
|
top:25%;
|
|
|
|
|
line-height: 1.5;
|
|
|
|
|
max-width: 3rem;
|
|
|
|
|
padding: 10px;
|
|
|
|
|
font-size: .32rem;
|
|
|
|
|
}
|
|
|
|
|
</style>
|
|
|
|
|
<div class="popmsg pop-dialog"></div>
|
|
|
|
@ -84,26 +70,22 @@
|
|
|
|
|
|
|
|
|
|
if(real_name == ""){
|
|
|
|
|
pmsg.msg("请输入真实姓名");
|
|
|
|
|
$('#real_name').focus();
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if(idcard.length == 0){
|
|
|
|
|
pmsg.msg("身份证号码不能为空");
|
|
|
|
|
$('#idcard').focus();
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if(real_name.length <2){
|
|
|
|
|
pmsg.msg("真实姓名必须大于两个字");
|
|
|
|
|
$('#real_name').focus();
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
var reg = /^[\u4E00-\u9FA5]+$/;
|
|
|
|
|
if(reg.test(real_name) == false){
|
|
|
|
|
pmsg.msg("输入姓名不合法");
|
|
|
|
|
$('#real_name').focus();
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -111,7 +93,10 @@
|
|
|
|
|
cache:true,
|
|
|
|
|
type:'post',
|
|
|
|
|
url:"{:U('User/userauth')}",
|
|
|
|
|
data:$('#form').serialize(),
|
|
|
|
|
data:{
|
|
|
|
|
"idcard":idcard,
|
|
|
|
|
"real_name":real_name
|
|
|
|
|
},
|
|
|
|
|
dataType:'json',
|
|
|
|
|
success:function(result){
|
|
|
|
|
pmsg.msg(result.info);
|
|
|
|
@ -130,4 +115,4 @@
|
|
|
|
|
|
|
|
|
|
});
|
|
|
|
|
</script>
|
|
|
|
|
</block>
|
|
|
|
|
</body>
|