xq-shaixuan.html 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8">
  5. <title>续签统计筛选</title>
  6. <meta name="author" content="yihu.com" />
  7. <meta name="format-detection" content="telephone=no" />
  8. <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0" />
  9. <meta name="apple-mobile-web-app-capable" content="yes" />
  10. <meta name="apple-mobile-web-app-status-bar-style" content="black" />
  11. <link rel="stylesheet" href="../../../common/iconfont/iconfont.css">
  12. <link rel="stylesheet" href="../../../common/cross/css/cross.css" />
  13. <style>
  14. .c-323232{color: #323232;}
  15. #footer { position: absolute; bottom: 0;width: 100%;}
  16. .cb-17B3EC {background:#17B3EC;}
  17. .cb-ffffff {background:#ffffff;}
  18. .c-border-top{border-top:1px solid #DCDCDC;}
  19. .height-50 { height: 50px; }
  20. .lheight-50 { line-height: 50px; }
  21. .c-50{width: 50% !important;margin-left: 0 !important;float: left;}
  22. .c-000{color:#000}
  23. .c-tac { text-align: center; }
  24. .line{
  25. height:1px;
  26. background-color: #e1e1e1;
  27. }
  28. .tag{
  29. float: left;
  30. border: 1px solid #e1e1e1;
  31. padding: 0 10px;
  32. border-radius: 5px;
  33. height: 34px;
  34. line-height: 34px;
  35. margin: 3px 10px 3px 0;
  36. color: #909090;
  37. font-size: 14px;
  38. }
  39. .tag.active{
  40. color:#fff;
  41. border:1px solid #17B3EC;
  42. background: #17B3EC;
  43. }
  44. </style>
  45. </head>
  46. <body>
  47. <div class="mlr10 mt20">
  48. <div class="div-content type-panel">
  49. <div class="c-f16 c-333 mt20">统计维度</div>
  50. <div class="c-row mt10 mb20">
  51. <div class="tag c-t-center active" data-tag="type" data-lowCode=""><span>所有居民</span></div>
  52. <div class="tag c-t-center" data-tag="type" data-lowCode="3"><span>65岁以上签约</span></div>
  53. <div class="tag c-t-center" data-tag="type" data-lowCode="1"><span>高血压</span></div>
  54. <div class="tag c-t-center" data-tag="type" data-lowCode="2"><span>糖尿病</span></div>
  55. </div>
  56. </div>
  57. </div>
  58. <div id="footer">
  59. <div class="c-row btn-wrap c-border-top">
  60. <div class="c-50 c-tac height-50 lheight-50 cb-ffffff div-chongzhi-btn">
  61. <a href="#" class="c-000 f-fs16">重置</a>
  62. </div>
  63. <div class="c-50 c-tac height-50 lheight-50 cb-17B3EC div-confirm-btn">
  64. <a href="#" class="c-fff f-fs16">确定</a>
  65. </div>
  66. </div>
  67. </div>
  68. <script src="../../../js/mui.min.js" type="text/javascript" charset="utf-8"></script>
  69. <script src="../../../js/common_http.js" type="text/javascript" charset="utf-8"></script>
  70. <script src="../../../js/jquery/2.1.3/jquery.js" type="text/javascript" charset="utf-8"></script>
  71. <script type="text/javascript">
  72. var showType, selectedType;
  73. mui.init();
  74. mui.plusReady(function(){
  75. var self = plus.webview.currentWebview();
  76. selectedType = self.selectedType;
  77. if(selectedType){
  78. $(".type-panel .tag").removeClass("active");
  79. $(".type-panel .tag[data-lowCode="+selectedType+"]").addClass("active");
  80. }
  81. bindEvents();
  82. });
  83. function bindEvents(){
  84. $(".tag").on("tap", function(){
  85. var $this = $(this);
  86. if($this.hasClass("active")){
  87. return;
  88. }else{
  89. var tag = $this.attr("data-tag");
  90. $(".tag[data-tag="+tag+"]").removeClass("active");
  91. $this.addClass("active");
  92. }
  93. });
  94. $(".div-confirm-btn").on('tap', function(){
  95. var opener = plus.webview.currentWebview().opener();
  96. var $type = $(".tag.active[data-tag=type]"),
  97. lowCode = $type.attr("data-lowCode"),
  98. name = $type.find("span").text();
  99. mui.fire(opener, "refresh", {lowCode: lowCode, name: name});
  100. mui.fire(opener, "hideShaiXuan");
  101. });
  102. $(".div-chongzhi-btn").on("click",function(){
  103. $(".tag.active[data-tag=type]").removeClass("active");
  104. $(".tag[data-tag=type]").eq(0).addClass("active");
  105. })
  106. }
  107. mui.back = function(){
  108. var self = plus.webview.currentWebview(),
  109. opener = self.opener();
  110. mui.fire(opener, "hideShaiXuan");
  111. }
  112. </script>
  113. </body>
  114. </html>