From 118ed83a8527c806f59841ef62a512d81436fb93 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BA=9E=E4=B8=9C=E6=97=AD?= <850374051@qq.com> Date: Wed, 21 Jun 2023 11:19:38 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BA=A7=E6=9D=83=E4=BA=A4=E6=98=93=E4=B8=AA?= =?UTF-8?q?=E4=BA=BA=E4=B8=AD=E5=BF=83=E6=96=87=E4=BB=B6=E4=B8=8A=E4=BC=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- static/js/project/user/index.js | 32 +++++++++++++++++++++++++++++++- view/user/user.html | 8 +++++++- 2 files changed, 38 insertions(+), 2 deletions(-) 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 @@ - *开户证明: + *法人证件照: + +
+ + + + *附件上传: