站长答疑:(张先生) | 手机:18616712339 | 在线QQ: | . |
|
钮门快递软件 >> 常见问题 微信端,微信公众号“上传身份证图片”页面源码 | 老版上传身份证图片手机端微信端(支持左右合并,支持运单号提交)
如果希望支持运单号录入“全名址”的“扩展一”里面,请在form表单里添加一个input↓
<input type='text' name='cex1' size=30 class="myinput"> 合并功能默认没有。 —————————————————————————— <html> <head> <title>手机上传身份证</title> <meta http-equiv="Content-Type" content="text/html; charset=gb2312"> <meta name="viewport" content="width=device-width, initial-scale=1" /> <link href="http://www.17ckd.com/weixin/M.css" rel="stylesheet" type="text/css" /> </head> <body style="padding:4px"> <script language='javascript' type='text/javascript'> var request = false; try {request = new XMLHttpRequest();} catch (trymicrosoft) { try{request = new ActiveXObject('Msxml2.XMLHTTP');} catch (othermicrosoft) { try{request = new ActiveXObject('Microsoft.XMLHTTP');} catch (failed){request = false;}}} function GO(o){ if(event.keyCode==13){ event.keyCode=9;o.focus();}} var bOk=true; function pre_submit(){ var strErr='请更正如下资料后再提交:\r\n-------------------\r\n'; var str=theForm.cidcard.value; var str1=str.substring(0,17); var str2=str.substr(17,1); theForm.cunit.value= theForm.cidcard.value; var rege1=/[\d]/g; var a1=str1.match(rege1); var rege2=/[\da-zA-Z]/g; var a2=str2.match(rege2); if(str.length!=18) {strErr+='请正确填写身份证号码\r\n';bOk=false;} if(a1==null||a2==null) {strErr+='身份证号码不正确\r\n';bOk=false;} if(!IsImage(0)||!IsImage(1)){strErr+='文件格式不正确,请重新上传\r\n';} if(!bOk) alert(strErr); return bOk; } function IsImage(ic) { bOk=true; var str=""; var o=document.getElementById("file"+ic); if(o==null) return false; str=o.value; return false; } </script> <DIV align="center" style="text-align:left"> <form method='POST' id='theForm' name='theForm' action='http://www.17ckd.com/cgi-bin/GInfo.dll?SRISet' target='theNote' enctype='multipart/form-data' onsubmit='return pre_submit();'> <input type='hidden' name='w' value='17ckd'> <input type='hidden' name='iid' value=0> <input type='hidden' name='ikind' value=0> <input type='hidden' name='ccode' value=''> <input type='hidden' name='cmark'> <input type='hidden' name='cqq'> <input type='hidden' name='cmsn'> <input type='hidden' name='cskype'> <input type='hidden' name='cwang' > <input type='hidden' name='csms'> <input name='ccountry' type='hidden' > <input name='cunit' type='hidden'> <input type='hidden' name='caddr' value="上传身份证明"> <input type='hidden' name='cphone' > <input type='hidden' name='cemail' > <input type='hidden' name='cpost' > <input type='hidden' name='cprovince' > <input type='hidden' name='ccity' > <input type='hidden' name='nTreatIDCard' value=0><!--0:不处理;1:合并身份证图片(前两个文件)--> 收件人姓名: <input type='text' name='cname' size=30 onkeypress='GO(eval(cidcard));' class="myinput"> <BR> 身份证号码:<input type='text' name='cidcard' size=30 class="myinput"> <input type='hidden' name='cex1' size=30 class="myinput"> <!--这个字段是用来上传运单号的--> <BR> 身份证图片↓<BR> (正面:)<input name="file0" id="file0" type="file" size="40" onchange="IsImage(0);" > <BR> (反面:) <input name="file1" id="file1" type="file" size="40" onchange="IsImage(1);"> <BR> <input name=file2 id=file2 size=40 onChange="IsImage(2);" type="hidden"> <br> <div id='fileDiv' style='display:none'><div id='lFile'></div></div> <input type='submit' value='提交信息' class="btn_submit" id="oSubmit" style="background-color:#C00; color:#FFF; padding-left:4px; padding-right:4px; border:0;"> <span id='btnDelete'></span> <div id='theItems' name = 'theItems'> </div> <IFRAME frameBorder=0 allowtransparency="1" height=20 marginHeight=0 marginWidth=0 width=400 name='theNote' id='theNote' SCROLLING=NO></IFRAME> </form> </DIV> <DIV align="center" style="padding-bottom:10pt"> <table width="95%" style="text-align:left;float:left;width:95%; border:1pt solid #e0e0e0"> <tr> <td align="center" valign="middle" style="text-align:center;padding:4pt;border:1pt solid #e0e0e0;font-size:15pt"><A href="#">运单查询</A></td> <td align="center" valign="middle" style="text-align:center;padding:4pt;border:1pt solid #e0e0e0;font-size:15pt"><A href="#">身份证上传</A></td> </tr> </table> </DIV> </body> </html> 钮门快递软件|EMMIS[2016.09.29-14:57]编辑:钮门快递软件|EMMIS 访问:3446
|
|
关于本网站
|
... |
物流查询工具
|
网站快速通道
|
其他服务与支持
|