add_information.html
5.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8" />
<meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0;" name="viewport" />
<meta http-equiv="X-UA-Compatible" content="ie=edge" />
<title>学考无忧-个人信息</title>
<link rel="stylesheet" href="__TMPL__/public/assets/css/reset.css" />
<link rel="stylesheet" href="__TMPL__/public/assets/css/log.css" />
</head>
<body>
<div class="log_top_second">
<!-- 顶部 -->
<div class="ad_top" style="background-color:white;">
<a href="javascript:history.back(-1)">
<img class="ad_topImg" src="__TMPL__/public/assets/images/left.png" alt="" />
</a>
<h1>个人信息</h1>
</div>
</div>
<div class="log_two_input">
<div class="log_two_input_one">
<div class="log_two_input_title">
姓名
</div>
<div class="log_two_input_contant">
<input type="text" placeholder="请输入姓名" />
</div>
</div>
<div class="log_two_input_one">
<div class="log_two_input_title">
手机号
</div>
<div class="log_two_input_contant">
<input style="width:3rem" type="text" placeholder="请输入手机号" maxlength="11" />
</div>
<div class="log_two_input_btn">
获取验证码
</div>
</div>
<div class="log_two_input_one">
<div class="log_two_input_title">
输入验证码
</div>
<div class="log_two_input_contant">
<input type="text" placeholder="请输入验证码" />
</div>
</div>
<div class="log_two_input_one">
<div class="log_two_input_title">
身份证号
</div>
<div class="log_two_input_contant">
<input type="text" placeholder="请输入身份证号" />
</div>
</div>
</div>
<div class="log_two_picture">
<div class="log_two_picture_title">
上传证件照
</div>
<div class="log_two_picture_img">
<div class="log_two_pi_one">
<div class="log_two_pi_one_icon">
<img src="__TMPL__/public/assets/images/jiahao.png" id="img0" alt="" />
</div>
<div class="log_two_pi_one_p">
正面
</div>
<div class="input_file">
<input type="file" onchange="addImg(this)" />
</div>
</div>
<div class="log_two_pi_one log_two_pi_two">
<div class="log_two_pi_one_icon">
<img src="__TMPL__/public/assets/images/jiahao.png" id="img1" alt="" />
</div>
<div class="log_two_pi_one_p">
反面
</div>
<div class="input_file">
<input type="file" onchange="addImgOne(this)" />
</div>
</div>
</div>
<div class="log_two_picture_state">
<div class="log_two_ps_one">
拍照示范
</div>
<div class="log_two_ps_two">
<img src="__TMPL__/public/assets/images/88.png" alt="" class="img1" />
<img src="__TMPL__/public/assets/images/89.png" alt="" class="img2" />
</div>
<div class="log_two_ps_three">
请稳定拍摄,保证照片中的<span>证件完整</span>,字体清晰,亮度均匀,可以高通过率
</div>
</div>
</div>
<!-- 保存 -->
<div class="log_two_bottom_btn">
<a href="log_first.html">保存</a>
</div>
<script src="__TMPL__/public/assets/js/jquery.js"></script>
<script src="__TMPL__/public/assets/js/base.js"></script>
<script>
// 上传图片
function addImg(file) {
console.log(file.files);
if (file.files && file.files[0]) {
var reader = new FileReader();
reader.onload = function(evt) {
$("#img0").attr("src", evt.target.result);
$(".log_two_pi_one").addClass("log_two_pi_ones");
$(".log_two_pi_one_p").addClass("log_two_pi_one_ps");
$(".log_two_pi_one_icon").addClass("log_two_pi_one_icons");
};
reader.readAsDataURL(file.files[0]);
} else {
// $("#preview").html('<div style="filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(sizingMethod=scale,src=\'' + file.value + '\'"></div>');
}
}
function addImgOne(file) {
console.log(file.files);
if (file.files && file.files[0]) {
var reader = new FileReader();
reader.onload = function(evt) {
$("#img1").attr("src", evt.target.result);
$(".log_two_pi_one").addClass("log_two_pi_ones");
$(".log_two_pi_one_p").addClass("log_two_pi_one_ps");
$(".log_two_pi_one_icon").addClass("log_two_pi_one_icons");
};
reader.readAsDataURL(file.files[0]);
} else {
// $("#preview").html('<div style="filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(sizingMethod=scale,src=\'' + file.value + '\'"></div>');
}
}
</script>
</body>
</html>