-
Notifications
You must be signed in to change notification settings - Fork 0
/
shopcart.html
executable file
·180 lines (172 loc) · 7.79 KB
/
shopcart.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
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
<!DOCTYPE html>
<html>
<head>
<title>购物车</title>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
<meta name="description" content="Write an awesome description for your new site here. You can edit this line in _config.yml. It will appear in your document head meta (for Google search results) and in your feed.xml site description.">
<link rel="stylesheet" href="lib/weui.min.css">
<link rel="stylesheet" href="css/jquery-weui.css">
<link rel="stylesheet" href="css/style.css">
</head>
<body ontouchstart>
<!--主体-->
<header class="wy-header">
<div class="wy-header-icon-back"><span></span></div>
<div class="wy-header-title">购物车</div>
</header>
<div class="weui-content">
<div class="weui-panel weui-panel_access">
<div class="weui-panel__hd"><span>互利旗舰店</span><a href="javascript:;" class="wy-dele"></a></div>
<div class="weui-panel__bd">
<div class="weui-media-box_appmsg pd-10">
<div class="weui-media-box__hd check-w weui-cells_checkbox">
<label class="weui-check__label" for="cart-pto1">
<div class="weui-cell__hd cat-check"><input type="checkbox" class="weui-check" name="cartpro" id="cart-pto1"><i class="weui-icon-checked"></i></div>
</label>
</div>
<div class="weui-media-box__hd"><a href="pro_info.html"><img class="weui-media-box__thumb" src="upload/pro3.jpg" alt=""></a></div>
<div class="weui-media-box__bd">
<h1 class="weui-media-box__desc"><a href="pro_info.html" class="ord-pro-link">甜美纯粮食酒2瓶装包邮</a></h1>
<p class="weui-media-box__desc">规格:<span>红色</span>,<span>23</span></p>
<div class="clear mg-t-10">
<div class="wy-pro-pri fl">¥<em class="num font-15">296.00</em></div>
<div class="pro-amount fr"><div class="Spinner"></div></div>
</div>
</div>
</div>
</div>
</div>
<div class="weui-panel weui-panel_access">
<div class="weui-panel__hd"><span>互利旗舰店</span><a href="javascript:;" class="wy-dele"></a></div>
<div class="weui-panel__bd">
<div class="weui-media-box_appmsg pd-10">
<div class="weui-media-box__hd check-w weui-cells_checkbox">
<label class="weui-check__label" for="cart-pto2">
<div class="weui-cell__hd cat-check"><input type="checkbox" class="weui-check" name="cartpro" id="cart-pto2"><i class="weui-icon-checked"></i></div>
</label>
</div>
<div class="weui-media-box__hd"><a href="pro_info.html"><img class="weui-media-box__thumb" src="upload/pro3.jpg" alt=""></a></div>
<div class="weui-media-box__bd">
<h1 class="weui-media-box__desc"><a href="pro_info.html" class="ord-pro-link">相聚恒前酒500ml52度高端纯粮食酒2瓶装包邮</a></h1>
<p class="weui-media-box__desc">规格:<span>红色</span>,<span>23</span></p>
<div class="clear mg-t-10">
<div class="wy-pro-pri fl">¥<em class="num font-15">296.00</em></div>
<div class="pro-amount fr"><div class="Spinner"></div></div>
</div>
</div>
</div>
</div>
</div>
<div class="weui-panel weui-panel_access">
<div class="weui-panel__hd"><span>互利旗舰店</span><a href="javascript:;" class="wy-dele"></a></div>
<div class="weui-panel__bd">
<div class="weui-media-box_appmsg pd-10">
<div class="weui-media-box__hd check-w weui-cells_checkbox">
<label class="weui-check__label" for="cart-pto3">
<div class="weui-cell__hd cat-check"><input type="checkbox" class="weui-check" name="cartpro" id="cart-pto3"><i class="weui-icon-checked"></i></div>
</label>
</div>
<div class="weui-media-box__hd"><a href="pro_info.html"><img class="weui-media-box__thumb" src="upload/pro3.jpg" alt=""></a></div>
<div class="weui-media-box__bd">
<h1 class="weui-media-box__desc"><a href="pro_info.html" class="ord-pro-link">经典典Q7浓香型白酒500ml52度高端纯粮食酒2瓶装包邮</a></h1>
<p class="weui-media-box__desc">规格:<span>红色</span>,<span>23</span></p>
<div class="clear mg-t-10">
<div class="wy-pro-pri fl">¥<em class="num font-15">296.00</em></div>
<div class="pro-amount fr"><div class="Spinner"></div></div>
</div>
</div>
</div>
</div>
</div>
<div class="weui-panel weui-panel_access">
<div class="weui-panel__hd"><span>互利旗舰店</span><a href="javascript:;" class="wy-dele"></a></div>
<div class="weui-panel__bd">
<div class="weui-media-box_appmsg pd-10">
<div class="weui-media-box__hd check-w weui-cells_checkbox">
<label class="weui-check__label" for="cart-pto4">
<div class="weui-cell__hd cat-check"><input type="checkbox" class="weui-check" name="cartpro" id="cart-pto4"><i class="weui-icon-checked"></i></div>
</label>
</div>
<div class="weui-media-box__hd"><a href="pro_info.html"><img class="weui-media-box__thumb" src="upload/pro3.jpg" alt=""></a></div>
<div class="weui-media-box__bd">
<h1 class="weui-media-box__desc"><a href="pro_info.html" class="ord-pro-link">经典白酒型白酒500ml52度高端纯粮食酒2瓶装包邮</a></h1>
<p class="weui-media-box__desc">规格:<span>红色</span>,<span>23</span></p>
<div class="clear mg-t-10">
<div class="wy-pro-pri fl">¥<em class="num font-15">296.00</em></div>
<div class="pro-amount fr"><div class="Spinner"></div></div>
</div>
</div>
</div>
</div>
</div>
</div>
<!--底部导航-->
<div class="foot-black"></div>
<div class="weui-tabbar wy-foot-menu">
<div class="npd cart-foot-check-item weui-cells_checkbox allselect">
<label class="weui-cell allsec-well weui-check__label" for="all">
<div class="weui-cell__hd">
<input type="checkbox" class="weui-check" name="all-sec" id="all">
<i class="weui-icon-checked"></i>
</div>
<div class="weui-cell__bd">
<p class="font-14">全选</p>
</div>
</label>
</div>
<div class="weui-tabbar__item npd">
<p class="cart-total-txt">合计:<i>¥</i><em class="num font-16" id="zong1">22222.00</em></p>
</div>
<a href="order_info2.html" class="red-color npd w-90 t-c">
<p class="promotion-foot-menu-label">去结算</p>
</a>
</div>
<script src="lib/jquery-2.1.4.js"></script>
<script src="lib/fastclick.js"></script>
<script type="text/javascript" src="js/jquery.Spinner.js"></script>
<script>
$(function() {
FastClick.attach(document.body);
});
</script>
<script type="text/javascript">
$(function(){
$(".Spinner").Spinner({value:1, len:3, max:999});
});
</script>
<script src="js/jquery-weui.js"></script>
<!---全选按钮-->
<script type="text/javascript">
$(document).ready(function () {
$(".allselect").click(function () {
if($(this).find("input[name=all-sec]").prop("checked")){
$("input[name=cartpro]").each(function () {
$(this).prop("checked", true);
});
}
else
{
$("input[name=cartpro]").each(function () {
if ($(this).prop("checked")) {
$(this).prop("checked", false);
} else {
$(this).prop("checked", true);
}
});
}
});
});
</script>
<script>
$(document).on("click", ".wy-dele", function() {
$.confirm("您确定要把此商品从购物车删除吗?", "确认删除?", function() {
$.toast("文件已经删除!");
}, function() {
//取消操作
});
});
</script>
</body>
</html>