-
Notifications
You must be signed in to change notification settings - Fork 0
/
order.html
172 lines (155 loc) · 5.39 KB
/
order.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
<!doctype html>
<html class="no-js">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="description" content="">
<meta name="keywords" content="">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
<title>车生活</title>
<!-- Set render engine for 360 browser -->
<meta name="renderer" content="webkit">
<!-- No Baidu Siteapp-->
<meta http-equiv="Cache-Control" content="no-siteapp" />
<link rel="icon" type="image/png" href="assets/i/favicon.png">
<!-- Add to homescreen for Chrome on Android -->
<meta name="mobile-web-app-capable" content="yes">
<link rel="icon" sizes="192x192" href="assets/i/[email protected]">
<!-- Add to homescreen for Safari on iOS -->
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<meta name="apple-mobile-web-app-title" content="车生活" />
<link rel="apple-touch-icon-precomposed" href="assets/i/[email protected]">
<link rel="stylesheet" href="assets/css/amazeui.min.css">
<link rel="stylesheet" href="assets/css/app.css">
<style type="text/css">
.am-tab-panel img {
width: 100%
}
blockquote {
border-left: 0px;
font-size: 13px;
color: #F37B1D;
padding-top: 0px;
padding-bottom: 0px;
}
#sumprice {
color: #F37B1D;
font-weight: bold;
}
</style>
</head>
<body>
<header data-am-widget="header" class="am-header am-header-default">
<div class="am-header-left am-header-nav">
<a href="javascript:history.go(-1)" class="">
<i class="am-header-icon am-icon-chevron-left"></i>
</a>
</div>
<h1 class="am-header-title">
<a href="#title-link" class="">订单提交</a>
</h1>
<div class="am-header-right am-header-nav">
<a href="javascript:;" id="nav_click" class="">
<i class="am-menu-toggle-icon am-icon-th-large am-icon-sm"></i>
</a>
</div>
</header>
<div style="height: 50px;"></div>
<div class="am-panel am-panel-default">
<div class="am-panel-hd" style="line-height:60px;font-size:18px">人工普通洗车</div>
<div class="am-panel-bd">
<div class="am-g am-g-collapse">
<div class="am-u-sm-3">价格:</div>
<div class="am-u-sm-9 am-pagination-right">18元</div>
<div class="am-u-sm-12">
<hr data-am-widget="divider" style="" class="am-divider am-divider-default" />
</div>
<div class="am-u-sm-3">数量:</div>
<div class="am-u-sm-9 am-pagination-right">
<button class="am-btn am-btn-success am-radius am-order-form" disabled onclick="orderminus()" id="minusbutton">
<i class="am-icon-minus"></i>
</button>
<input type="tel" maxlength="2" onblur="orderchange()" style="width:50px;display:inline" class="am-form-field am-radius am-order-form" value="1" id="ordernum" />
<button class="am-btn am-btn-success am-radius am-order-form" onclick="orderadd()" id="addbutton">
<i class="am-icon-plus"></i>
</button>
</div>
<div class="am-u-sm-12">
<hr data-am-widget="divider" style="" class="am-divider am-divider-default" />
</div>
<div class="am-u-sm-3">总价:</div>
<div class="am-u-sm-9 am-pagination-right">
<span id="sumprice">18</span>元</div>
</div>
</div>
</div>
<div class="am-g ">
<div class="am-u-sm-6 consumer-tip">
☑不消费随时退款
</div>
<div class="am-u-sm-6 consumer-tip">
☑过期自动退款
</div>
</div>
<div class="am-g am-margin-top-lg">
<div class="am-u-sm-12">
<a href="confirmorder.html">
<button class="am-btn am-btn-success am-radius am-btn-block">
提交订单
</button>
</a>
</div>
</div>
<script type="text/x-handlebars-template" id="amz-tpl">
{{>navbar navbar}}
</script>
<script src="assets/js/jquery.min.js"></script>
<script src="assets/js/amazeui.min.js"></script>
<script src="assets/js/handlebars.min.js"></script>
<script src="assets/js/amazeui.widgets.helper.js"></script>
<script src="assets/js/app.js"></script>
<script type="text/javascript">
var ordernum = $('#ordernum'),
minusbutton = $('#minusbutton'),
addbutton = $('#addbutton'),
sumprice = $('#sumprice');
function orderadd() {
minusbutton.attr("disabled", false);
if (parseInt(ordernum.val()) < 99) {
ordernum.val(parseInt(ordernum.val()) + 1);
if (parseInt(ordernum.val()) > 98) {
addbutton.attr("disabled", true);
}
}
sumprice.text(parseInt(ordernum.val()) * 18);
}
function orderminus() {
addbutton.attr("disabled", false);
if (parseInt(ordernum.val()) > 1) {
ordernum.val(parseInt(ordernum.val()) - 1);
if (parseInt(ordernum.val()) < 2) {
minusbutton.attr("disabled", true);
}
}
sumprice.text(parseInt(ordernum.val()) * 18);
}
function orderchange() {
if (parseInt(ordernum.val()) <= 1 || isNaN(ordernum.val())) {
ordernum.val(1);
minusbutton.attr("disabled", true);
addbutton.attr("disabled", false);
}
if (parseInt(ordernum.val()) > 98) {
minusbutton.attr("disabled", false);
addbutton.attr("disabled", true);
}
if (parseInt(ordernum.val()) > 1 && parseInt(ordernum.val()) < 99) {
minusbutton.attr("disabled", false);
addbutton.attr("disabled", false);
}
sumprice.text(parseInt(ordernum.val()) * 18);
}
</script>
</body>
</html>