-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtest.html
151 lines (139 loc) · 5.73 KB
/
test.html
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
<!doctype html>
<html class="no-js">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title></title>
<meta name="description" content="">
<meta name="keywords" content="">
<meta name="viewport" content="width=1280, initial-scale=1">
<meta name="renderer" content="webkit">
<meta http-equiv="Cache-Control" content="no-siteapp">
<link rel="stylesheet" href="css/amazeui.css">
<link rel="stylesheet" href="icon/iconfont.css">
<link rel="stylesheet" href="css/common.css">
<style>
#vld-tooltip {
position: absolute;
z-index: 1000;
padding: 5px 10px;
background: #F37B1D;
min-width: 150px;
color: #fff;
transition: all 0.15s;
box-shadow: 0 0 5px rgba(0,0,0,.15);
display: none;
}
#vld-tooltip:before {
position: absolute;
top: -8px;
left: 50%;
width: 0;
height: 0;
margin-left: -8px;
content: "";
border-width: 0 8px 8px;
border-color: transparent transparent #F37B1D;
border-style: none inset solid;
}
</style>
</head>
<body id="ubody">
<!-- header -->
<header id="uheader" class="am-topbar am-topbar-fixed-top">
<div class="am-topbar-brand ulogo">
<a href=""><img src="./img/logo.jpg"></a>
</div>
<div class="am-topbar-left utitle">河南奕之堂健康管理有限公司——唐人街老店</div>
<ul class="am-nav am-nav-pills am-topbar-nav am-topbar-right unav">
<li>
<a href="javascript:;"><span class="iconfont icon-systemprompt_fill"></span> <span>消息</span></a>
</li>
<li class="am-dropdown" data-am-dropdown>
<a class="am-dropdown-toggle" href="javascript:;" data-am-dropdown-toggle>
<span class="iconfont icon-wode"></span> <span class="udropdown">收银员</span>
</a>
<ul class="am-dropdown-content umenu1">
<li><a href="#"><span class="am-icon-user am-icon-fw"></span> 资料</a></li>
<li><a href="#"><span class="am-icon-cog am-icon-fw"></span> 设置</a></li>
<li><a href="#"><span class="am-icon-power-off am-icon-fw"></span> 退出</a></li>
</ul>
</li>
<li class="am-dropdown" data-am-dropdown>
<a class="am-dropdown-toggle" href="javascript:;" data-am-dropdown-toggle>
<span class="iconfont icon-dianpu1"></span> <span class="udropdown">转换为管理员</span>
</a>
<ul class="am-dropdown-content umenu2">
<li><a href="#"><span class="am-icon-user am-icon-fw"></span> 唐人街老店</a></li>
<li><a href="#"><span class="am-icon-cog am-icon-fw"></span> 伏牛路新店</a></li>
<li><a href="#"><span class="am-icon-power-off am-icon-fw"></span> 第八号当铺第八号当铺第八号当铺</a></li>
</ul>
</li>
</ul>
<a href="#" class="am-topbar-right uad">视频教程</a>
</header>
<!-- header end -->
<!-- left menu -->
<ul id="umenu" class="am-nav">
<li><a href="main.html"><span class="iconfont icon-caiwu-xianxing"></span> 收银</a></li>
<li class="am-active"><a href="user.html"><span class="iconfont icon-wsmp-payuser"></span> 会员</a></li>
<li><a href="appoint.html"><span class="iconfont icon-clock"></span> 预约</a></li>
<li><a href="detail.html"><span class="iconfont icon-ziliao"></span> 明细</a></li>
<li><a href=""><span class="iconfont icon-jifen-xianxing"></span> 支出</a></li>
<li><a href=""><span class="iconfont icon-baobiao-xianxing"></span> 统计</a></li>
<li><a href=""><span class="iconfont icon-weixin"></span> 微信</a></li>
<li><a href=""><span class="iconfont icon-weidian"></span> 微店</a></li>
<li class="am-dropdown" data-am-dropdown>
<a href="javascript:;" class="am-dropdown-toggle" data-am-dropdown-toggle><span class="iconfont icon-setup"></span> 设置</a>
<ul class="am-dropdown-content umenu3">
<li><a href="employee.html"><span class="am-icon-user am-icon-fw"></span> 员工管理</a></li>
<li><a href="#"><span class="am-icon-cog am-icon-fw"></span> 设置</a></li>
<li><a href="#"><span class="am-icon-power-off am-icon-fw"></span> 退出</a></li>
</ul>
</li>
</ul>
<!-- left menu end -->
<!-- main -->
<div class="gcontent" id="">
<form action="" class="am-form" id="form-with-tooltip">
<fieldset>
<legend>定义 Tooltip</legend>
<div class="am-form-group">
<label for="doc-vld-name-2-0">用户名:</label>
<input type="text" id="doc-vld-name-2-0" minlength="3"
placeholder="输入用户名(至少 3 个字符" data-foolish-msg="把 IQ 卡密码交出来!" required/>
</div>
<div class="am-form-group">
<label for="doc-vld-pwd-1-0">密码:</label>
<input type="password" id="doc-vld-pwd-1-0" placeholder="6 位数字的银行卡密码" pattern="^\d{6}$" required data-foolish-msg="把 IQ 卡密码交出来!"/>
</div>
<button class="am-btn am-btn-secondary" type="submit">提交</button>
</fieldset>
</form>
</div>
<script src="js/jquery.min.js"></script>
<script src="js/amazeui.min.js"></script>
<script type="text/javascript">
$(function() {
var $form = $('#form-with-tooltip');
var $tooltip = $('<div id="vld-tooltip">提示信息!</div>');
$tooltip.appendTo(document.body);
$form.validator();
var validator = $form.data('amui.validator');
$form.on('focusin focusout', '.am-form-error input', function(e) {
if (e.type === 'focusin') {
var $this = $(this);
var offset = $this.offset();
var msg = $this.data('foolishMsg') || validator.getValidationMessage($this.data('validity'));
$tooltip.text(msg).show().css({
left: offset.left + 10,
top: offset.top + $(this).outerHeight() + 10
});
} else {
$tooltip.hide();
}
});
});
</script>
</body>
</html>