| | |
| | | TSite.addSubmit = function(){ |
| | | |
| | | var bodyType = $("input[name='bodyType']:checked").val(); |
| | | var accountType = $("input[name='accountType']:checked").val(); |
| | | var type = $("input[name='type']:checked").val(); |
| | | if (bodyType=="" || null == type){ |
| | | if (bodyType=="" || null == bodyType){ |
| | | Feng.error("请选择主体类型"); |
| | | return; |
| | | } |
| | |
| | | Feng.error("请上传法人身份证背面照"); |
| | | return; |
| | | } |
| | | |
| | | if(type=="ENTERPRISE"){ |
| | | if ("" == $("#bName").val() || null == $("#bName").val()){ |
| | | Feng.error("请输入受益人姓名"); |
| | |
| | | } |
| | | if ($("#IDCardEnd").val()==""){ |
| | | ajax.set("legalEnd","forever"); |
| | | ajax.set("lpIcForeverFlag", 0); |
| | | }else{ |
| | | ajax.set("legalEnd",$("#IDCardEnd").val()); |
| | | ajax.set("lpIcForeverFlag", 1); |
| | | } |
| | | |
| | | if(bodyType=="ENTERPRISE"){ |
| | | if ($("#bEnd").val()==""){ |
| | | console.log("永远") |
| | | ajax.set("beneficiaryEnd","forever"); |
| | | |
| | | }else{ |
| | | console.log("嗯嗯嗯") |
| | | ajax.set("beneficiaryEnd",$("#bEnd").val()); |
| | | } |
| | | } |
| | | |
| | | var tradeT = document.getElementById('tradeE'); |
| | | if (tradeT.checked) { |
| | | endTime.disabled = true; |
| | | endTime.value=""; |
| | | ajax.set("blBusinessFoeverFlag", 1); |
| | | } else { |
| | | ajax.set("blBusinessFoeverFlag", 0); |
| | | endTime.disabled = false; |
| | | } |
| | | ajax.set("businessTerm", $("#tradeTime").val() ); |
| | | ajax.set("name", $("#name").val() ); |
| | |
| | | ajax.set("legalAddress", $("#lIDAddress").val() ); |
| | | ajax.set("legalFront", $("#IDCardImg").val() ); |
| | | ajax.set("legalBack", $("#IDCardImg1").val() ); |
| | | ajax.set("accountType", accountType ); |
| | | ajax.set("bank", $("#bank").val() ); |
| | | ajax.set("accountName", $("#backUserName").val() ); |
| | | ajax.set("province", $('#pCode option:selected').text() ); |
| | | ajax.set("provinceCode", $("#pCode").val() ); |
| | | ajax.set("city", $('#cCode option:selected').text() ); |
| | | ajax.set("cityCode", $("#cCode").val() ); |
| | | ajax.set("bankName", $("#backName").val() ); |
| | | ajax.set("bankNumber", $("#backNumber").val() ); |
| | | ajax.set("isBeneficiary", type ); |
| | | ajax.set("beneficiary", $("#bName").val() ); |
| | | ajax.set("beneficiaryPhone", $("#bPhone").val() ); |