123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376 |
- <!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" href="../../../common/cross/css/cross.css" type="text/css" />
- <link rel="stylesheet" href="../../../common/cross/css/cross.ui.css" type="text/css" />
- <link rel="stylesheet" type="text/css" href="../../../common/css/jy-style.css">
- <link rel="stylesheet" type="text/css" href="../iconfont/iconfont.css">
- <link rel="stylesheet" href="../css/td-style.css" />
- <style type="text/css">
- .jkzx-td{
- position: absolute;
- top: 0;
- right: 0;
- padding: 0 14px;
- color: #fff;
- }
- .face-title {
- width: 28px;
- height: 28px;
- position: absolute;
- margin-top: 40px;
- margin-left: -29px;
- }
-
- .face-title-name {
- margin-left: -22px;
- margin-top: 43px;
- color: white;
- font-size: 14px;
- }
- .lin-down-arrow{
- position: relative;
- top: -2px;
- left: 5px;
- height: 10px;
- width: 10px;
- border-bottom: 3px solid #fff;
- border-right: 3px solid #fff;
- display: inline-block;
- transform:rotate(45deg);
- -ms-transform:rotate(45deg); /* IE 9 */
- -moz-transform:rotate(45deg); /* Firefox */
- -webkit-transform:rotate(45deg); /* Safari 和 Chrome */
- -o-transform:rotate(45deg); /* Opera */
- zoom: 1;
- }
- .lin-sel-group{
- position: fixed;
- top: 45px;
- background: #fff;
- width: 100%;
- z-index: 999;
- display: none;
- max-height: 260px;
- overflow: scroll;
- overflow-x: hidden;
- overflow-y: scroll;
- }
-
- .lin-sel-group li{
- text-align: center;
- color: #17b3ec;
- height: 40px;
- line-height: 40px;
- font-size: 16px;
- border-bottom: 1px solid #f2f4f6;
- }
-
- .lin-sel-group img{
- width: 20px;
- margin: 10px;
- display: none;
- }
-
- .lin-sel-group li.checked img{
- display: inline;
- }
- .lin-mask{
- position: absolute;
- top: 45px;
- height: 100%;
- width: 100%;
- /*background: #000;*/
- height: 100%;
- z-index: 998;
- display: none;
- background-color: rgba(0,0,0,0.7);
- }
- .lin-search{
- padding: 8px 10px;
- background-color: #fff;
- }
-
- .lin-search img{
- width: 29px;
- }
-
- .lin-search div{
- text-align: center;
- border-radius: 5px;
- line-height: 29px;
- background-color: #f2f4f6;
- color: #999;
- }
- .load-more { height: 30px; line-height: 30px; background-color: #FFF; text-align: center;}
- .l-sanshi-ico { position: absolute; right: 30px; width: 150px; }
- .l-sanshi-ico div.ring-blue { margin-top: 5px; }
- .c-main { position: relative; }
- #top_msg_bar {display: none; position: absolute; top: 0; left: 0; width: 100%; padding: 10px; font-size: 14px; color: #FFF; background-color: rgba(0,0,0,0.5); box-sizing: border-box;}
- #top_msg_bar .close-btn { position: absolute; right: 10px; width: 18px; height: 18px; }
- #handle_link { color: #17BCEC; text-decoration: underline; }
- #unassigned_num { color: #17BCEC; }
-
- #group_label_list { padding: 15px 0px ; background-color: #FFF;}
- .group-item img { display: block; width: 30px; height: 30px; margin: 0 auto; }
- .group-item .item-label { margin-top: 5px; color: #323232; font-size: 14px; font-weight: bold; width: 100%; text-align: center; }
- .my-work-secflo .patient-face { margin: 11px 10px 10px 0px; }
-
- .n-list > .n-list-link:last-child {
- border-bottom: 1px solid #f1f1f1;
- }
- .n-list > li { border-top: 0; }
- .n-list > li .n-list-info { border-top: 1px solid #f1f1f1; }
-
- .div-wfp, .div-qbjm{
- background: #fff;
-
- padding: 10px 15px;
- font-size: 16px;
- line-height: 30px;
- border-bottom: 1px solid #E1E1E1;
- border-top: 1px solid #E1E1E1;
- }
-
- .mid-bar{
- margin: 13px 0px;
- display: none;
- }
-
- .div-qbjm{
- border-top: 0;
- }
-
- .div-wfp > img, .div-qbjm > img{
- width: 30px;
- height: 30px;
- border-radius: 50%;
- margin-right: 10px;
- }
-
- .div-wfp label, .div-qbjm label{
- color: #909090;
- margin-left: 10px;
- font-size: 14px;
- }
- .weixin-icon { width: 30px; height: 30px; margin-top: 10px; margin-right: 3px; }
- .mui-scroll-wrapper { position: fixed; height: -moz-calc(100%); height: -webkit-calc(100% ); height: calc(100%); }
- </style>
- </head>
- <body>
- <!--下拉选择-->
- <div class="lin-mask"></div>
- <ul class="lin-sel-group">
- <li class="checked" data-name="健康咨询">
- <img src="../images/checked_blue.png"><label>健康咨询</label>
- </li>
- <!--<li class="" data-name="公共咨询">
- <img src="../images/checked_blue.png"><label>公共咨询</label>
- </li>
- <li class="" data-name="续方咨询" id="xfzx" style="display: none;">
- <img src="../images/checked_blue.png"><label>续方咨询</label>
- </li>-->
- </ul>
- <!--下拉选择-->
-
- <div class="main">
- <div class="h45">
- <div class="demo-comtop">
- <a class="mui-action-back" href="../../home/html/xiaoxi.html"></a>
- <h1><span class="jkzx-title">健康咨询</span><!--<label class="lin-down-arrow"></label>--></h1>
- <!--<a data-href="../../zdzx/html/tuanduitongji.html" class="jkzx-td" style="display: none;font-size: 16px;">团队统计</a>-->
- </div>
- </div>
- <ul class="td-tit">
- <!--总的回复情况-->
- </ul>
- <div style="position: fixed;top: 145px;left: 0;right: 0;bottom:0" id='con1'></div>
- <div style="display:none;position: fixed;top: 145px;left: 0;right: 0;bottom:0" id='con2'></div>
- </div>
- </body>
- <script type="text/javascript" src="../../../js/jquery/2.1.3/jquery.js"></script>
- <script src="../../../js/mui.min.js"></script>
- <script src="../../js/common.js"></script>
- <script src="../../../js/template.js" type="text/javascript" charset="utf-8"></script>
- <script src="../../../js/common_http.js" type="text/javascript" charset="utf-8"></script>
- <script type="text/html" id="totalReply">
- <li><div class="wait-num">{{data.totalUnReply}}</div><div>未回复</span></li>
- <li><div class="ok-num">{{data.totalReply}}</div><div>已回复</span></li>
- <li><div class="con-num">{{data.totalConsult}}</div><div>咨询量</span></li>
- </script>
- <script type="text/javascript">
- var self;
- var zdwv, ggwv,xfwv;
- var $tdTit = $('.td-tit'),
- $linMask = $('.lin-mask'),
- $linSelGroup = $('.lin-sel-group'),
- $linSelGroupChilds = $linSelGroup.children(),
- $jkzxTitle = $('.jkzx-title');
- var docInfo,
- teamInfo;
- mui.plusReady(function() {
- docInfo = JSON.parse(plus.storage.getItem("docInfo"));
- teamInfo = JSON.parse(plus.storage.getItem("teamInfo"));
-
- getTotalData()
-
-
- var wvStyle = {
- top: "145px",
- bottom: "0px"
- };
- self = plus.webview.currentWebview();
- zdwv = plus.webview.create("../../zdzx/html/zhidingzixun.html",
- "zhidingzixun", wvStyle);
- // ggwv = plus.webview.create("../../ggzx/html/gonggongzixun.html",
- // "gonggongzixun", wvStyle);
- // xfwv = plus.webview.create("../../prescription/html/xufangzixun.html",
- // "xufangzixun", wvStyle);
- // ggwv.hide();
- // xfwv.hide();
- // self.append(xfwv);
- // self.append(ggwv);
- self.append(zdwv);
- plus.nativeUI.closeWaiting();
-
- backxiaoxi();
- if(docInfo.isLeader == 1){
- $('.jkzx-td').show();
- }
- // 判断是否是该团队的团队长
- var nowTeamCode;
- if(docInfo.isLeader == 1){
- $.map(teamInfo.data,function(item,index){
- if(item.leaderCode == docInfo.code){
- nowTeamCode = item.id;
- }
- })
- if(docInfo.adminTeamCode==nowTeamCode){
- $("#xfzx").show();
- }
- }
- })
-
- //获取团队回复情况总量
- function getTotalData () {
- // var lastTeamId = docInfo.adminTeamCode;
- // sendGet('im_new/consult/getTeamData',{adminTeamCode:lastTeamId},null,getDocInfoListSucc);
- sendGet('im_new/consult/getDoctorData',{},null,getDocInfoListSucc);
- }
- function getDocInfoListSucc (data) {
- if (data.status === 200) {
- // if (data.data.doctors.length > 0) {
- var totalReplyHtml = template('totalReply', {data: data.data});
- $tdTit.html(totalReplyHtml);
- // }
- } else {
- mui.toast(data.msg);
- }
- }
-
- window.addEventListener("reload", function(){
- getTotalData();
- })
-
- // $('.jkzx-td').on( 'click', function () {
- // mui.openWindow({
- // id: 'jkzx-td',
- // url: $(this).attr('data-href'),
- // waiting:{
- // autoShow:false
- // },
- // extras:{}
- // })
- // });
-
- // mui("#menulab").on("tap", "li", function() {
- // $("#menulab li").removeClass("hit");
- // $(this).addClass("hit");
- // var dval = this.getAttribute("data-val");
- //
- // if(dval == "1") {
- // mui.fire(zdwv, 'refresh');
- // plus.webview.show(zdwv);
- // plus.webview.hide(ggwv);
- // } else if(dval == "0") {
- // mui.fire(ggwv, "refresh");
- // plus.webview.show(ggwv);
- // plus.webview.hide(zdwv);
- // }
- //
- // });
- //显示下拉框
- // $('.demo-comtop h1').on('click', function () {
- // ggwv.hide();
- // zdwv.hide();
- // xfwv.hide();
- // $linMask.show();
- // $linSelGroup.show();
- // });
- //选择选下拉选项
- // $linSelGroupChilds.on( 'click', function () {
- // var index = $(this).index(),
- // dataName = $linSelGroupChilds.eq(index).attr('data-name');
- // $jkzxTitle.html(dataName);
- // $(this).addClass('checked').siblings().removeClass('checked');
- // switch (index) {
- // case 0:
- //// mui.fire(zdwv, 'refresh');
- // plus.webview.show(zdwv);
- // plus.webview.hide(ggwv);
- // plus.webview.hide(xfwv);
- //
- // break;
- // case 1:
- // mui.fire(ggwv, "refresh");
- // plus.webview.show(ggwv);
- // plus.webview.hide(zdwv);
- // plus.webview.hide(xfwv);
- //
- // break;
- // case 2:
- //// mui.fire(xfwv, "refresh");
- // plus.webview.show(xfwv);
- // plus.webview.hide(zdwv);
- // plus.webview.hide(ggwv);
- //
- // break;
- // }
- // $linMask.hide();
- // $linSelGroup.hide();
- // });
- // $linMask.on( 'click', function () {
- // var isFirst = $linSelGroupChilds.eq(0).hasClass('checked');
- // var isSec = $linSelGroupChilds.eq(1).hasClass('checked');
- // var isThr = $linSelGroupChilds.eq(2).hasClass('checked');
- // if (isFirst) {
- // plus.webview.show(zdwv);
- // plus.webview.hide(ggwv);
- // plus.webview.hide(xfwv);
- //
- // }else if(isSec){
- // plus.webview.show(ggwv);
- // plus.webview.hide(zdwv);
- // plus.webview.hide(xfwv);
- //
- // }else if(isThr){
- // plus.webview.show(xfwv);
- // plus.webview.hide(ggwv);
- // plus.webview.hide(zdwv);
- //
- // }
- // });
- </script>
- </html>
|