tiephone.html
5.0 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
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
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title></title>
<meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0" />
<link rel="stylesheet" type="text/css" href="../assets/css/weui.min.css" />
<link rel="stylesheet" type="text/css" href="../assets/css/swiper-3.4.2.min.css" />
<link rel="stylesheet" type="text/css" href="http://at.alicdn.com/t/font_773803_6y9erxzbkn2.css" />
<script type="text/javascript" src="../assets/font/iconfont.js"></script>
<script type="text/javascript" src="../js/base.js"></script>
<link rel="stylesheet" href="../css/tiephone.css" />
<style>
.weui-picker__group {
font-size: 0.3rem;
}
</style>
</head>
<body>
<div class="taocan">
套餐信息
</div>
<div class="information">
<ul>
<li class="mingcheng">
<span>
套餐名称
</span >
<span class="liang">
8/13~8/15 两天攀岩活动
</span>
</li>
<li class="mingcheng ming">
<div class='li_span'>
<span>
出行时间
</span >
<span class="liang lian" >
2018/07/03 至 2018/07/06
</span>
</div>
<span>
<i class="iconfont icon-common-jinru-copy"></i>
</span>
</li>
<li class="mingcheng shuliang" id="shuliang">
<span>
购买数量
</span>
<span class="suan">
<span class="reduce" id="del">-</span>
<input type="text" value="1" class="val" id="quantity"/>
<span class="add" id="add">+</span>
</span>
</li>
<li class="mingcheng chu">
<span class="chuxing">
出行信息
</span>
</li>
</ul>
</div>
<div class="chengke">
<span>乘客信息</span>
<div class="xuan">
<span class="xuanze">
请选则出行人
</span>
<i class="iconfont icon-common-jinru-copy"></i>
</div>
</div>
<div class="qita">
其他信息
</div>
<ul class="youhui">
<li class="you">
<span>
优惠券
</span >
<div class="wu">
<span class="liang lian" >
¥5代金券
</span>
<span>
<i class="iconfont icon-common-jinru-copy"></i>
</span>
</div>
</li>
<li class="shang">
<span>
商家备注
</span>
<span class="liang lian1">
点击可给商家留言
</span>
</li>
<li class="dan jus">
<span>
单房差(一人一房)
</span >
<div class='dan_box'>
<span class="liang lian2" >
请选择
</span>
<span>
<i class="iconfont icon-common-jinru-copy"></i>
</span>
</div>
</li>
<li class="dan me">
<span class="danxuan"></span>
<span class="wo">我已同意购买协议和合同协议</span>
</li>
</ul>
<div class="zhezhao">
</div>
<footer>
<span>定金:¥600</span>
<span>总价:¥1185</span>
<input type="button" value="提交订单" />
</footer>
<div class='mold'>
<div class='mold_main'>
<span class="fon30">
是否允许绑定手机号码?
</span>
<span >
<span class="fon30">否</span>
<span class="fon30 green">允许</span>
</span>
<span class="fon26">
注:绑定后可获得¥10代金券一张
</span>
</div>
</div>
<script type="text/javascript" src="../assets/js/jquery-2.1.0.js"></script>
<script type="text/javascript" src="../assets/js/swiper-3.4.2.min.js"></script>
<script type="text/javascript" src="../assets/js/weui.js"></script>
<script type="text/javascript" src="../index.js"></script>
<script>
var mySwiper = new Swiper('.swiper-container', {
pagination: '.swiper-pagination',
autoplay: 1500, //可选选项,自动滑动
loop: true
})
$('.chengke').click(function() {
weui.picker([{
label: '1',
value: 1
}, {
label: '2',
value: 2
}, {
value: 3
}, {
label: '4',
value: 4
}, {
label: '5',
value: 5
}], {
onChange: function(result) {},
onConfirm: function(result) {
// var year=$('#year');
// year.val(result[0].label)
$('.xuanze').html(result[0].label)
}
});
})
//点击增加
$("#add").click(function(){
numAdd();
});
$("#del").click(function(){
numDec();
});
})
/*商品数量+1*/
function numAdd(){
var num_add = parseInt($("#quantity").val())+1;
// if($("#quantity").val()==""){
// num_add = 1;
// }
$("#quantity").val(num_add);
// var total = parseFloat($("#price").val())*parseInt($("#quantity").val());
// $("#totalPrice").html(total.toFixed(2));
}
/*商品数量-1*/
function numDec(){
var num_dec = parseInt($("#quantity").val())-1;
// if(num_dec<1){
// //购买数量必须大于或等于1
// alert("not lt 1");
// }
// else{
$("#quantity").val(num_dec);
// var total = parseFloat($("#price").val())*parseInt($("#quantity").val());
// $("#totalPrice").html(total.toFixed(2));
// }
}
</script>
</body>
</html>