main.html 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="UTF-8">
  5. <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
  6. <title>底部导航</title>
  7. <script src="../../../js/mui.min.js"></script>
  8. <link href="../../../css/mui.min.css" rel="stylesheet" />
  9. <link rel="stylesheet" type="text/css" href="../../../common/iconfont/iconfont.css" />
  10. <link rel="stylesheet" href="../../../common/cross/css/cross.css" type="text/css" />
  11. <style>
  12. .mui-bar-tab .mui-tab-item .mui-icon.icon1{width: 30px;height: 30px;background: url(../images/shouye_btn.png) no-repeat center top;background-size: 30px;top:-5px}
  13. .mui-bar-tab .mui-tab-item .mui-icon.icon2{width: 30px;height: 30px;background: url(../images/juming_btn.png) no-repeat center top;background-size: 30px;top:-5px}
  14. .mui-bar-tab .mui-tab-item .mui-icon.icon3{width: 30px;height: 30px;background: url(../images/tuandui_btn.png) no-repeat center top;background-size: 30px;top:-5px}
  15. .mui-bar-tab .mui-tab-item .mui-icon.icon4{width: 30px;height: 30px;background: url(../images/xiaoxi_btn.png) no-repeat center top;background-size: 30px;top:-5px}
  16. .mui-bar-tab .mui-tab-item .mui-icon.icon5{width: 30px;height: 30px;background: url(../images/wode_btn.png) no-repeat center top;background-size: 30px;top:-5px}
  17. .mui-bar-tab .mui-tab-item .mui-icon~.mui-tab-label{font-size: 10px;position: absolute;left: 50%;top: 50%;margin-left: -12px;margin-top: 7px;}
  18. .mui-bar-tab .mui-tab-item.mui-active .mui-tab-label{color: #17b3ec;}
  19. .mui-bar-tab .mui-tab-item.mui-active .mui-icon.icon1{width: 30px;height: 30px;background: url(../images/shouye_pre.png) no-repeat center top;background-size: 30px;top:-5px}
  20. .mui-bar-tab .mui-tab-item.mui-active .mui-icon.icon2{width: 30px;height: 30px;background: url(../images/juming_pre.png) no-repeat center top;background-size: 30px;top:-5px}
  21. .mui-bar-tab .mui-tab-item.mui-active .mui-icon.icon3{width: 30px;height: 30px;background: url(../images/tuandui_pre.png) no-repeat center top;background-size: 30px;top:-5px}
  22. .mui-bar-tab .mui-tab-item.mui-active .mui-icon.icon4{width: 30px;height: 30px;background: url(../images/xiaoxi_pre.png) no-repeat center top;background-size: 30px;top:-5px}
  23. .mui-bar-tab .mui-tab-item.mui-active .mui-icon.icon5{width: 30px;height: 30px;background: url(../images/wode_pre.png) no-repeat center top;background-size: 30px;top:-5px}
  24. .mui-bar-tab {
  25. background: #fff;
  26. }
  27. </style>
  28. </head>
  29. <body>
  30. <div style="width:100%;border-top: 1px solid #e1e1e1;position: fixed;bottom:52px;background: #DCDCDC;z-index: 10000;"></div>
  31. <nav class="mui-bar mui-bar-tab">
  32. <a class="mui-tab-item mui-active" data-src="home2.html">
  33. <span class="mui-icon iconfont icon1"></span>
  34. <span class="mui-tab-label">首 页</span>
  35. </a>
  36. <a class="mui-tab-item c-hide" data-src="huanzhe.html">
  37. <span class="mui-icon iconfont icon2"></span>
  38. <span class="mui-tab-label">居 民</span>
  39. </a>
  40. <a class="mui-tab-item" style="display: none;" data-src="../../tuandui/html/tuandui.html">
  41. <span class="mui-icon iconfont icon3"></span>
  42. <span class="mui-tab-label">团 队</span>
  43. </a>
  44. <a class="mui-tab-item" data-src="xiaoxi.html">
  45. <span class="mui-icon iconfont icon4">
  46. <span id="point" style="position: absolute; color: red; line-height: 10px; font-size: 24px; left: 22px;display: none;">•</span>
  47. </span>
  48. <span class="mui-tab-label">消 息</span>
  49. </a>
  50. <a class="mui-tab-item" data-src="mine.html">
  51. <span class="mui-icon iconfont icon5">
  52. <span id="mine_point" style="position: absolute; color: red; line-height: 10px; font-size: 24px; left: 22px;display: none;">•</span>
  53. </span>
  54. <span class="mui-tab-label">我 的</span>
  55. </a>
  56. </nav>
  57. </body>
  58. <script type="text/javascript" src="../../../js/jquery/2.1.3/jquery.js"></script>
  59. <script src="../../../js/mui.min.js" type="text/javascript" charset="utf-8"></script>
  60. <!--<script src="../../../js/app.js" type="text/javascript" charset="utf-8"></script>-->
  61. <script src="../../js/common.js" type="text/javascript" charset="utf-8"></script>
  62. <script src="../../../js/common_http.js" type="text/javascript" charset="utf-8"></script>
  63. <script src="../../../js/app.js" type="text/javascript" charset="utf-8"></script>
  64. <script src="../../../js/im.client.js" type="text/javascript" charset="utf-8"></script>
  65. <script src="../js/main.js" type="text/javascript" charset="utf-8"></script>
  66. <script type="text/javascript">
  67. mui.plusReady(function() {
  68. window.localStorage.removeItem("isLoginOut");
  69. // getTotalDate();
  70. });
  71. // function getTotalDate() {
  72. // sendPost("doctor/message/amount", {}, null, function(res) {
  73. // console.log(JSON.stringify(res));
  74. // if(res.status == 200) {
  75. // var healthIndex = res.data.healthIndex; //体征指标
  76. // var sign = res.data.sign; //签约
  77. // var consultTeam = res.data.consultTeam; //咨询
  78. // var total = healthIndex * 1 + sign * 1;
  79. // if(total != 0) {
  80. // $("#total").removeClass("c-hide");
  81. // $("#total").text(total);
  82. // } else {
  83. // $("#total").addClass("c-hide");
  84. // }
  85. // }
  86. // });
  87. // };
  88. window.addEventListener("mainupdate", function() {
  89. var count = $("#total").text();
  90. count--;
  91. if(count == 0) {
  92. $("#total").addClass("c-hide");
  93. } else {
  94. $("#total").text(count);
  95. }
  96. });
  97. window.addEventListener("mainActive", function() {
  98. var item = $(".mui-tab-item").get(1);
  99. mui.trigger(item, 'tap');
  100. });
  101. function refreshSta(count){
  102. var docType = parseInt(plus.storage.getItem("docType"));
  103. var qiehuan = plus.webview.getWebviewById("qiehuan.html");
  104. if(qiehuan){
  105. mui.fire(qiehuan, 'refreshMsg', {type: docType, count: count});
  106. }
  107. }
  108. window.addEventListener("showPoint", function() {
  109. $("#point").css("color","red");
  110. $("#point").show();
  111. refreshSta(1);
  112. });
  113. window.addEventListener("showBluePoint", function(){
  114. $("#point").css("color","blue");
  115. $("#point").show();
  116. refreshSta(1);
  117. });
  118. window.addEventListener("hidePoint", function() {
  119. $("#point").hide();
  120. refreshSta(0);
  121. });
  122. </script>
  123. </html>