-
Notifications
You must be signed in to change notification settings - Fork 0
/
addType.html
74 lines (74 loc) · 3.21 KB
/
addType.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
<html>
<head>
<meta charset="utf-8">
<title>管理首页-添加分类</title>
<link rel="stylesheet" type="text/css" href="./css/style.css">
</head>
<body>
<div class="header"><span>陈砦花卉鲜花走势管理系统</span></div>
<div class="main">
<div class="sidebar">
<div class="menu">
<ul>
<li><a href="./typeList.html">分类管理</a></li>
<li><a href="./flowerMange.html">鲜花管理</a></li>
<li><a href="./index.html">每日报价</a></li>
<li><a href="./remarks.html">备注管理</a></li>
</ul>
</div>
</div>
<div class="content">
<div class="crumbs">添加分类</div>
<div class="cont-box">
<div id="typeSelect" class="form-item">
<div class="label">请选择类型</div>
<div class="inpu">
<select class="selectsty">
<option value="1">鲜花类型</option>
<option value="2">鲜切花</option>
<option value="3">盆花</option>
<option value="3">苗木</option>
</select>
<div class="tips" style="font-size: 12px; color: #f00">鲜花类型为顶级类型,如:鲜切花、盆花、苗木,其余可选项为添加的鲜花类型</div>
</div>
</div>
<div id="leveSelect" class="form-item" style="display:none">
<div class="label">系列/级别</div>
<div class="inpu">
<select class="selectsty">
<option value="1">系列</option>
<option value="2">级别</option>
</select>
</div>
</div>
<div class="form-item">
<div class="label">类型名称</div>
<div class="inpu">
<input class="inputsty" type="text">
</div>
</div>
<div class="form-item">
<div class="label"></div>
<div class="inpu">
<button class="butsty">保存</button>
</div>
</div>
</div>
</div>
</div>
<script src="./js/jquery.min.js"></script>
<script>
$(function(){
console.log(222)
$("#typeSelect").find('.selectsty').bind('change', function(e) {
var typeVal = $("#typeSelect").find('.selectsty').val() - 0
if (typeVal !== 1) {
$("#leveSelect").show()
} else {
$("#leveSelect").hide()
}
})
})
</script>
</body>
</html>