kit.html
9.13 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
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>首页</title>
<link rel="stylesheet" type="text/css" href="../css/style/common.css">
<style type="text/css">
html,body{
margin: 0;
padding: 0;
}
h1,.mian{
margin: 20px;
}
.pop-title{
text-align: center;
}
.pop-content{
margin-top: 20px;
}
.pop-btn{
margin-top: 20px;
text-align: center;
}
#popdiv{
padding: 30px;
width: 400px;
}
</style>
<script type="text/javascript" src="../../common/js/base/jquery-1.8.2.min.js"></script>
<script type="text/javascript" src="../../common/js/base/sea.js"></script>
<script type="text/javascript" src="../js/javascript/common/config.js"></script>
</head>
<body>
<!-- header-->
<!-- header end -->
<!-- main start -->
<h1>按钮</h1>
<div class="mian">
<a href="#" class="submitBtn">按钮</a>
<a href="#" class="submitBtn orangeBtn">按钮</a>
<a href="#" class="submitBtn grayBtn">按钮</a>
<a href="#" class="submitBtn disabledBtn">禁用</a>
<a href="#" class="submitBtn strongBtn">按钮</a>
<button class="submitBtn strongBtn">按钮</button>
<a href="#" class="submitBtn orangeBtn strongBtn">按钮</a>
<span class="submitBtn grayBtn strongBtn">按钮</span>
<span class="submitBtn disabledBtn strongBtn">按钮</span>
</div>
<div class="mian">
<a href="#" class="submitBtn bigBtn">按钮</a><br><br>
<a href="#" class="submitBtn orangeBtn bigBtn">按钮</a><br><br>
<a href="#" class="submitBtn grayBtn bigBtn">按钮</a><br><br>
<a href="#" class="submitBtn disabledBtn bigBtn">禁用</a>
</div>
<h1>文本框</h1>
<div class="mian">
<table class="form-table">
<tr>
<td class="align-right"><span class="required-icon">*</span>标题:</td>
<td>
<input class="iptText">
<p class="iptTips">提示文字</p>
</td>
</tr>
<tr>
<td class="align-right">标题:</td>
<td><input class="iptText valid"></td>
</tr>
<tr>
<td class="align-right">标题:</td>
<td><input class="iptText error"></td>
</tr>
<tr>
<td class="align-right">标题:</td>
<td>
<select>
<option>请选择</option>
<option>选项一</option>
</select>
</td>
</tr>
</table>
</div>
<h1>分步</h1>
<div class="mian">
<div class="steps col4">
<ul class="clearfix">
<li class="steps-current steps1">
<span class="steps-num">1</span>
填写身份信息
<i></i>
<em></em>
</li>
<li class="steps2">
<span class="steps-num">2</span>
确认信息
<i></i>
<em></em>
</li>
<li class="steps3">
<span class="steps-num">3</span>
认证审核
<i></i>
<em></em>
</li>
<li class="steps4">
<span class="steps-num">4</span>
认证完成
</li>
</ul>
</div>
</div>
<div class="mian">
<div class="steps col4">
<ul class="clearfix">
<li class="steps-current steps1">
<span class="steps-num">1</span>
填写身份信息
<i></i>
<em></em>
</li>
<li class="steps-current steps2">
<span class="steps-num">2</span>
确认信息
<i></i>
<em></em>
</li>
<li class="steps3">
<span class="steps-num">3</span>
认证审核
<i></i>
<em></em>
</li>
<li class="steps4">
<span class="steps-num">4</span>
认证完成
</li>
</ul>
</div>
</div>
<div class="mian">
<div class="steps col3">
<ul class="clearfix">
<li class="steps-current steps1">
<span class="steps-num">1</span>
填写身份信息
<i></i>
<em></em>
</li>
<li class=" steps2">
<span class="steps-num">2</span>
确认信息
<i></i>
<em></em>
</li>
<li class="steps3">
<span class="steps-num">4</span>
认证完成
</li>
</ul>
</div>
</div>
<h1>成功,警告,错误icon</h1>
<div class="mian">
<span class="safe-icon"></span>
<span class="safe-icon warning-icon"></span>
<span class="safe-icon error-icon"></span>
</div>
<h1>分页</h1>
<div class="mian">
<div class="page">
<a href="#" class="prev">上一页</a><a href="#">1</a><b>2</b><span>...</span><a href="#">13</a><a href="#">14</a><span>...</span><a href="#">39</a><a href="#">40</a><a href="#" class="next">下一页</a>
</div>
</div>
<h1>验证</h1>
<div class="mian">
<form class="s-validate">
<table class="form-table">
<tr>
<td class="align-right"><span class="required-icon">*</span>标题:</td>
<td>
<input name="1" class="iptText required">
<p class="iptTips">提示文字</p>
</td>
</tr>
<tr>
<td class="align-right"><span class="required-icon">*</span>不验证:</td>
<td>
<input name="2" class="iptText ignore">
<p class="iptTips">提示文字</p>
</td>
</tr>
<tr>
<td class="align-right"></td>
<td>
<button type="submit" class="submitBtn">提交</button>
</td>
</tr>
</table>
</form>
注:1、如果使用公共调用的validate方法,即form class="s-validate" , 如需要对某文本框不进行验证,需要加class=“ignore”。
2、若单独调用validate方法,如需要对某文本框不进行验证 。 需要使用如:<pre>$( '.s-validate' ).validate({ignore:'.ignore'});</pre>
</div>
<h1>alert 提示框</h1>
<div class="mian">
<span class="submitBtn" id="alert">alert提示框</span>
<span class="submitBtn" id="erroralert">错误提示框</span>
<span class="submitBtn" id="warningalert">警告提示框</span>
</div>
<h1>确认框</h1>
<div class="mian">
<span class="submitBtn" id="confirm">确认框</span>
</div>
<h1>弹出层</h1>
<div class="mian">
<a href="#popdiv" class="submitBtn s-fancybox" id="pop">普通弹层</a>
</div>
<div id="popdiv" style="display:none">
<h2 class="pop-title">普通弹层</h2>
<div class="pop-content">
弹层内容
</div>
<div class="pop-btn">
<span class="submitBtn" onclick="$.fancybox.close();">下一步</span>
<span class="submitBtn grayBtn" onclick="$.fancybox.close();">取消</span>
</div>
</div>
<!--main end-->
<script type="text/javascript">
seajs.use(['../js/javascript/common/common.js']);
seajs.use(['pophint'],function( pophint ) {
$( '#alert' ).click(function(){
new pophint( null , {
content:"<span class='safe-icon success-icon'></span> <span class='successTips'>密码修改成功</span>" ,
//<span class='safe-icon warning-icon'></span> <span class='warningTips'>密码修改失败</span>
//<span class='safe-icon error-icon'></span> <span class='errorTips'>错误</span>
onName:"立即重新登录",
showButton:false ,
operation : function( target ){
//点击确定按钮执行的回调
}
});
});
$( '#erroralert' ).click(function(){
new pophint( null , {
content:"<span class='safe-icon error-icon'></span> <span class='errorTips'>错误提示</span>" ,
//<span class='safe-icon warning-icon'></span> <span class='warningTips'>密码修改失败</span>
//<span class='safe-icon error-icon'></span> <span class='errorTips'>错误</span>
onName:"确定",
showButton:false ,
operation : function( target ){
//点击确定按钮执行的回调
}
});
});
$( '#warningalert' ).click(function(){
new pophint( null , {
content:"<span class='safe-icon warning-icon'></span> <span class='warningTips'>警告提示</span>" ,
//<span class='safe-icon warning-icon'></span> <span class='warningTips'>密码修改失败</span>
//<span class='safe-icon error-icon'></span> <span class='errorTips'>错误</span>
onName:"确定",
showButton:false ,
operation : function( target ){
//点击确定按钮执行的回调
}
});
});
$( '#confirm' ).click(function(){
new pophint( this , {
content:"<span class='safe-icon warning-icon'></span> <span class='warningTips'>确定要删除吗</span>" ,
operation : function( target ){
//点击确定按钮执行的回调
}
});
});
});
</script>
<!-- footer start -->
<!-- footer end -->
</body>
</html>