<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>南方医务通</title>
    <link type="text/css" rel="stylesheet" href="css/icoline.min.css">
    <link type="text/css" rel="stylesheet" href="css/comm.min.css">
    <link type="text/css" rel="stylesheet" href="css/pages.min.css">
    <link type="text/css" rel="stylesheet" href="css/popup.min.css">
    <link type="text/css" rel="stylesheet" href="js/asset/asset.min.css">
    <meta name="viewport"
          content="width=device-width,initial-scale=1.0,maximum-scale=1.0,minimum-scale=1.0,user-scalable=no">
    <meta name="format-detection" content="telephone=no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <meta http-equiv="pragma" content="no-cache">

</head>

<body>

<header id="header" class="head">

    <div class="wrap">

        <i class="menu_back icon-arrow-left"></i>

        <div class="title">

            <span class="title_d"><p>我的就医日程</p></span>

            <div class="clear"></div>

        </div>

        <i class="menu_home icon-home"></i>

    </div>

</header>

<article id="container" class="container">

    <section id="content" class="content">

        <div class="selectToggle wrap">
            <div class="top-nav">
                <div class="arrow-box"><i class="icon-arrowdown"></i></div>
                <div class="marginall">
                    <div id="familySelected" class="text"></div>
                </div>
            </div>
            <ul id="familyList" class="hzApp-list">
                [%if(this.idCk){%]
                [%if(this.idCk==this.id){%]
                <li class="selected">
                    <a data={"id":"[%this.id%]","trueName":"[%this.trueName%]","status":"[%this.status%]"}>
                        <i class="icon-radioCheck"> [%this.trueName%] - [%this.ownership%]</i>
                    </a>
                </li>
                [%}else{%]
                <li>
                    <a data={"id":"[%this.id%]","trueName":"[%this.trueName%]","status":"[%this.status%]"}>
                        <i class="icon-radio"> [%this.trueName%] - [%this.ownership%]</i>
                    </a>
                </li>
                [%}%]
                [%}else{%]
                [%if(this.status=='0'){%]
                <li class="selected">
                    <a data={"id":"[%this.id%]","trueName":"[%this.trueName%]","status":"[%this.status%]"}>
                        <i class="icon-radioCheck"> [%this.trueName%] - [%this.ownership%]</i>
                    </a>
                </li>
                [%}else{%]
                <li>
                    <a data={"id":"[%this.id%]","trueName":"[%this.trueName%]","status":"[%this.status%]"}>
                        <i class="icon-radio"> [%this.trueName%] - [%this.ownership%]</i>
                    </a>
                </li>
                [%}%]
                [%}%]
            </ul>
        </div>

        <div id="list" class="hzApp-list-timeline">

            <!--<div class="search_wrap">

                <form>

                    <input type="text" name="search" class="search_input" placeholder="关键字查找">

                    <i class="icon-search"></i>

                </form>

            </div>-->

            <!-- todo  增加取消按钮 -->

            <div class="wrap">

                <ul style="display: none; margin-top: 5px;font-weight: 300;background: transparent;">

                    [%var urlArr = {re:"resultListById.html",pay:"card.html"};%]
                    [%var pos = '';%]
                    [%if(new Date().toDate(this.regDate) > new Date()){pos='pay';}else{pos='re';}%]
                    <li style="margin-left: 0;padding: 10px 10px 0 10px;background: #fff;margin-bottom: 10px;">
                        [%if(this.cancelFlag=="0"){%]
                        <a>
                            [%}else{%]
                            <a href=[%urlArr[pos]+'?customerFamilyId='+this.customerFamilyId+'&date='+this.regDate.substr(0,10)+'&clinicCode='+this.clinicCode+'&hospitalName='+this.hospitalName+'&hospitalId='+this.hospitalId%]>
                                [%}%]
                                <div class="up" style="left: 0;">
                                    <!--<i class="icon-time"></i>-->
                                    <!--<h6>[%this.regDate%] > 预约流水号:[%this.orderIdHIS%]</h6>-->
                                    <p style="border-bottom: 1px #ebebeb solid;color: #000;"><span>订单号：</span> [%this.orderIdHIS%]
                                        <span style="color: red;float: right;">
                                            [%if (this.cancelFlag == "0") {%]
                                            已取消预约
                                            [%}else{if (this.payFlag=="0") {%]
                                            已支付
                                            [%}else{%]
                                            未支付
                                            [%}}%]
                                        </span>
                                    </p>
                                </div>
                                <div>
                                    <!--缺少金额 性别字段-->
                                    <!--<div class="down_lef"><img src="[%this.doctorPhoto%]"></div>-->
                                    <div class="down_rig" style="padding-left: 0;border-bottom: 1px #ebebeb solid;margin: 5px 0;">
                                        <p style="color: #535353;"><span style="color: #000;">医  院：</span>[%this.hospitalName%]</p>
                                        <p style="color: #535353;"><span style="color: #000;">医  生：</span>[%this.doctorName%]</p>
                                        <!--<h6 style="color: #6ABCBC;">[%this.patientId%]</h6>-->
                                        <p style="color: #535353;"><span style="color: #000;">科  室：</span>[%this.deptName%]</p>
                                        <p style="color: #535353;"><span style="color: #000;">就诊时间：</span>[%this.regDate%]</p>
					<p style="color: #535353;"><span style="color: #000;">预约费用：</span>￥[%this.fee%]</p>
                                        <!--<h6 style="color: #ff8400">-->
                                            <!--状态：-->
                                            <!--[%if (this.cancelFlag == "0") {%]-->
                                            <!--已取消预约-->
                                            <!--[%}else{if (this.payFlag=="0") {%]-->
                                            <!--已支付-->
                                            <!--[%}else{%]-->
                                            <!--未支付-->
                                            <!--[%}}%]-->
                                        <!--</h6>-->
                                    </div>
                                    [%if (this.cancelFlag == "0") {%]

                                    [%}else{if (this.payFlag=="0") {%]

                                    [%}else{%]
                                    <p style="text-align: right;"><button id="cancelFlag" name="[% this.orderId %]" type="button" class="btn-ok" style="padding: 0 10px;margin-bottom: 10px;">取消预约</button></p>
                                    [%}}%]

                                    <!--<p style="color: red;padding-bottom: 10px;"><span style="color: #000;">挂号费：</span>9.00</p>-->
                                </div>
                                <div class="clear"></div>

                            </a>

                    </li>
                    <!--<li>-->
                        <!--[%if(this.cancelFlag=="0"){%]-->
                        <!--<a>-->
                        <!--[%}else{%]-->
                        <!--<a href=[%urlArr[pos]+'?customerFamilyId='+this.customerFamilyId+'&date='+this.regDate.substr(0,10)+'&clinicCode='+this.clinicCode+'&hospitalName='+this.hospitalName+'&hospitalId='+this.hospitalId%]>-->
                        <!--[%}%]-->
                            <!--<div class="up">-->
                                <!--<i class="icon-time"></i>-->
                                <!--<h6>[%this.regDate%] > 预约流水号:[%this.orderIdHIS%]</h6>-->
                            <!--</div>-->
                            <!--<div class="down">-->
                                <!--<div class="down_lef"><img src="[%this.doctorPhoto%]"></div>-->
                                <!--<div class="down_rig">-->
                                    <!--<h6>病人ID：[%this.patientId%]</h6>-->
                                    <!--<h6>医生：[%this.doctorName%] [%this.title%]</h6>-->
                                    <!--<h6>科室：[%this.deptName%]</h6>-->
                                    <!--<h6>医院：[%this.hospitalName%]</h6>-->
                                    <!--<h6 style="color: #ff8400">-->
                                        <!--状态：-->
                                        <!--[%if (this.cancelFlag == "0") {%]-->
                                        <!--已取消预约-->
                                        <!--[%}else{if (this.payFlag=="0") {%]-->
                                        <!--已支付-->
                                        <!--[%}else{%]-->
                                        <!--未支付-->
                                        <!--[%}}%]-->
                                    <!--</h6>-->
                                <!--</div>-->
                            <!--</div>-->
                            <!--<div class="clear"></div>-->

                        <!--</a>-->

                    <!--</li>-->

                </ul>

            </div>

        </div>

    </section>

</article>

<div id="nav_bottom">

</div>

<div class="hzApp-over-layer">

    <div class="asort">

        <div class="hd">

            <div class="wrap">

                <div class="fl">

                    <span>添加预约</span>

                    <div class="clear"></div>

                </div>

                <div class="fr"><i class="icon-del"></i></div>

                <div class="clear"></div>

            </div>

        </div>

        <div class="content">

            <div id="newwrap_t" class="newwrap show">

                <iframe id="newwrap" frameborder="0" width="100%" height="100%"></iframe>

            </div>

        </div>

    </div>


</div>

<div id="dialog" class="popup_layer">

    <div class="popup_msk"></div>

    <div class="popup_layer_cont dialog">

        <div class="loading_cont">

        </div>

    </div>

</div>

<script type="text/javascript" src="js/asset/zepto.min.js"></script>
<script type="text/javascript" src="js/asset/dateUtil.min.js"></script>
<script type="text/javascript" src="js/asset/base.min.js"></script>
<script type="text/javascript" src="js/doctorCalendar.min.js"></script>

</body>
</html>
