<!DOCTYPE html>
<html>
    <head>
        <meta charset="UTF-8">
        <title>总体分析</title>
        <meta name="author" content="yihu.com" />
        <meta name="format-detection" content="telephone=no" />
        <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0" />
        <meta name="apple-mobile-web-app-capable" content="yes" />
        <meta name="apple-mobile-web-app-status-bar-style" content="black" />
        <link rel="stylesheet" type="text/css" href="../../fonts/font-awesome/css/font-awesome.min.css"/>
        <link rel="stylesheet" type="text/css" href="../../css/style.min.css"/>
        <link rel="stylesheet" type="text/css" href="../../css/cross.css"/>
        <link rel="stylesheet" type="text/css" href="common.css"/>
    </head>
    <body>
        <div class="h45">
            <div class="demo-comtop">
                <a class="mui-action-back"></a>
                <h1>总体分析
                    <img src="../images/yiwen_icon.png" class="info-icon" width="20">
                </h1>
                <a class="header-link">
                    <img src="../images/hanbaobao_icon.png" width="25" class="mt10">
                </a>
            </div>
        </div>
        <div class="mui-scroll-wrapper" style="top: 46px">
            <div class="mui-scroll">
                <div class="ui-grid ui-grid-middle information">
                    <div class="ui-col-1 plr10 ptb5" id="infoText"></div>
                    <div class="ui-col-0" id="closeBtn"><img src="../images/guanbi_01_btn.png" width="20"></div>
                </div>
                
                <!-- 位置信息 start -->
                <div class="ui-grid ui-grid-middle location-div">
                    <div class="ui-col-0 text-box c-f13 c-nowrap" style="max-width:60%;">
                        <img src="../images/dizhi_icon.png" width="12">
                        <span id="areaTitle" class="title c-666 c-f13 ml5"></span>
                    </div>
                    <div class="ui-col-0">
                        <span class="jiezhi-time c-f13"></span>
                    </div>
                    <div class="ui-col-1 c-t-right"><span class="choose-label"></span></div>
                </div>
                <!-- 位置信息 end -->
                <div id='textTj' style="" class="clearfix ">
                    <ul class="l-banner">
                        <li class="active" data-index='3'>
                            <div id="index_3" class="c-f18">0</div>
                            <div class="mt5 c-f14 l-name">咨询量</div>
                        </li>
                        <li data-index='4'>
                            <div id="index_4" class="c-f18">0</div>
                            <div class="mt5 c-f14 l-name">随访量</div>
                        </li>
                        <li data-index='5'>
                            <div id="index_5" class="c-f18">0</div>
                            <div class="mt5 c-f14 l-name">健康教育</div>
                        </li>
                    </ul>
                    <ul class="l-banner">
                        <li data-index='27'>
                            <div id="index_27" class="c-f18">0</div>
                            <div class="mt5 c-f14 l-name">代预约量</div>
                        </li>
                        <li data-index='21'>
                            <div id="index_21" class="c-f18">0</div>
                            <div class="mt5 c-f14 l-name">绑定微信</div>
                        </li>
                        <li data-index='20'>
                            <div id="index_20" class="c-f18">0</div>
                            <div class="mt5 c-f14 l-name">绑定设备</div>
                        </li>
                    </ul>
                </div>
                <div class="mb10 c-border-tb bgc-fff c-hide" id="pieChartsPanel">
                    <div class="plr10 ptb10 c-border-b">
                        <img src="../images/tuisongqingkuang_icon.png" width="22">
                        <span class="c-f16 c-333 ml5">推送情况</span>
                    </div>
                    <div class="ui-grid ui-grid-middle ptb10">
                        <div class="ui-col-0 c-t-center c-ffc800 plr10 c-w-33">
                            <div class="c-f20 wz-num">0</div>
                            <!--<div class="c-f14">39%</div>-->
                            <div class="c-f12">健康文章推送量</div>
                        </div>
                        <div class="ui-col-1 c-position-r c-t-center">
                            <div class="position-center-text c-f14">推送情况</div>
                            <div id="pieChart" style="width: 100%; height:100px;"></div>
                        </div>
                        <div class="ui-col-0 c-t-center c-17b3ec plr10 c-w-33">
                            <div class="c-f20 zd-num">0</div>
                            <!--<div class="c-f14">61%</div>-->
                            <div class="c-f12">健康指导推送量</div>
                        </div>
                    </div>
                </div>
                <div class="mtb10 bgc-fff c-border-tb pb10">
                    <div class="ui-grid ui-grid-middle plr10 c-border-b">
                        <div class="ui-col-0">
                            <img src="../images/jiaofeiqushi_icon.png" width="22">
                            <span class="c-323232 c-f16 ml5"><span id="tagName">咨询量</span>新增趋势</span>
                        </div>
                        <div class="ui-col-1 c-t-right ptb5">
                            <span class="date-tag active" data-type="1">日</span><!--
                            --><span class="date-tag" data-type="2">周</span><!--
                            --><span class="date-tag" data-type="3">月</span>
                        </div>
                    </div>
                    <div class="clearfix mt5 plr10">
                        <div class="fl c-f12 c-909090"><span id="startValue"></span> ~ <span id="endValue"></span>数据</div>
                        <div class="fr c-f12 c-909090">单位：人</div>
                    </div>
                    <div class="line-chart" id="lineChart" style="height: 200px; width: 100%;"></div>
                </div>
                <!--微信绑定再显示统计数据-->
                <div class="c-border-t bgc-fff c-hide" id="pieChartsPanel2">
                    <div class="plr10 ptb10 c-border-b">
                        <span class="blue-column mr5"></span>
                        <span class="c-f14 c-333 ml5 title"></span>
                    </div>
                    <div class="ui-grid ui-grid-middle ptb10">
                        <div class="ui-col-0 c-t-center c-17b3ec plr10 c-w-33">
                            <div class="c-f20 jf-num"></div>
                            <div class="c-f12">已缴费人数</div>
                        </div>
                        <div class="ui-col-1 c-position-r">
                            <div class="blur-cycle-box">
                                <div class="c-f16 c-fff num mt10"></div>
                                <div class="c-f12 c-fff mt5">绑定率</div>
                            </div>
                            <div id="pieChart2" style="width: 100%; height:110px;"></div>
                        </div>
                        <div class="ui-col-0 c-t-center c-909090 plr10 c-w-33">
                            <div class="c-f20 wjf-num"></div>
                            <div class="c-f12">未缴费人数</div>
                        </div>
                    </div>
                </div>
                <div class="area-panel">
                    <div class="area-tab-panel">
                        <div class="area-tab active" data-val="4"><span>各区</span><i class="border-line-right"></i></div>
                        <div class="area-tab" data-val="3"><span>社区</span><i class="border-line-right"></i></div>
                        <div class="area-tab c-hide" data-val="2"><span>团队</span></div>
                    </div>
                    <table class="bottom-list-table mb20" id="listTable">
                    </table>
                </div>
            </div>
        </div>
        <!-- 团队信息模块 -->
        <div class="modal-overlay"></div>
        <div class="modal-content">
            <div class="div-header-title">
                <div class="div-close"></div>
                <div class="div-overlay-img"></div>
                <div class="div-overlay-title">团队详情</div>
            </div>
            <div class="div-overlay-content">
                <div class="pt15" id="teamInfoBox">
                    
                </div>
            </div>
        </div>
        
        <script type="text/html" id="data-list">
            <thead>
                <tr>
                    <th>排名</th>
                    {{if index == '3'}}
                    <th>咨询量</th>
                    <th>未回复</th>
                    {{/if}}
                    {{if index == '4'}}
                    <th>随访量</th>
                    {{/if}}
                    {{if index == '5'}}
                    <th>总推送量</th>
                    <th>阅读量</th>
                    <th>阅读率</th>
                    {{/if}}
                    {{if index == '27'}}
                    <th>代预约量</th>
                    {{/if}}
                    {{if index == '21'}}
                    <th>绑定率</th>
                    <th>已缴费</th>
                    <th>未缴费</th>
                    {{/if}}
                    {{if index == '20'}}
                    <th>绑定设备</th>
                    {{/if}}
                    {{if level>2 && lowLevel != 1}}
                    <th width="20"></th>
                    {{/if}}
                </tr>
            </thead>
            <tbody>
                {{each list as v i}}
                <tr class="data-row" data-name="{{v.name}}" data-code="{{v.code}}" data-type="">
                    <td class="area-name">
                        {{if v.top == 1}}
                        <div class="ranking ranking1">{{v.top}}</div>
                        {{else if v.top == 2}}
                        <div class="ranking ranking2">{{v.top}}</div>
                        {{else if v.top == 3}}
                        <div class="ranking ranking3">{{v.top}}</div>
                        {{else}}
                        <div class="ranking">{{v.top}}</div>
                        {{/if}}
                        <div class="ui-col-1 c-nowrap-multi">{{v.name}}</div>
                    </td>
                    {{if index == '21'}}
                        <td>{{v.bindRate || 0}}%</td>
                        <td>{{v.weChatAmount1}}</td>
                        <td>{{v.weChatAmount0}}</td>
                    {{else}}
                        <td>{{v.amount}}</td>
                        {{if index == '3'}}
                        <td>{{v.noAmount}}</td>
                        {{/if}}
                        {{if index == '5'}}
                        <td>{{v.readNum}}</td>
                        <td>{{v.readRate}}</td>
                        {{/if}}
                    {{/if}}
                    {{if level>2 && lowLevel != 1}}
                    <td><i class="fa fa-angle-right"></i></td>
                    {{/if}}
                </tr>
                {{/each}}
            </tbody>
        </script>
        
        <!-- 团队信息模板 -->
        <script type="text/html" id="teamInfo">
            <div class="plr15 pb20">
                <span class="c-f14 c-bold c-333">团队名称：</span>
                <span class="c-f14 c-333">{{team.name}}</span>
            </div>
            <div class="plr15 pb20">
                <span class="c-f14 c-bold c-333">所在社区：</span>
                <span class="c-f14 c-333">{{team.hospitalName}}</span>
            </div>
            <div class="plr15 pb20">
                <span class="c-f14 c-bold c-333">团队长：</span>
                <span class="c-f14 c-333">{{team.leaderName}}</span>
            </div>
            <div class="plr15 pb20">
                <span class="c-f14 c-bold c-333">团队成员(<span class="span-team-count">{{memberLength}}</span>人)：</span>
                <p class="c-f14 c-333 mt10">
                    {{each members as member index}}
                    {{if index == 0}}
                        {{member.name}}
                    {{else if index < 20}}
                        、{{member.name}}
                    {{else if index == 20}}
                    、{{member.name}}等
                    {{/if}}
                    {{/each}}
                </p>
            </div>
        </script>
        
        <script src="../../../js/jquery/2.1.3/jquery.js" type="text/javascript" charset="utf-8"></script>
        <script src="../../../js/mui.min.js" type="text/javascript" charset="utf-8"></script>
        <script src="../../../js/common_http.js" type="text/javascript" charset="utf-8"></script>
        <script src="../../../js/es6-promise.js" type="text/javascript" charset="utf-8"></script>
        <script src="../../../js/underscore.js" type="text/javascript" charset="utf-8"></script>
        <script src="../../../js/app.js" type="text/javascript" charset="utf-8"></script>
        <script src="../../../js/template.js" type="text/javascript" charset="utf-8"></script>
        <!--<script src="../../../widget/echarts/3.0/js/echarts.min.js" type="text/javascript" charset="utf-8"></script>-->
        <script src="../js/echarts.common.min.js" type="text/javascript" charset="utf-8"></script>
        <script src="../js/comprehensive-analysis.js" type="text/javascript" charset="utf-8"></script>
    </body>
</html>
