combo.html
10.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
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
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1,minimum-scale=1,user-scalable=no">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" type="text/css" href="css/base.css" />
<link rel="stylesheet" type="text/css" href="css/style.css" />
<link href="css/common.css" rel="stylesheet" type="text/css" />
<title>医疗套餐</title>
<script src="js/base.js" type="text/javascript" charset="utf-8"></script>
<script type="text/javascript" src="js/jquery-1.9.1.js" ></script>
<script type="text/javascript" src="js/date.js" ></script>
<script type="text/javascript" src="js/iscroll.js" ></script>
<script type="text/javascript">
$(function(){
$('#beginTime').date();
$('#endTime').date({theme:"datetime"});
});
$(function(){
var position=$("#yuyue").offset();
$("#yuyue").click(function(){
$("#NG").toggleClass("open");
});
$("#close").click(function(){
$("#NG").removeClass("open");
})
$("#close9").click(function(){
$("#NG").removeClass("open");
})
})
$(function(){
var position=$("#ruzhu").offset();
$("#ruzhu").click(function(){
$("#RZ").toggleClass("open");
});
$("#close").click(function(){
$("#RZ").removeClass("open");
})
$("#close10").click(function(){
$("#RZ").removeClass("open");
})
$("#closerz").click(function(){
$("#RZ").removeClass("open");
})
})
</script>
<script>
$(function(){
$(".add").click(function(){
var t = $(this).parent().find('input[class*=text_box]');
t.val(parseInt(t.val())+1);
setTotal();
})
$("input.servput").click(function(){
setTotal();
})
$("#you").click(function(){
setTotal1();
})
$(".min").click(function(){
var t = $(this).parent().find("input[class*=text_box]");
t.val(parseInt(t.val())-1);
if(parseInt(t.val())<0){
t.val(0);
}
setTotal()
})
function setTotal(){
var sum = 0;
$("#tab").each(function(){
var num = parseInt($(this).find("input[class*=text_box]").val());
var price = parseFloat($(this).find("span[class*=price]").text());
sum += num*price;
})
var sumrz = 0;
$("#tabrz").each(function(){
var num = parseInt($(this).find("input[class*=text_box]").val());
var price = parseFloat($(this).find("span[class*=price]").text());
sumrz += num*price;
})
sum=sum+sumrz;
$("input.servput").each(function(){
if($(this).is(':checked')){
sum+=parseInt($(this).val());
}
})
$("#total").html(sum.toFixed(2));
}
function setTotal1(){
var sum = 0;
$("#tab").each(function(){
var num = parseInt($(this).find("input[class*=text_box]").val());
var price = parseFloat($(this).find("span[class*=price]").text());
sum += num*price;
})
$("#total").html(sum.toFixed(2));
}
setTotal();
$(".addrz").click(function(){
var t = $(this).parent().find('input[class*=text_box]');
t.val(parseInt(t.val())+1);
setTotal();
})
$(".minrz").click(function(){
var t = $(this).parent().find("input[class*=text_box]");
t.val(parseInt(t.val())-1);
if(parseInt(t.val())<0){
t.val(0);
}
setTotal()
})
})
</script>
<style type="text/css">
.body{
position: relative;
height: 100%;s
}
.sersave{
position: absolute;
bottom: 0;
}
</style>
</head>
<body>
<div class="seheader center">
<div class="left seback"><a href="#" onClick="javascript:history.back(-1);"><img src="images/care_03.jpg"/></a></div>
<div class="headertext">医疗套餐</div>
</div>
<!--compart1 -->
<div class="compart1 center">
<div class="con4li">
<a href="#"><img class="left" src="images/part4_li_12.jpg"/></a>
<div class="corigt left">
<a href="#"><span>女士高发肿瘤风险评估E(2项)</span><p>评估卵巢癌、子宫内膜癌风险</p></a>
<p class="minute">
<span><img src="images/min_09.jpg"/>可测1人</span><span><img src="images/min_11.jpg"/>10-15个工作日</span>
</p>
<p class="price">¥8686</p>
</div>
</div>
</div>
<!--compart1 end-->
<!--subpart2 -->
<div id="datePlugin"></div>
<div class="paypart2 center" style="margin-bottom:0.1rem;">
<div class="paybox">
<ul class="subul">
<li>
<span><img src="images/yuyue.png"/>预约套餐</span>
<span class="right"><input type="text" id="yuyue" class="taocan" placeholder="选择套餐" />></span>
</li>
<li>
<span><img src="images/canguan.png"/>预约参观</span>
<span class="right"><input type="text" id="endTime" placeholder="选择参观时间" />></span>
</li>
<li>
<span><img src="images/ruzhu.png"/>选择入住</span>
<span class="right"><input type="text" id="ruzhu" placeholder="选择入住等级" />></span>
</li>
</ul>
</div>
</div>
<!--subpart2 -->
<div class="paypart2 center">
<div class="paybox">
<ul class="subul">
<li>联系人信息</li>
<li>
<span><img src="images/comboli1.png"/>姓名</span>
<span class="right"><input type="text" placeholder="请输入姓名" /></span>
</li>
<!--<li>
<span><img src="images/comboli2.png"/>身份证号</span>
<span class="right"><input type="text" placeholder="请输入身份证号码" /></span>
</li>-->
<li>
<span><img src="images/comboli3.png"/>手机号</span>
<span class="right"><input type="text" placeholder="请输入联系电话" /></span>
</li>
</ul>
</div>
</div>
<!--subpart3-->
<div class="laba paybox textleft"><img src="images/subli_18.jpg"/>请正确选择和填写信息,以便后续提供更好品质服务。</div>
<!--subpart3 end-->
<!--trfooter-->
<div id="trfooter">
<div id="trlprice" class="left"><span class="trmoney" >¥<b id="total">8555</b></span></div>
<div id="trsub" class="right"><a href="#">去支付</a></div>
</div>
<!--trfooter end-->
<div id="div2">
<div class="mPicker1 close" id="NG">
<div class="mPicker-mask1" id="ccc"></div>
<div class="mPicker-main1">
<div class="selecttaocan center">
<div class="selecttaocant">选择套餐<span class="right" id="close9"><img src="images/delete_weici2_icon.png"/></span></div>
<div style="width:6.8rem; display:inline-block;">
<div class="textleft" style="margin-top:0.2rem;">服务价格<span class="youhui">优惠¥60.0</span><span class="inyuanjia right">原价¥845.0</span><span class="injiage right">¥785.0</span></div>
<div class="inser">平台护士只提供技术服务</div>
<div class="textleft fuwus" style="margin-top:0.2rem;"><button type="button" class="inbu">普通服务</button><button type="button" class="inbu">高级服务(陪护120分钟)</button></div>
<div class="textleft left" style="display:inline-block; margin:0.2rem 0rem; width:6.8rem;">购买数量<span class="inser">(限购30次)</span>
<div class="right" id="tab">
<div style="display:none;"><span>单价:</span><span class="price">845.0</span></div>
<input class="min" name="" type="button" value="-" />
<input class="text_box" name="" type="text" value="1" />
<input class="add" name="" type="button" value="+" />
</div>
</div>
</div>
</div>
<div class="sersave" id="close"> 确定</div>
</div>
</div>
</div>
<div id="div2">
<div class="mPicker1 close" id="RZ">
<div class="mPicker-mask1" id="ccc"></div>
<div class="mPicker-main1">
<div class="selecttaocan center">
<div class="selecttaocant">入住选择<span class="right" id="close10"><img src="images/delete_weici2_icon.png"/></span></div>
<div style="width:6.8rem; display:inline-block;">
<div class="textleft" style="margin-top:0.2rem;">服务价格<span class="youhui">优惠¥60.0</span><span class="inyuanjia right">原价¥858.0</span><span class="injiage right">¥1008.0</span></div>
<div class="inser">此价格包含护理、房间、用餐费用</div>
<div class="textleft fuwus" style="margin-top:0.2rem;">
<div class="comsuv">
<button type="button" class="inbu">自理</button>
<button type="button" class="inbu">半护理</button>
<button type="button" class="inbu">全护理</button>
<button type="button" class="inbu">特护</button>
</div>
<div class="comsuv1">
<button type="button" class="inbu">单人间</button>
<button type="button" class="inbu">双人间</button>
<button type="button" class="inbu">三人间</button>
<button type="button" class="inbu">多人间</button>
</div>
</div>
<div class="textleft left" style="display:inline-block; margin:0.2rem 0rem; width:6.8rem;">入住周期<span class="inser">(3个月起)</span>
<div class="right" id="tabrz">
<div style="display:none;"><span>单价:</span><span class="price">845.0</span></div>
<input class="minrz" name="" type="button" value="-" />
<input class="text_box" name="" min="3" type="text" value="3" />
<input class="addrz" name="" type="button" value="+" />
</div>
</div>
</div>
</div>
<div class="sersave" id="closerz"> 确定</div>
</div>
</div>
</div>