gift.html
5.3 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>礼品页</title>
<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
<link rel="stylesheet" type="text/css" href="css/common.css">
<link rel="stylesheet" type="text/css" href="css/gift.css">
<script src="js/base.js"></script>
<script src="js/jquery.min.js"></script>
</head>
<body>
<div class="container">
<div class="home_container">
<!--头部-->
<div class="banner">
<div class="banner_img">
<img src="images/logo@2x.png" width="100%" height="100%">
</div>
<div class="banner_title">
礼品申请
</div>
</div>
<div class="menu">
<div class="menu_item menu_sort">
综合排序
</div>
<div class="menu_item ">
价格
</div>
<div class="menu_item ">
库存
</div>
</div>
<!--产品列表-->
<div class="index_item_a">
<!--index -->
<div class="items">
<div class="item">
<div class="item_img">
<img src="images/pic01@2x.png" width="100%" onclick="btn_next()">
</div>
<div class="item_text">
<div class="item_text_intro">
小米AI音响mini
</div>
<div class="item_text_price">
<span>$ 217.0</span>
<span>库存: 10</span>
</div>
</div>
</div>
<div class="item">
<div class="item_img">
<img src="images/pic01@2x.png" width="100%">
</div>
<div class="item_text">
<div class="item_text_intro">
小米AI音响mini
</div>
<div class="item_text_price">
<span>$ 217.0</span>
<span>库存: 10</span>
</div>
</div>
</div>
<div class="item">
<div class="item_img">
<img src="images/pic01@2x.png" width="100%">
</div>
<div class="item_text">
<div class="item_text_intro">
小米AI音响mini
</div>
<div class="item_text_price">
<span>$ 217.0</span>
<span>库存: 10</span>
</div>
</div>
</div>
<div class="item">
<div class="item_img">
<img src="images/pic01@2x.png" width="100%">
</div>
<div class="item_text">
<div class="item_text_intro">
小米AI音响mini
</div>
<div class="item_text_price">
<span>$ 217.0</span>
<span>库存: 10</span>
</div>
</div>
</div>
<div class="item">
<div class="item_img">
<img src="images/pic01@2x.png" width="100%">
</div>
<div class="item_text">
<div class="item_text_intro">
小米AI音响mini
</div>
<div class="item_text_price">
<span>$ 217.0</span>
<span>库存: 10</span>
</div>
</div>
</div>
<div class="item">
<div class="item_img">
<img src="images/pic01@2x.png" width="100%">
</div>
<div class="item_text">
<div class="item_text_intro">
小米AI音响mini
</div>
<div class="item_text_price">
<span>$ 217.0</span>
<span>库存: 10</span>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<script type="text/javascript">
$(function () {
$(".menu_item").click(function () {
var index = $(this).index()
console.log(index)
$(this).addClass('menu_sort').siblings('.menu_item').removeClass('menu_sort')
$('.index_item_a').eq(index).show().siblings("items").hide() //切换内容语法
// $(this).addClass("menu_sort");
// $(this).siblings(".menu_item").removeClass("menu_sort")
})
})
function btn_next() {
window.location.href = "spxq.html";
}
</script>
</body>
</html>