transferanswer.html 5.2 KB
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1,maximum-scale=1,user-scalable=no">
    <title>转诊待答</title>
    <script src="__TMPL__/public/assets/js/fontsize.js"></script>
    <link rel="stylesheet" href="__TMPL__/public/assets/css/init.css">
    <link rel="stylesheet" href="__TMPL__/public/assets/css/swiper-3.4.2.min.css">
    <link rel="stylesheet" href="http://at.alicdn.com/t/font_793738_tlxymah92x.css">
    <link rel="stylesheet" href="__TMPL__/public/assets/css/referralModule.css">
</head>
<body STYLE="background: #F5F6FA">
<div class="container">
    <div class="tab_box">
        <div class="tab_item tab_on">
            <text>待处理</text>
            <text class="point">{$count0|default=0}</text>
        </div>
        <div class="tab_item">
            <text>已处理</text>
            <text class="point">{$count1|default=0}</text>
        </div>
    </div>
    <div>
        <!--待回答-->
        <div class="state_box">
            <volist name="list0" id="vo">
                <div class="tab_content_box" data-url="{:url('transferDetail',array('id'=>$vo['id']))}">
                    <div class="tab_info title_info">
                        <text class="">提交时间:{$vo['addtime']|date='Y.m.d',###}</text>
                        <switch name="vo.status">
                            <case value="0"><text class="tab_state state">待审核</text></case>
                            <case value="1"><text class="tab_state">已通过</text></case>
                            <case value="2"><text class="tab_state state">已驳回</text></case>
                        </switch>
                    </div>
                    <div class="tab_content">
                        <div class="content_item">
                            <div class="tab_title">临床表现</div>
                            <div>
                                <eq name="vo.clinical.type" value="1">
                                    <text class="iconfont icon-luyin voice_icon voice_play"></text>
                                    <else/>
                                    {$vo.clinical.content}
                                </eq>

                            </div>
                        </div>
                        <div class="content_item">
                            <div class="tab_title">已做检查</div>
                            <div>
                                <eq name="vo.inspected.type" value="1">
                                    <text class="iconfont icon-luyin voice_icon voice_play"></text>
                                    <else/>
                                    {$vo.inspected.content}
                                </eq>
                            </div>
                        </div>
                    </div>
                </div>
            </volist>
        </div>
        <!--已回复-->
        <div class="state_box" hidden>
            <volist name="list1" id="vo">
                <div class="tab_content_box" data-url="{:url('transferDetail',array('id'=>$vo['id']))}">
                    <div class="tab_info title_info">
                        <text class="">提交时间:{$vo['addtime']|date='Y.m.d',###}</text>
                        <switch name="vo.status">
                            <case value="0"><text class="tab_state state">待审核</text></case>
                            <case value="1"><text class="tab_state">已通过</text></case>
                            <case value="2"><text class="tab_state state">已驳回</text></case>
                        </switch>
                    </div>
                    <div class="tab_content">
                        <div class="content_item">
                            <div class="tab_title">临床表现</div>
                            <div>
                                <eq name="vo.clinical.type" value="1">
                                    <text class="iconfont icon-luyin voice_icon voice_play"></text>
                                    <else/>
                                    {$vo.clinical.content}
                                </eq>
                            </div>
                        </div>
                        <div class="content_item">
                            <div class="tab_title">已做检查</div>
                            <div>
                                <eq name="vo.inspected.type" value="1">
                                    <text class="iconfont icon-luyin voice_icon voice_play"></text>
                                    <else/>
                                    {$vo.inspected.content}
                                </eq>
                            </div>
                        </div>
                    </div>
                </div>
            </volist>
        </div>
    </div>
</div>

<script src="__TMPL__/public/assets/js/jquery-2.1.0.js"></script>
<script>
    $('.tab_item').click(function () {
        var index = $(this).index()
        $(this).addClass('tab_on').siblings().removeClass('tab_on')
        $('.state_box').eq(index).show().siblings().hide()
    })
    $('.tab_content_box').click(function () {
        var url=$(this).data('url');
        window.location.href=url;
    })
</script>
</body>
</html>