|
|
@@ -27,11 +27,11 @@
|
|
|
line-height:30px ;
|
|
|
}
|
|
|
.picture td{
|
|
|
- height: 180px;
|
|
|
+ /*height: 180px;*/
|
|
|
}
|
|
|
.images{
|
|
|
width: 200px;
|
|
|
- height: 150px;
|
|
|
+ /*height: 150px;*/
|
|
|
border: 1px #aaa solid;
|
|
|
}
|
|
|
</style>
|
|
|
@@ -39,7 +39,7 @@
|
|
|
<form method="post" enctype="multipart/form-data">
|
|
|
<div class="information">
|
|
|
<div style="color:dodgerblue;">请务必保证您填写的信息准确无误,否则有可能造成认证失败</div>
|
|
|
- <div style="margin-top: 10px;font-size: 11px;">当前内容适用大陆客户,若您非大陆用户,请点击 <a href="">非大陆客户</a></div>
|
|
|
+ <!--<div style="margin-top: 10px;font-size: 11px;">当前内容适用大陆客户,若您非大陆用户,请点击 <a href="">非大陆客户</a></div>-->
|
|
|
</div>
|
|
|
<div class="info">
|
|
|
<table>
|
|
|
@@ -66,23 +66,29 @@
|
|
|
<tr class="picture">
|
|
|
<td class="td_info"><div style="margin-top: -90px;">证件上传</div></td>
|
|
|
<td class="td_user_info user_info">
|
|
|
- <div class="images"><input type="file" name="img_front" /></div>
|
|
|
+ <input type="file" id="img_front" name="img_front" style="border: none;"/>
|
|
|
+ <div class="images">
|
|
|
+ <img id="onFileFront" src="" style="width: 180px;">
|
|
|
+ </div>
|
|
|
<div style="width:180px;height: 20px;margin-top: -20px;text-align: center;font-size: 10px;color: #AAA;">证件正面</div>
|
|
|
</td>
|
|
|
<td class="td_user_info">
|
|
|
- <div class="images"><input type="file" name="img_back"></div>
|
|
|
+ <input type="file" id="img_back" name="img_back">
|
|
|
+ <div class="images">
|
|
|
+ <img id="onFileBack" src="" style="width: 180px;">
|
|
|
+ </div>
|
|
|
<div style="width:180px;height: 20px;margin-top: -20px;text-align: center;font-size: 10px;color: #AAA;">证件反面</div>
|
|
|
</td>
|
|
|
</tr>
|
|
|
- <tr>
|
|
|
- <td class="td_info"></td>
|
|
|
- <td class="td_user_info"><input type="checkbox" name="ch_box" id="ch_box" onclick="c_box()" /><span>同意 <a href="shenming.html" target="_blank"> 真实性声明</a></span></td>
|
|
|
- <td class="td_user_info"></td>
|
|
|
- </tr>
|
|
|
- <tr>
|
|
|
+ <!--<tr>-->
|
|
|
+ <!--<td class="td_info"></td>-->
|
|
|
+ <!--<td class="td_user_info"><input type="checkbox" name="ch_box" id="ch_box" onclick="c_box()" /><span>同意 <a href="shenming.html" target="_blank"> 真实性声明</a></span></td>-->
|
|
|
+ <!--<td class="td_user_info"></td>-->
|
|
|
+ <!--</tr>-->
|
|
|
+ <tr style="height: 120px;">
|
|
|
<td class="td_info"></td>
|
|
|
<td class="td_user_info user_info">
|
|
|
- <input type="submit" value="确认" style="width: 70px;">               <input type="button" id="cancel" value="取消" style="width: 70px;">
|
|
|
+ <input type="submit" value="确认" style="width: 70px;cursor:pointer;">               <input type="button" id="cancel" value="取消" style="width: 70px;cursor:pointer;">
|
|
|
</td>
|
|
|
<td class="td_user_info"></td>
|
|
|
</tr>
|
|
|
@@ -112,5 +118,55 @@
|
|
|
}
|
|
|
})
|
|
|
});
|
|
|
+
|
|
|
+ $(function() {
|
|
|
+ $("#img_front").change(function(e) {
|
|
|
+ var imgfront = e.target;
|
|
|
+ uploadImgFront(imgfront)
|
|
|
+ });
|
|
|
+
|
|
|
+ $("#img_back").change(function(e) {
|
|
|
+ var imgback = e.target;
|
|
|
+ uploadImgBack(imgback)
|
|
|
+ });
|
|
|
+
|
|
|
+ function uploadImgFront(tag) {
|
|
|
+ var file = tag.files[0];
|
|
|
+ var imgSrc;
|
|
|
+ if (!/image\/\w+/.test(file.type)) {
|
|
|
+ alert("您选择的图片格式错误");
|
|
|
+ let fileIput = $("#img_front").val("");
|
|
|
+ //fileIput.after(fileIput.clone().val(""));
|
|
|
+ $("#onFileFront").attr("src", '/static/user/images/header.png');
|
|
|
+ //fileIput.remove();
|
|
|
+ return false;
|
|
|
+ }
|
|
|
+ var reader = new FileReader();
|
|
|
+ reader.readAsDataURL(file);
|
|
|
+ reader.onload = function() {
|
|
|
+ imgSrc = this.result;
|
|
|
+ $("#onFileFront").attr("src", imgSrc);
|
|
|
+ };
|
|
|
+ }
|
|
|
+
|
|
|
+ function uploadImgBack(tag) {
|
|
|
+ var file = tag.files[0];
|
|
|
+ var imgSrc;
|
|
|
+ if (!/image\/\w+/.test(file.type)) {
|
|
|
+ alert("您选择的图片格式错误");
|
|
|
+ let fileIput = $("#img_back").val("");
|
|
|
+ //fileIput.after(fileIput.clone().val(""));
|
|
|
+ $("#onFileBack").attr("src", '/static/user/images/header.png');
|
|
|
+ //fileIput.remove();
|
|
|
+ return false;
|
|
|
+ }
|
|
|
+ var reader = new FileReader();
|
|
|
+ reader.readAsDataURL(file);
|
|
|
+ reader.onload = function() {
|
|
|
+ imgSrc = this.result;
|
|
|
+ $("#onFileBack").attr("src", imgSrc);
|
|
|
+ };
|
|
|
+ }
|
|
|
+ })
|
|
|
</script>
|
|
|
{/block}
|