diff --git a/static/js/project/user/index.js b/static/js/project/user/index.js index bcd4d11..2e4178e 100644 --- a/static/js/project/user/index.js +++ b/static/js/project/user/index.js @@ -316,6 +316,11 @@ define(['jquery', "template", "Tools", "user", "paging","cupload","kindeditor", num: 1, data:accountOpenCert }); + var cupload6 = new Cupload ({ + ele: '#cupload-6', + num: 1, + data:idCardPic + }); } } @@ -420,6 +425,11 @@ define(['jquery', "template", "Tools", "user", "paging","cupload","kindeditor", module.data.khzm = data.fileName; } + module.upLoadOverInfo6 = function(data){ + if (data.code == 200) + module.data.frzjz = data.fileName; + } + submitInfo = function(type){ var upLoadList = []; var data = {}; @@ -449,6 +459,12 @@ define(['jquery', "template", "Tools", "user", "paging","cupload","kindeditor", tools.doPostImg(base64Upload, {file:$(this).val()}, module.upLoadOverInfo5); } }) + $('#cupload-6').find('input').each(function() { + if($(this).val()!=''&&$(this).val().indexOf('http') == -1){ + module.data.upType6 = true; + tools.doPostImg(base64Upload, {file:$(this).val()}, module.upLoadOverInfo6); + } + }) setTimeout(function(){ formAction(type) },1000); @@ -682,6 +698,7 @@ define(['jquery', "template", "Tools", "user", "paging","cupload","kindeditor", var companyLicense = $('#companyLicense').val(); var address = $('#address').val(); var accountOpenCert = module.data.khzm; + var idCardPic = module.data.frzjz; if (companyName == '') { $('#companyName')[0].focus() @@ -709,7 +726,19 @@ define(['jquery', "template", "Tools", "user", "paging","cupload","kindeditor", }); if(array.length<1){ $('#cupload-5')[0].focus() - tools.initTips('请上传开户证明', 'right', $('#cupload-5')[0], 2000) + tools.initTips('请上传相关附件', 'right', $('#cupload-5')[0], 2000) + return false; + } + + let array6 = [] + $('#cupload-6').find('input').each(function() { + if($(this).val()!=''){ + array6.push($(this).val()) + } + }); + if(array6.length<1){ + $('#cupload-6')[0].focus() + tools.initTips('请上传法人证件照', 'right', $('#cupload-6')[0], 2000) return false; } @@ -726,6 +755,7 @@ define(['jquery', "template", "Tools", "user", "paging","cupload","kindeditor", data['companyCapital'] = companyCapital; data['companyLicense'] = companyLicense; data['address'] = address; + data['idCardPic'] = idCardPic; tools.setCookie('userName',realname,24 * 60 * 60) tools.setCookie('idCardNum',idCardNum,24 * 60 * 60) diff --git a/view/user/user.html b/view/user/user.html index f3e52df..7f5f5c8 100644 --- a/view/user/user.html +++ b/view/user/user.html @@ -256,7 +256,13 @@ - *开户证明: + *法人证件照: + +
+ + + + *附件上传: