combo.html 10.2 KB
<!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" />
<script src="js/base.js" type="text/javascript" charset="utf-8"></script>
<title>医疗套餐</title> 
<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> 

</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" style="position: absolute; bottom: 0;">
	<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>