bysyaIndex.htm 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="UTF-8">
  5. <title>bysyaIndex</title>
  6. <link rel="stylesheet" href="views/haifm/css/min.css/mui.min.css" />
  7. <link rel="stylesheet" href="views/haifm/css/min.css/portrait.main.min.css?type=6" />
  8. <style>
  9. #overlay{
  10. background: #000;
  11. filter: alpha(opacity=50); /* IE透明度 */
  12. opacity: 0.5; /*透明度 */
  13. position: absolute;
  14. top: 0px;
  15. left: 0px;
  16. width: 100%;
  17. height: 100%;
  18. z-index: 1041;
  19. display:none;
  20. }
  21. .xgmsgbox{
  22. display:none;
  23. position: absolute;
  24. top: 50%;
  25. left: 50%;
  26. background: #fff;
  27. z-index: 9999;+
  28. border: 1px solid rgba(0,0,0,0.2);
  29. border-radius: 3px;
  30. -webkit-box-shadow: 0 3px 9px rgba(0,0,0,0.5);
  31. box-shadow: 0 3px 9px rgba(0,0,0,0.5);
  32. height: 300px;
  33. }
  34. .xgmsgbox>h4{
  35. margin: 0;
  36. text-align: center;
  37. padding: 15px;
  38. border-bottom: 1px solid #e5e5e5;
  39. background-color: #f4f2f2;
  40. }
  41. .xgmsgbox>.footerBox{
  42. display: flex;
  43. justify-content: center;
  44. align-items: center;
  45. border-top: 1px solid #e5e5e5;
  46. padding: 15px;
  47. margin-top: 186px;
  48. }
  49. .xgmsgbox>.footerBox>button{
  50. padding: 6px 40px;
  51. background-color: #1abc9c;
  52. border: none;
  53. margin:0 5px;
  54. color: #fff;
  55. }
  56. .iscrollCenter{
  57. padding: 0 40px;
  58. position: absolute;
  59. width: 100%;
  60. overflow: hidden;
  61. height: 186px;
  62. top: 50px;
  63. }
  64. .iscrollCenter>.listcenter>li{
  65. height: 40px;
  66. line-height: 40px;
  67. display: flex;
  68. align-items: center;
  69. position: relative;
  70. }
  71. .listcenter .checkBox>input{
  72. visibility: hidden;
  73. }
  74. .checkBox {
  75. width: 20px;
  76. height: 20px;
  77. line-height: 20px;
  78. background: #ddd;
  79. display: inline-block;
  80. border-radius: 100%;
  81. position: absolute;
  82. -webkit-box-shadow: 0px 1px 3px rgba(0,0,0,0.5);
  83. -moz-box-shadow: 0px 1px 3px rgba(0,0,0,0.5);
  84. box-shadow: 0px 1px 3px rgba(0,0,0,0.5);
  85. right: 0;
  86. top: 10px;
  87. }
  88. .checkBox>label {
  89. display: block;
  90. width: 16px;
  91. height: 16px;
  92. border-radius: 50%;
  93. -webkit-transition: all .5s ease;
  94. -moz-transition: all .5s ease;
  95. -o-transition: all .5s ease;
  96. -ms-transition: all .5s ease;
  97. transition: all .5s ease;
  98. position: absolute;
  99. top: 2px;
  100. left: 2px;
  101. z-index: 1;
  102. background: transparent;
  103. -webkit-box-shadow:inset 0px 1px 3px rgba(0,0,0,0.5);
  104. -moz-box-shadow:inset 0px 1px 3px rgba(0,0,0,0.5);
  105. box-shadow:inset 0px 1px 3px rgba(0,0,0,0.5);
  106. }
  107. .checkBox>input[type=checkbox]:checked + label {
  108. background: #1abc9c;
  109. }
  110. .chooseDweb>.checkBox+span{
  111. text-indent: 0.2rem;
  112. }
  113. .spanColor{
  114. -webkit-transition: all .5s ease;
  115. color:#1abc9c;
  116. font-weight: bold;
  117. }
  118. *{
  119. padding: 0;
  120. margin: 0;
  121. }
  122. body,html{
  123. height:100%;
  124. width:100%;
  125. overflow:hidden;
  126. }
  127. html{
  128. font-size: 100px;
  129. }
  130. p {
  131. color: #4e768f;
  132. font-size: 0.24rem;
  133. }
  134. #wrap header .glyphicon{
  135. font-size: 20px;
  136. color: #fff;
  137. margin: 0 0.25rem;
  138. }
  139. li .row {
  140. margin-right: 0;
  141. margin-left: 0;
  142. padding: 0.05rem 0;
  143. }
  144. .mui-content {
  145. background-color: #fff;
  146. }
  147. .row div span{
  148. font-size: 0.24rem;
  149. }
  150. .mui-table-view {
  151. overflow: hidden;
  152. color: #fff;
  153. }
  154. .mui-table-view-cell {
  155. font-size: 16px;
  156. background: #4E768F;
  157. text-align: left;
  158. margin: 0 0.2rem;
  159. justify-content: space-around;
  160. }
  161. .rowflex{
  162. width: 100%;
  163. padding: 0.1rem 0;
  164. }
  165. .rowBox{
  166. padding-top: 0;
  167. border-radius: 0.2rem;
  168. }
  169. li.mui-table-view-cell {
  170. display: flex;
  171. align-items: center;
  172. margin: 10px;
  173. }
  174. .rowBox:last-child {
  175. padding-bottom: 0.1rem;
  176. }
  177. input[placeholder], [placeholder], *[placeholder] {
  178. color: #BFBFBF !important;
  179. }
  180. input[type=text]{
  181. width: 75px;
  182. height: 30px;
  183. font-size: 16px !important;
  184. }
  185. ::-webkit-input-placeholder {
  186. color: #BFBFBF !important;
  187. }
  188. .mui-table-view-cell>.mui-badge, .mui-table-view-cell>.mui-btn, .mui-table-view-cell>.mui-switch, .mui-table-view-cell>a>.mui-badge, .mui-table-view-cell>a>.mui-btn, .mui-table-view-cell>a>.mui-switch{
  189. position: relative;
  190. top: 10px;
  191. right: 0;
  192. }
  193. .mui-switch .mui-switch-handle {
  194. background-color: #fff;
  195. width: 20px;
  196. height: 20px;
  197. }
  198. .mui-switch.mui-active .mui-switch-handle {
  199. -webkit-transform: translate(22px,0);
  200. transform: translate(22px,0);
  201. }
  202. .btn-group, .btn-group-vertical {
  203. padding: 0 10px;
  204. }
  205. .btn-default{
  206. color: #4E768F;
  207. }
  208. .mui-btn-outlined{
  209. background: #4E768F;color: #FFF;border: none;border-radius: 30px;font-size: 0.24rem;
  210. }
  211. .column>span {
  212. background-size: 250%;background-repeat: no-repeat;background-position-x: center;background-position-y: center;
  213. width: 0.5rem;
  214. height: 0.5rem;
  215. border-radius: 0.05rem;
  216. }
  217. .column li .span {
  218. width: 50%;
  219. padding: 0.05rem 0.1rem;
  220. color: #4E768F;
  221. }
  222. .spanColor {
  223. border-radius: 0.1rem;
  224. background: #5784a1;
  225. color: #fff !important;
  226. }
  227. .rowflex1{
  228. padding: 0.1rem 0;
  229. }
  230. .rowflex11{
  231. margin: 0.1rem 0;
  232. }
  233. </style>
  234. <script src="views/haifm/css/min.css/mui.min.js"></script>
  235. <script src="views/haifm/mc/bysya/bysyaIndex.js"></script>
  236. </head>
  237. <body>
  238. <input type="hidden" id="dwsl" value="$!dwsl"/>
  239. <input type="hidden" id="dksl" value="$!dksl"/>
  240. <input type="hidden" id="jqid" value="$!jqid"/>
  241. <input type="hidden" id="zsid" value="$!zsid"/>
  242. <input type="hidden" id="dataSize" value="$!yaLists.size()"/>
  243. <input type="hidden" id="yaLists" value="$!yaLists"/>
  244. <input type="hidden" id="dwnr" value="$!dwnr"/>
  245. <input type="hidden" id="zsbz" value="$!zsbz"/>
  246. <div id="wrap">
  247. <header>
  248. <span class="glyphicon glyphicon-chevron-left" aria-hidden="true" onclick="yaBackUrl();"></span>
  249. <p>保育舍预案设置</p>
  250. <span class="glyphicon glyphicon-ok" aria-hidden="true" onClick = "yaSave();"></span>
  251. </header>
  252. <div class="middle ">
  253. <section class="bysyaIscroll" style="background: #fff;">
  254. <div class="mui-content">
  255. <div class="mui-control-content mui-active">
  256. <ul>
  257. #set($count = 1)
  258. #foreach($!obj in $!yaLists)
  259. <!--日龄1-->
  260. <li class="align-itemscenter">
  261. <ul class="mui-table-view" style="width: 100%;">
  262. <li class="mui-table-view-cell">
  263. <span>日龄</span>
  264. <input type="text" class="form-control" placeholder="" aria-describedby="sizing-addon3" value = "$!obj.rlks" disabled="disabled">
  265. <input type="text" class="form-control" placeholder="" aria-describedby="sizing-addon3" value = "$!obj.rljs" disabled="disabled">
  266. <div class="mui-switch mui-switch-mini" data-type="$!count">
  267. <div class="mui-switch-handle"></div>
  268. </div>
  269. </li>
  270. </ul>
  271. </li>
  272. <li class="hiddenli" style="display: none;">
  273. <div class="rowBox container-fluid" id = "yzConstant$!count">
  274. </div>
  275. </li>
  276. #set($count = $count + 1)
  277. #end
  278. </ul>
  279. </div>
  280. </div>
  281. </section>
  282. </div>
  283. <div class="btn-group" id = "btn-add" role="group" aria-label="..." style="position: absolute;bottom: 2%;left: 35%;background: #4E768F;z-index: 1;padding: 5px 15px;border-radius: 5px;">
  284. <span class="glyphicon glyphicon-plus" aria-hidden="true" style="color: #fff;"></span>
  285. </div>
  286. <div class="btn-group" id = "btn-del" role="group" aria-label="..." style="position: absolute;bottom: 2%;right: 35%;background: #4E768F;z-index: 1;padding: 5px 15px;border-radius: 5px;">
  287. <span class="glyphicon glyphicon-minus" aria-hidden="true" style="color: #fff;"></span>
  288. </div>
  289. </div>
  290. <div id="tb" style="display:none;z-index: 1040;position: fixed;bottom: 50px;right: 18px;width: 50px;height: 50px;line-height: 50px;border: 1px solid #ccc;text-align: center;box-shadow: 1px 1px 1px rgba(0,0,0, .29), inset 1px 1px 1px rgba(255,255,255, .44);text-shadow: 1px 1px 1px rgba(255,255,255, .22);color: #515151;background : -webkit-linear-gradient( top , #d3d3d3 0%, #8a8a8a 100%);border-radius: 50%;">同步</div>
  291. <div id="overlay"></div>
  292. <div class="xgmsgbox">
  293. <h4 id = "damc">$!damc</h4>
  294. <div class="iscrollCenter">
  295. <ul class="listcenter" style="margin: 0 auto;position: relative;">
  296. #foreach ($!obj in $!zsdaList)
  297. <li>
  298. <div id="tb" class="checkBox">
  299. <input type="checkbox" name="checkBox" id="dmid" value="$!obj.id" />
  300. <label for="dmid"></label>
  301. </div>
  302. <span>$!obj.zsmc</span>
  303. </li>
  304. #end
  305. </ul>
  306. </div>
  307. <div class="footerBox">
  308. <button type="button" class="btn btn-default qd" onclick="saveyxcs('tb')">确定</button>
  309. <button type="button" class="btn btn-default qx">取消</button>
  310. </div>
  311. </div>
  312. </body>
  313. <script>
  314. (function (doc,win) {
  315. var docEl = doc.documentElement;
  316. var resizeEvt = 'orientationchange' in window ? 'orientationchange' : 'resize';
  317. var recalc = function () {
  318. var clientWidth = docEl.clientWidth;
  319. if (!clientWidth) return;
  320. if(clientWidth>=640){
  321. docEl.style.fontSize = '100px';
  322. }else{
  323. docEl.style.fontSize = 100 * (clientWidth / 640) + 'px';
  324. }
  325. };
  326. if (!doc.addEventListener) return;
  327. win.addEventListener(resizeEvt, recalc, false);
  328. doc.addEventListener('DOMContentLoaded', recalc, false);
  329. })(document, window);
  330. </script>
  331. </html>