diff --git a/static/js/project/user/index.js b/static/js/project/user/index.js index 2e4178e..7898691 100644 --- a/static/js/project/user/index.js +++ b/static/js/project/user/index.js @@ -34,6 +34,7 @@ define(['jquery', "template", "Tools", "user", "paging","cupload","kindeditor", sfz:'', yhk:'', khzm:'', + companyLicense:'', upType1:false, upType2:false, upType5:false, @@ -296,6 +297,7 @@ define(['jquery', "template", "Tools", "user", "paging","cupload","kindeditor", console.log(data) var accountOpenCert = data.accountOpenCert==null||data.accountOpenCert == ''?null:['/api'+data.accountOpenCert]; var idCardPic = data.idCardPic==null||data.idCardPic == ''?null:['/api'+data.idCardPic]; + var companyLicense = data.companyLicense==null||data.companyLicense == ''?null:['/api'+data.companyLicense]; console.log(accountOpenCert) console.log(idCardPic) @@ -321,6 +323,11 @@ define(['jquery', "template", "Tools", "user", "paging","cupload","kindeditor", num: 1, data:idCardPic }); + var cupload7 = new Cupload ({ + ele: '#cupload-7', + num: 1, + data:companyLicense + }); } } @@ -430,6 +437,11 @@ define(['jquery', "template", "Tools", "user", "paging","cupload","kindeditor", module.data.frzjz = data.fileName; } + module.upLoadOverInfo7 = function(data){ + if (data.code == 200) + module.data.companyLicense = data.fileName; + } + submitInfo = function(type){ var upLoadList = []; var data = {}; @@ -465,6 +477,12 @@ define(['jquery', "template", "Tools", "user", "paging","cupload","kindeditor", tools.doPostImg(base64Upload, {file:$(this).val()}, module.upLoadOverInfo6); } }) + $('#cupload-7').find('input').each(function() { + if($(this).val()!=''&&$(this).val().indexOf('http') == -1){ + module.data.upType7 = true; + tools.doPostImg(base64Upload, {file:$(this).val()}, module.upLoadOverInfo7); + } + }) setTimeout(function(){ formAction(type) },1000); diff --git a/static/js/project/user/registerFrom.js b/static/js/project/user/registerFrom.js index de4302b..44b1659 100644 --- a/static/js/project/user/registerFrom.js +++ b/static/js/project/user/registerFrom.js @@ -12,6 +12,7 @@ define(['jquery', "template", "Tools", "user", "echarts", 'register', 'swiper'," frzjz: '', bankTypeOption:[], accountTypeOption:[], + companyLicense:'' }, }; var tools = new Tools(); @@ -62,6 +63,12 @@ define(['jquery', "template", "Tools", "user", "echarts", 'register', 'swiper'," data:null }); + var cupload7 = new Cupload ({ + ele: '#cupload-7', + num: 1, + data:null + }); + }; //底部友情链接 @@ -214,6 +221,11 @@ define(['jquery', "template", "Tools", "user", "echarts", 'register', 'swiper'," module.data.frzjz = data.fileName; } + module.upLoadOverInfo7 = function(data){ + if (data.code == 200) + module.data.companyLicense = data.fileName; + } + module.submitInfo = function(type){ if(module.data.type == '1'){ $('#cupload-3').find('input').each(function() { @@ -243,6 +255,12 @@ define(['jquery', "template", "Tools", "user", "echarts", 'register', 'swiper'," tools.doPostImg(base64Upload2, {file:$(this).val()}, module.upLoadOverInfo6); } }) + $('#cupload-7').find('input').each(function() { + if($(this).val()!=''&&$(this).val().indexOf('http') == -1){ + module.data.upType67 = true; + tools.doPostImg(base64Upload2, {file:$(this).val()}, module.upLoadOverInfo7); + } + }) setTimeout(module.register,1000); } //memberType 1个人 2单位 @@ -283,7 +301,7 @@ define(['jquery', "template", "Tools", "user", "echarts", 'register', 'swiper'," var realName = $('#companyRealName').val(); var idCardNum = $('#companyIdCardNum').val(); var address = $('#companyAddress').val(); - var companyLicense = $('#companyLicense').val(); + var companyLicense = module.data.companyLicense; var companyCode = $('#companyCode').val(); var economicType = $('#economicType').val(); var accountOpenCert = module.data.khzm; @@ -406,16 +424,22 @@ define(['jquery', "template", "Tools", "user", "echarts", 'register', 'swiper'," tools.initTips('请输入地址', 'right', $('#companyAddress')[0], 2000) return false; } + /* 法人证件照 */ + if (module.data.frzjz == '') { + $('#cupload-6')[0].focus() + tools.initTips('请上传法人证件照', 'right', $('#cupload-6')[0], 2000) + return false; + } /* 上传附件 */ - if (module.data.khzm == '') { - $('#cupload-5')[0].focus() - tools.initTips('请上传相关附件', 'right', $('#cupload-5')[0], 2000) + if (module.data.companyLicense == '') { + $('#cupload-7')[0].focus() + tools.initTips('请上传营业执照', 'right', $('#cupload-7')[0], 2000) return false; } - /* 法人证件照 */ - if (module.data.frzjz == '') { - $('#cupload-4')[0].focus() - tools.initTips('请上传法人证件照', 'right', $('#cupload-4')[0], 2000) + /* 上传附件 */ + if (module.data.khzm == '') { + $('#cupload-5')[0].focus() + tools.initTips('请上传开户证明', 'right', $('#cupload-5')[0], 2000) return false; } } @@ -446,31 +470,31 @@ define(['jquery', "template", "Tools", "user", "echarts", 'register', 'swiper'," var accountType = $('#accountType').val(); var payeePaymentLines = $('#payeePaymentLines').val(); - if (bankCardName == '') { + if (bankCardName == ''||bankCardName == null) { $('#bankCardName')[0].focus() tools.initTips('请输入开户姓名', 'right', $('#bankCardName')[0], 2000) return false; } - if (bankCardNum == '') { + if (bankCardNum == ''||bankCardNum == null) { $('#bankCardNum')[0].focus() tools.initTips('请输入开户账号', 'right', $('#bankCardNum')[0], 2000) return false; } - if (bankType == '') { + if (bankType == ''||bankCardNum == null) { $('#bankType')[0].focus() tools.initTips('请选择所属银行', 'right', $('#bankType')[0], 2000) return false; } - if (bankAddress == '') { + if (bankAddress == ''||bankAddress == null) { $('#bankAddress')[0].focus() tools.initTips('请选择开户银行', 'right', $('#bankAddress')[0], 2000) return false; } - if (payeePaymentLines == '') { + if (payeePaymentLines == ''||payeePaymentLines == null) { $('#payeePaymentLines')[0].focus() tools.initTips('请输入联行号', 'right', $('#payeePaymentLines')[0], 2000) return false; diff --git a/view/listingItems/bond.html b/view/listingItems/bond.html index 6e6e4d0..8fed36a 100644 --- a/view/listingItems/bond.html +++ b/view/listingItems/bond.html @@ -209,333 +209,6 @@ *电子签名:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/view/login/registerFrom.html b/view/login/registerFrom.html index e33d7a4..68c40bb 100644 --- a/view/login/registerFrom.html +++ b/view/login/registerFrom.html @@ -237,17 +237,17 @@ 填写公司的社会信用代码 - - - *营业执照号: - - - - - - 填写公司的营业执照号 - - + + + + + + + + + + + 联系地址: @@ -286,7 +286,13 @@ - *附件上传: + *营业执照: + +
+ + + + *开户证明:
diff --git a/view/user/user.html b/view/user/user.html index 7f5f5c8..ae2a0ed 100644 --- a/view/user/user.html +++ b/view/user/user.html @@ -262,7 +262,13 @@ - *附件上传: + *营业执照: + +
+ + + + *开户证明: