代码拉取完成,页面将自动刷新
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<!-- Always force latest IE rendering engine (even in intranet) & Chrome Frame
Remove this if you use the .htaccess -->
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>品代网 ——我的品代身份验证</title>
<meta name="description" content="">
<meta name="author" content="Administrator">
<meta name="viewport" content="width=device-width; initial-scale=1.0">
<!-- Replace favicon.ico & apple-touch-icon.png in the root of your domain and delete these references -->
<link rel="shortcut icon" href="/favicon.ico">
<link rel="apple-touch-icon" href="/apple-touch-icon.png">
<link rel="stylesheet" href="css/indent.css" />
<!-- 个人中心 -->
<link rel="stylesheet" href="css/userinfor.css" />
<link rel="stylesheet" href="css/add.css"/>
<!--右边栏-->
<link rel="stylesheet" href="css/right_side.css" />
<script src="js/jquery-1.7.2.min.js"></script>
<script src="js/jquery.form.js"></script>
<!-- 验证 -->
<script type="text/javascript" src="js/jquery.validate.js"></script>
<!--右边栏-->
<script type="text/javascript" src="js/right-side/parabola.js"></script>
<script type="text/javascript" src="js/right-side/right_side.js"></script>
</head>
<body>
<!-- 右侧固定导航链接 -->
<div class="mui-mbar-tabs">
{$userright_html}
</div>
<!-- top_header 顶部 -->
{$user_head_html}
<!--top_logo -->
<div class="top_logo">
{$userinfo_head_html}
</div>
<!-- indent -->
<div id="indent">
<div class="wrap_1000 clearfix">
<!-- 左侧边栏 -->
<div class="indent_left clearfix">
{$indentleft_html}
</div>
<!-- 右侧 -->
<div class="indent_right clearfix">
<!-- 实名认证-->
<div id="til3_con" class="my_info">
<div class="indent_right_title">实名认证</div>
<div class="indent_right_con">
<div class="my_info_con">
<div class="certificationBox">
<div class="certificationBox_til">
<div class="certificationBox_til_li certificationBox_til_geren present"><a href="javascript:;">个人实名认证<span id="personalIfPass"></span></a></div>
<div class="certificationBox_til_li certificationBox_til_qiye"><a href="javascript:;">企业实名认证<span id="companyIfPass"></span></a></div>
</div>
<div class="certificationBox_con clearfix">
<div id="certificationBox_con1">
<form method="post" id="certification_formOne">
<div class="certificationOne clearfix">
<!--姓名-->
<div class="certification_field clearfix">
<span class="certification_field_left">姓名:</span>
<input id="inputName" class="inputbox" type="text" />
<div class="warnibox" id="msgName">请填写真实姓名</div>
</div>
<!--年龄-->
<div class="certification_field clearfix">
<span class="certification_field_left">年龄:</span>
<input id="inputAge" class="inputbox" type="text" />
<div class="warnibox"></div>
</div>
<!--地址-->
<div class="certification_field clearfix">
<span class="certification_field_left">地址:</span>
<input id="inputAddr" class="inputbox" type="text" />
<div class="warnibox" id="msgAddr">请填写详细地址</div>
</div>
<!--电话-->
<div class="certification_field clearfix">
<span class="certification_field_left">电话:</span>
<input id="inputTel" class="inputbox" type="text" />
<div class="warnibox" id="msgTel">请填写联系电话</div>
</div>
<!--职业种类-->
<div class="certification_field clearfix">
<span class="certification_field_left">职业种类:</span>
<input id="inputJob" class="inputbox" type="text" />
<div class="warnibox">请填写职业种类</div>
</div>
<!--身份证号-->
<div class="certification_field clearfix">
<span class="certification_field_left">身份证号:</span>
<input id="inputIDNumber" class="inputbox" type="text" />
<div class="warnibox" id="msgIDNumber">请正确填写身份证号</div>
</div>
<!--所属公司-->
<div class="certification_field clearfix">
<span class="certification_field_left">所属公司:</span>
<input id="inputComany" class="inputbox" type="text" />
<div class="warnibox">请填写所属公司</div>
</div>
<!--照片上传-->
<div class="certification_field certification_field_c clearfix">
<span class="certification_field_left">上传图片:</span>
<div class="certificationPho clearfix">
<div class="certificationPhotoBox certificationPhotoBox1">
<p class="certificationPhotP">身份证</p>
<img id="imgIDCard" src="images/defaultimg.png" class="certificationPhotoBox_img" />
<input type="file" id="fu_IDCard" name="mypic" class="inputboxfile" />
</div>
<div class="certificationPhotoBox certificationPhotoBox2">
<p class="certificationPhotP">相关证件</p>
<img id="imgCertificate1" src="images/defaultimg.png" class="certificationPhotoBox_img" />
<input type="file" id="fu_Certificate1" name="mypic" class="inputboxfile" />
</div>
<div class="certificationPhotoBox certificationPhotoBox3">
<p class="certificationPhotP">相关证件</p>
<img id="imgCertificate2" src="images/defaultimg.png" class="certificationPhotoBox_img" />
<input type="file" id="fu_Certificate2" name="mypic" class="inputboxfile" />
</div>
<p class="tishi">注意:上传图片不能大于1M,格式为jpg,png</p>
</div>
<div id="msgImgI" class="warnibox warnibox_c">请上传图片</div>
</div>
</div>
<div class="certificationOnebtn" id="btnSubmit" style="display: none;">
<a href="javascript:;">提交</a>
</div>
<div class="certificationOnebtn" id="btnModify" style="display: none;">
<a href="javascript:;">申请修改</a>
</div>
</form>
</div>
<div id="certificationBox_con2" style="display: none">
<form method="post" id="certification_formTwo">
<div class="certificationOne clearfix">
<!--公司名称-->
<div class="certification_field clearfix">
<span class="certification_field_left">公司名称:</span>
<input id="icCompanyName" class="inputbox" type="text" />
<div id="msgCompanyName" class="warnibox">请填写公司名称</div>
</div>
<!--营业执照号-->
<div class="certification_field clearfix">
<span class="certification_field_left">营业执照号:</span>
<input id="icBusinessLicense" class="inputbox" type="text" />
<div id="msgBusinessLicense" class="warnibox">请填写营业执照号</div>
</div>
<!--法人姓名-->
<div class="certification_field clearfix">
<span class="certification_field_left">法人姓名:</span>
<input id="icCorporationName" class="inputbox" type="text" />
<div id="msgCorporationName" class="warnibox">请填写法人姓名</div>
</div>
<!--法人电话号码-->
<div class="certification_field clearfix">
<span class="certification_field_left">法人电话号码:</span>
<input id="icCorporationTel" class="inputbox" type="text" />
<div id="msgCorporationTel" class="warnibox">请填写法人电话号码</div>
</div>
<!--注册资金-->
<div class="certification_field clearfix">
<span class="certification_field_left">注册资金:</span>
<input id="icRegisteredCapital" class="inputbox" type="text" />
<div id="msgRegisteredCapital" class="warnibox">请填写注册资金</div>
</div>
<!--组织机构代码-->
<div class="certification_field clearfix">
<span class="certification_field_left">组织机构代码:</span>
<input id="icOrganizationCode" class="inputbox" type="text" />
<div id="msgOrganizationCode" class="warnibox">请填写组织机构代码</div>
</div>
<!--注册地址-->
<div class="certification_field clearfix">
<span class="certification_field_left">注册地址:</span>
<input id="icRegisteredAddress" class="inputbox" type="text" />
<div id="msgRegisteredAddress" class="warnibox">请填写注册地址</div>
</div>
<!--结算账户-->
<div class="certification_field clearfix">
<span class="certification_field_left">结算账户:</span>
<input id="icAccount" class="inputbox" type="text" />
<div id="msgAccount" class="warnibox">请填写结算账户</div>
</div>
<!--公司人数-->
<div class="certification_field clearfix">
<span class="certification_field_left">公司人数:</span>
<input id="icCompanyEmploys" class="inputbox" type="text" />
<div id="msgCompanyEmploys" class="warnibox">请填写公司人数</div>
</div>
<!--证书上传-->
<form action="upload_file.php" method="post" enctype="multipart/form-data">
<div class="certification_field certification_field_c clearfix">
<span class="certification_field_left">证书上传:</span>
<div class="certificationPho clearfix">
<div class="certificationPhotoBox">
<p class="certificationPhotP">营业执照</p>
<img id="imgBusinessLicensePic" src="images/defaultimg.png" class="certificationPhotoBox_img" />
<input type="file" id="fu_BusinessLicensePic" name="mypic" class="inputboxfile" />
</div>
<div class="certificationPhotoBox">
<p class="certificationPhotP">组织机构代码证</p>
<img id="imgOrganizationCodePic" src="images/defaultimg.png" class="certificationPhotoBox_img" />
<input type="file" id="fu_OrganizationCodePic" name="mypic" class="inputboxfile" />
</div>
<div class="certificationPhotoBox">
<p class="certificationPhotP">税务登记证</p>
<img id="imgTaxRegistrationCertificatePic" src="images/defaultimg.png" class="certificationPhotoBox_img" />
<input type="file" id="fu_TaxRegistrationCertificatePic" name="mypic" class="inputboxfile" />
</div>
<div class="certificationPhotoBox">
<p class="certificationPhotP">企业法人身份证</p>
<img id="imgCorporationIDCardPic" src="images/defaultimg.png" class="certificationPhotoBox_img" />
<input type="file" id="fu_CorporationIDCardPic" name="mypic" class="inputboxfile" />
</div>
<p class="tishi">注意:上传图片不能大于1M,格式为jpg,png</p>
<div id="msgImgC" class="warnibox warnibox_c">请上传照片</div>
</div>
</div>
</form>
</div>
<div class="certificationTwobtn" id="companySubmit" style="display: none;">
<a href="javascript:;">提交</a>
</div>
<div class="certificationTwobtn" id="companyModify" style="display: none;">
<a href="javascript:;">申请修改</a>
</div>
</form>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- 实名认证 end-->
</div>
</div>
</div>
<!-- 版权 -->
<div id="footermain">
{$foot_html}
</div>
<script type="text/javascript">
var authType = 0;
$(function () {
var uploadPath = '';
$.post("api.php?act=getUploadPath",{},
function(data){
uploadPath = data;
}
);
$.post("api.php?act=getAuth",{},
function(data){
if(data != ''){
data = $.parseJSON(data);
$('#btnSubmit').hide();
$('#btnModify').show();
$.each(data, function(n,value) {
if(value.AuthType == 0){ //个人
authType = 0;
$('.certificationBox_til_geren').click();
if(value.Status == 0){
$('#btnSubmit').show();
$('#btnModify').hide();
$('#personalIfPass').html('(审核中)');
$(':text').removeAttr('readonly');
$(':file').removeAttr('disabled');
}
else{
$('#btnSubmit').hide();
$('#btnModify').show();
$(':text').attr('readonly','true');
$(':file').attr('disabled','disabled');
}
if(value.Status == 1){
$('#personalIfPass').html('(审核通过)');
}
if(value.Status == 2){
$('#personalIfPass').html('(审核不通过)');
}
$('.indent_right_title').attr('authId',value.IAid);
$('#inputName').val(value.Authname);
$('#inputAge').val(value.Age);
$('#inputAddr').val(value.Address);
$('#inputTel').val(value.Tel);
$('#inputJob').val(value.Occupation);
$('#inputIDNumber').val(value.IDNumber);
$('#inputComany').val(value.Company);
if(value.IDPic != ''){
$('#imgIDCard').attr('src',value.IDPic);
$('#imgIDCard').attr('picName','upload/' + value.IDPic.substr(value.IDPic.lastIndexOf('/') + 1));
}
if(value.Certificate1 != ''){
$('#imgCertificate1').attr('src',value.Certificate1);
$('#imgCertificate1').attr('picName','upload/' + value.Certificate1.substr(value.Certificate1.lastIndexOf('/') + 1));
}
if(value.Certificate2 != ''){
$('#imgCertificate2').attr('src',value.Certificate2);
$('#imgCertificate12').attr('picName','upload/' + value.Certificate2.substr(value.Certificate2.lastIndexOf('/') + 1));
}
}
else if(value.AuthType == 1){ //企业
authType = 1;
$('.certificationBox_til_qiye').click();
if(value.Status == 0){
$('#companySubmit').show();
$('#companyModify').hide();
$('#companyIfPass').html('(审核中)');
$(':text').removeAttr('readonly');
$(':file').removeAttr('disabled');
}
else{
$(':text').attr('readonly','true');
$(':file').attr('disabled','disabled');
$('#companySubmit').hide();
$('#companyModify').show();
}
if(value.Status == 1){
$('#companyIfPass').html('(审核通过)');
}
if(value.Status == 2){
$('#companyIfPass').html('(审核不通过)');
}
$('.indent_right_title').attr('authId',value.CAId);
$('#icCompanyName').val(value.CompanyName);
$('#icBusinessLicense').val(value.BusinessLicense);
$('#icCorporationName').val(value.CorporationName);
$('#icCorporationTel').val(value.CorporationTel);
$('#icRegisteredCapital').val(value.RegisteredCapital);
$('#icOrganizationCode').val(value.OrganizationCode);
$('#icRegisteredAddress').val(value.RegisteredAddress);
$('#icAccount').val(value.Account);
$('#icCompanyEmploys').val(value.CompanyEmploys);
if(value.BusinessLicensePic != ''){
$('#imgBusinessLicensePic').attr('src',value.BusinessLicensePic);
$('#imgBusinessLicensePic').attr('picName','upload/' + value.BusinessLicensePic.substr(value.BusinessLicensePic.lastIndexOf('/') + 1));
}
if(value.OrganizationCodePic != ''){
$('#imgOrganizationCodePic').attr('src',value.OrganizationCodePic);
$('#imgOrganizationCodePic').attr('picName','upload/' + value.OrganizationCodePic.substr(value.OrganizationCodePic.lastIndexOf('/') + 1));
}
if(value.TaxRegistrationCertificatePic != ''){
$('#imgTaxRegistrationCertificatePic').attr('src',value.TaxRegistrationCertificatePic);
$('#imgTaxRegistrationCertificatePic').attr('picName','upload/' + value.TaxRegistrationCertificatePic.substr(value.TaxRegistrationCertificatePic.lastIndexOf('/') + 1));
}
if(value.CorporationIDCardPic != ''){
$('#imgCorporationIDCardPic').attr('src',value.CorporationIDCardPic);
$('#imgCorporationIDCardPic').attr('picName','upload/' + value.CorporationIDCardPic.substr(value.CorporationIDCardPic.lastIndexOf('/') + 1));
}
}
});
}
else{
$('#btnSubmit').show();
$('#btnModify').hide();
$('#companySubmit').show();
$('#companyModify').hide();
$('#personalIfPass').html('');
$('#companyIfPass').html('');
}
}
);
//上传身份证
var imgIDCard = $('#imgIDCard');
$("#fu_IDCard").wrap("<form id='IDCardUpload' action='action.php' method='post' enctype='multipart/form-data'></form>");
$("#fu_IDCard").change(function(){ //选择文件
$("#IDCardUpload").ajaxSubmit({
data: {
uploadPath:uploadPath
},
success: function(data) {
if(data!=''){ //成功
if(data == "图片大小不能超过1M"){
$('#msgImgI').html(data);
$('#msgImgI').show();
}
else if(data == "图片格式不对!"){
$('#msgImgI').html(data);
$('#msgImgI').show();
}
else{
$('#msgImgI').hide();
data = $.parseJSON(data);
var imgPath = data.path +'/upload/'+ data.pic;
var saveName = 'upload/'+ data.pic;
imgIDCard.attr("src",imgPath);
imgIDCard.attr('picName',saveName);
}
}
}
});
return false; //不刷新页面
});
//相关证件1
var imgCertificate1 = $('#imgCertificate1');
$("#fu_Certificate1").wrap("<form id='Certificate1Upload' action='action.php' method='post' enctype='multipart/form-data'></form>");
$("#fu_Certificate1").change(function(){ //选择文件
$("#Certificate1Upload").ajaxSubmit({
data: {
uploadPath:uploadPath
},
success: function(data) { //成功
if(data == "图片大小不能超过1M"){
$('#msgImgI').html(data);
$('#msgImgI').show();
}
else if(data == "图片格式不对!"){
$('#msgImgI').html(data);
$('#msgImgI').show();
}
else{
$('#msgImgI').hide();
data = $.parseJSON(data);
var imgPath = data.path +'/upload/'+ data.pic;
var saveName = 'upload/'+ data.pic;
imgCertificate1.attr('src',imgPath);
imgCertificate1.attr('picName',saveName);
}
}
});
return false; //不刷新页面
});
//相关证件2
var imgCertificate2 = $('#imgCertificate2');
$("#fu_Certificate2").wrap("<form id='Certificate2Upload' action='action.php' method='post' enctype='multipart/form-data'></form>");
$("#fu_Certificate2").change(function(){ //选择文件
$("#Certificate2Upload").ajaxSubmit({
data: {
uploadPath:uploadPath
},
success: function(data) { //成功
if(data == "图片大小不能超过1M"){
$('#msgImgI').html(data);
$('#msgImgI').show();
}
else if(data == "图片格式不对!"){
$('#msgImgI').html(data);
$('#msgImgI').show();
}
else{
$('#msgImgI').hide();
data = $.parseJSON(data);
var imgPath = data.path +'/upload/'+ data.pic;
var saveName = 'upload/'+ data.pic;
imgCertificate2.attr('src',imgPath);
imgCertificate2.attr('picName',saveName);
}
}
});
return false; //不刷新页面
});
//营业执照
var imgBusinessLicensePic = $('#imgBusinessLicensePic');
$("#fu_BusinessLicensePic").wrap("<form id='BusinessLicensePicUpload' action='action.php' method='post' enctype='multipart/form-data'></form>");
$("#fu_BusinessLicensePic").change(function(){ //选择文件
$("#BusinessLicensePicUpload").ajaxSubmit({
data: {
uploadPath:uploadPath
},
success: function(data) { //成功
if (data != '') { //成功
if (data == "图片大小不能超过1M") {
$('#msgImgC').html(data);
$('#msgImgC').show();
} else if (data == "图片格式不对!") {
$('#msgImgC').html(data);
$('#msgImgC').show();
} else {
$('#msgImgC').hide();
data = $.parseJSON(data);
var imgPath = data.path + '/upload/' + data.pic;
var saveName = 'upload/' + data.pic;
imgBusinessLicensePic.attr('src', imgPath);
imgBusinessLicensePic.attr('picName', saveName);
}
}
}
});
return false;//不刷新页面
});
//组织机构代码证
var imgOrganizationCodePic = $('#imgOrganizationCodePic');
$("#fu_OrganizationCodePic").wrap("<form id='OrganizationCodePicUpload' action='action.php' method='post' enctype='multipart/form-data'></form>");
$("#fu_OrganizationCodePic").change(function(){ //选择文件
$("#OrganizationCodePicUpload").ajaxSubmit({
data: {
uploadPath:uploadPath
},
success: function(data) { //成功
if(data!=''){ //成功
if(data == "图片大小不能超过1M"){
$('#msgImgC').html(data);
$('#msgImgC').show();
}
else if(data == "图片格式不对!"){
$('#msgImgC').html(data);
$('#msgImgC').show();
}
else{
$('#msgImgC').hide();
data = $.parseJSON(data);
var imgPath = data.path +'/upload/'+ data.pic;
var saveName = 'upload/'+ data.pic;
imgOrganizationCodePic.attr('src',imgPath);
imgOrganizationCodePic.attr('picName',saveName);
}
}
}
});
return false; //不刷新页面
});
//税务登记证
var imgTaxRegistrationCertificatePic = $('#imgTaxRegistrationCertificatePic');
$("#fu_TaxRegistrationCertificatePic").wrap("<form id='TaxRegistrationCertificatePicUpload' action='action.php' method='post' enctype='multipart/form-data'></form>");
$("#fu_TaxRegistrationCertificatePic").change(function(){ //选择文件
$("#TaxRegistrationCertificatePicUpload").ajaxSubmit({
data: {
uploadPath:uploadPath
},
success: function(data) { //成功
if(data!=''){ //成功
if(data == "图片大小不能超过1M"){
$('#msgImgC').html(data);
$('#msgImgC').show();
}
else if(data == "图片格式不对!"){
$('#msgImgC').html(data);
$('#msgImgC').show();
}
else{
$('#msgImgC').hide();
data = $.parseJSON(data);
var imgPath = data.path +'/upload/'+ data.pic;
var saveName = 'upload/'+ data.pic;
imgTaxRegistrationCertificatePic.attr('src',imgPath);
imgTaxRegistrationCertificatePic.attr('picName',saveName);
}
}
}
});
return false; //不刷新页面
});
//企业法人身份证
var imgCorporationIDCardPic = $('#imgCorporationIDCardPic');
$("#fu_CorporationIDCardPic").wrap("<form id='CorporationIDCardPicUpload' action='action.php' method='post' enctype='multipart/form-data'></form>");
$("#fu_CorporationIDCardPic").change(function(){ //选择文件
$("#CorporationIDCardPicUpload").ajaxSubmit({
data: {
uploadPath:uploadPath
},
success: function(data) { //成功
if(data!=''){ //成功
if(data == "图片大小不能超过1M"){
$('#msgImgC').html(data);
$('#msgImgC').show();
}
else if(data == "图片格式不对!"){
$('#msgImgC').html(data);
$('#msgImgC').show();
}
else{
$('#msgImgC').hide();
data = $.parseJSON(data);
var imgPath = data.path +'/upload/'+ data.pic;
var saveName = 'upload/'+ data.pic;
imgCorporationIDCardPic.attr('src',imgPath);
imgCorporationIDCardPic.attr('picName',saveName);
}
}
}
});
return false; //不刷新页面
});
$('.certificationBox_til .certificationBox_til_li').click(function(){
$('.certificationBox_til .certificationBox_til_li').removeClass('present');
$(this).addClass('present');
});
$('.certificationBox_til_geren').click(function(){
authType = 0;
$(this).parent('.certificationBox_til').siblings('.certificationBox_con').find('#certificationBox_con2').css('display','none');
$(this).parent('.certificationBox_til').siblings('.certificationBox_con').find('#certificationBox_con1').css('display','block');
});
$('.certificationBox_til_qiye').click(function(){
authType = 1;
$(this).parent('.certificationBox_til').siblings('.certificationBox_con').find('#certificationBox_con2').css('display','block');
$(this).parent('.certificationBox_til').siblings('.certificationBox_con').find('#certificationBox_con1').css('display','none');
});
$('.warnibox').css('display','none');
//验证
function verify(){
var count = 0;
if(authType == 0){
var inputName = $('#inputName').val();
var inputAddr = $('#inputAddr').val();
var inputTel = $('#inputTel').val();
var inputIDNumber = $('#inputIDNumber').val();
var imgIDCard = $('#imgIDCard').attr('src');
if(inputName == ''){
$('#msgName').show();
count++;
}
else{
$('#msgName').hide();
}
if(inputAddr == ''){
$('#msgAddr').show();
count++;
}
else{
$('#msgAddr').hide();
}
if(inputTel == ''){
$('#msgTel').show();
count++;
}
else{
regPhone = /((\d{11})|^((\d{7,8})|(\d{4}|\d{3})-(\d{7,8})|(\d{4}|\d{3})-(\d{7,8})-(\d{4}|\d{3}|\d{2}|\d{1})|(\d{7,8})-(\d{4}|\d{3}|\d{2}|\d{1}))$)/;
if(regPhone.test(inputTel) == false){
$('#msgTel').show();
count++;
}
else{
$('#msgTel').hide();
}
}
if(inputIDNumber == ''){
$('#msgIDNumber').show();
count++;
}
else{
var reg = /(^\d{15}$)|(^\d{18}$)|(^\d{17}(\d|X|x)$)/;
if(reg.test(inputIDNumber) == false){
$('#msgIDNumber').show();
count++;
}
else{
$('#msgIDNumber').hide();
}
}
if(imgIDCard == 'images/defaultimg.png')
{
$('#msgImgI').show();
count++;
}
else{
$('#msgImgI').hide();
}
}
else if(authType == 1){
var icCompanyName = $('#icCompanyName').val();
var icBusinessLicense = $('#icBusinessLicense').val();
var icCorporationName = $('#icCorporationName').val();
var icCorporationTel = $('#icCorporationTel').val();
var icRegisteredCapital = $('#icRegisteredCapital').val();
var icOrganizationCode = $('#icOrganizationCode').val();
var icRegisteredAddress = $('#icRegisteredAddress').val();
var icAccount = $('#icAccount').val();
var icCompanyEmploys = $('#icCompanyEmploys').val();
var icBusinessLicensePic = $('#imgBusinessLicensePic').attr('src');
var icOrganizationCodePic = $('#imgOrganizationCodePic').attr('src');
var icTaxRegistrationCertificatePic = $('#imgTaxRegistrationCertificatePic').attr('src');
var icCorporationIDCardPic = $('#imgCorporationIDCardPic').attr('src');
if(icCompanyName == ''){
$('#msgCompanyName').show();
count++;
}
else{
$('#msgCompanyName').hide();
}
if(icBusinessLicense == ''){
$('#msgBusinessLicense').show();
count++;
}
else{
$('#msgBusinessLicense').hide();
}
if(icCorporationName == ''){
$('#msgCorporationName').show();
count++;
}
else{
$('#msgCorporationName').hide();
}
if(icCorporationTel == ''){
$('#msgCorporationTel').show();
count++;
}
else{
$('#msgCorporationTel').hide();
}
if(icRegisteredCapital == ''){
$('#msgRegisteredCapital').show();
count++;
}
else{
$('#msgRegisteredCapital').hide();
}
if(icOrganizationCode == ''){
$('#msgOrganizationCode').show();
count++;
}
else{
$('#msgOrganizationCode').hide();
}
if(icRegisteredAddress == ''){
$('#msgRegisteredAddress').show();
count++;
}
else{
$('#msgRegisteredAddress').hide();
}
if(icAccount == ''){
$('#msgAccount').show();
count++;
}
else{
$('#msgAccount').hide();
}
if(icCompanyEmploys == ''){
$('#msgCompanyEmploys').show();
count++;
}
else{
$('#msgCompanyEmploys').hide();
}
var imgCount = 0;
if(icBusinessLicensePic == 'images/defaultimg.png'){
$('#msgImgC').show();
count++;
imgCount++;
}
if(icOrganizationCodePic == 'images/defaultimg.png'){
$('#msgImgC').show();
count++;
imgCount++;
}
if(icTaxRegistrationCertificatePic == 'images/defaultimg.png'){
$('#msgImgC').show();
count++;
imgCount++;
}
if(icCorporationIDCardPic == 'images/defaultimg.png'){
$('#msgImgC').show();
count++;
imgCount++;
}
if(imgCount > 0){
$('#msgImgC').show();
}
else{
$('#msgImgC').hide();
}
}
return count;
}
$('#inputName,#inputAddr,#inputTel,#inputIDNumber,#icCompanyName,#icBusinessLicense,#icAccount,#icCompanyEmploys,#icCorporationName,#icCorporationTel,#icOrganizationCode,#icRegisteredAddress,#icRegisteredCapital').on('blur',function(){
verify();
});
//个人实名认证 修改申请
$('#btnModify').click(function(){
var authId = $('.indent_right_title').attr('authId');
$.post("api.php?act=AuthModifyApply",{
authId: authId
},
function(data){
if(data == 'success'){
alert("申请成功,请等待审核!");
}
});
});
//企业实名认证 修改申请
$('#companyModify').click(function(){
var authId = $('.indent_right_title').attr('authId');
$.post("api.php?act=CAuthModifyApply",{
authId: authId
},
function(data){
if(data == 'success'){
alert("申请成功,请等待审核!");
}
});
});
//个人实名认证 提交按钮
$('#btnSubmit').click(function(){
var error = verify();
var authId = $('.indent_right_title').attr('authId');
var inputName = $('#inputName').val();
var inputAge = $('#inputAge').val();
var inputAddr = $('#inputAddr').val();
var inputTel = $('#inputTel').val();
var inputJob = $('#inputJob').val();
var inputIDNumber = $('#inputIDNumber').val();
var inputCompany = $('#inputComany').val();
var IDPic = $('#imgIDCard').attr('picName');
var Certificate1 = $('#imgCertificate1').attr('picName');
var Certificate2 = $('#imgCertificate2').attr('picName');
if(error == 0){ //提交
$.post('api.php?act=PAUpLoad',{
authId: authId,
Authname: inputName,
IDNumber: inputIDNumber,
IDPic: IDPic,
Age: inputAge,
Address: inputAddr,
Tel: inputTel,
Occupation: inputJob,
Company: inputCompany,
Certificate1: Certificate1,
Certificate2: Certificate2
},
function(data){
if(data == 'success'){
alert('提交成功,请耐心等待审核');
window.location.reload();
}
});
}
});
//企业实名认证 提交按钮
$('#companySubmit').click(function(){
var error = verify();
if(error == 0){ //提交
var authId = $('.indent_right_title').attr('authId');
var icCompanyName = $('#icCompanyName').val();
var icBusinessLicense = $('#icBusinessLicense').val();
var icCorporationName = $('#icCorporationName').val();
var icCorporationTel = $('#icCorporationTel').val();
var icRegisteredCapital = $('#icRegisteredCapital').val();
var icOrganizationCode = $('#icOrganizationCode').val();
var icRegisteredAddress = $('#icRegisteredAddress').val();
var icAccount = $('#icAccount').val();
var icCompanyEmploys = $('#icCompanyEmploys').val();
var icBusinessLicensePic = $('#imgBusinessLicensePic').attr('picName');
var icOrganizationCodePic = $('#imgOrganizationCodePic').attr('picName');
var icTaxRegistrationCertificatePic = $('#imgTaxRegistrationCertificatePic').attr('picName');
var icCorporationIDCardPic = $('#imgCorporationIDCardPic').attr('picName');
$.post('api.php?act=CPAUpLoad',{
authId: authId,
CompanyName: icCompanyName,
BusinessLicense: icBusinessLicense,
CorporationName: icCorporationName,
CorporationTel: icCorporationTel,
RegisteredCapital: icRegisteredCapital,
OrganizationCode: icOrganizationCode,
RegisteredAddress: icRegisteredAddress,
Account: icAccount,
CompanyEmploys: icCompanyEmploys,
BusinessLicensePic: icBusinessLicensePic,
OrganizationCodePic: icOrganizationCodePic,
TaxRegistrationCertificatePic: icTaxRegistrationCertificatePic,
CorporationIDCardPic: icCorporationIDCardPic
},
function(data){
if(data == 'success'){
alert('提交成功,请耐心等待审核');
window.location.reload();
}
});
}
});
});
</script>
</body>
</html>
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。