index.html 6.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200
  1. <!doctype html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="UTF-8">
  5. <meta name="viewport"
  6. content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
  7. <meta http-equiv="X-UA-Compatible" content="ie=edge">
  8. <script src="/static/jquery-1.11.3.min.js"></script>
  9. <link rel="stylesheet" href="/static/bootstrap-3.3.7/css/bootstrap.min.css">
  10. <link rel="stylesheet" href="/static/meeting/style.css">
  11. <script src="/static/elementui2.15.5/vue-2.6.14.js"></script>
  12. <script src="/static/elementui2.15.5/datav.map.vue.js"></script>
  13. <title>{$info['title']}</title>
  14. <body>
  15. <div class="nav-header">
  16. <div class="nav-left" >
  17. <img src="/static/meeting/img/logo.png" alt="" class="one">
  18. <img src="/static/meeting/img/header-left.png" alt="" class="two">
  19. </div>
  20. <div class="nav-title">当前会议室信息一览</div>
  21. <div class="nav-right">
  22. <img src="/static/meeting/img/header-right.png" alt="" class="three">
  23. </div>
  24. <div class="nav-right2">
  25. <div id="time" class="time"></div>
  26. <div id="week" class="week"></div>
  27. <div id="date" class="date"></div>
  28. </div>
  29. <img src="/static/meeting/img/header-bottom.png" alt="" class="header-bottom">
  30. </div>
  31. <div class="main">
  32. <div class="main1">
  33. <div class="meeting-title">
  34. <div class="qrcode">
  35. <img src="" alt="" id="qrcode">
  36. </div>
  37. <text>{$info.title}</text>
  38. </div>
  39. <div class="meeting-status {if($status)}meeting-status-color{$status}{/if}" id="meetingStatus">
  40. <div class="circle"></div>
  41. <text id="statusTxt">{if($status ==0)}空闲中{elseif($status ==1)}会议中{/if}</text>
  42. </div>
  43. </div>
  44. <div class="main2" id="vueDadaV">
  45. <dv-scroll-board :config="config" style="width:100%;height:100%" />
  46. </div>
  47. <div class="main3">
  48. <div class="remind-box">
  49. <img src="/static/meeting/img/remind.png" alt="">
  50. <text class="remind-title">提醒</text>
  51. </div>
  52. <div class="remind-content">
  53. <marquee direction="left">{$info.notice}</marquee>
  54. <!-- <p class="animate">-->
  55. <!-- -->
  56. <!-- </p>-->
  57. </div>
  58. </div>
  59. </div>
  60. </body>
  61. </html>
  62. <script>
  63. var meetingId = '{$meetingId}';
  64. $(window).resize(function(){
  65. location.reload()
  66. });
  67. $(function () {
  68. changeZoom();
  69. window.setInterval("realSysTime()", 1000);
  70. });
  71. qrcode();
  72. meeting();
  73. vueDataV();
  74. setInterval(function () {
  75. meeting();
  76. vueDataV();
  77. }, 10*1000);
  78. function changeZoom() {
  79. var wb = $(window).width()/1920;
  80. var hb = $(window).height()/1080;
  81. if(wb >= hb){
  82. $('body').css({
  83. 'zoom': hb,
  84. });
  85. }else{
  86. $('body').css({
  87. 'zoom': wb,
  88. });
  89. }
  90. }
  91. function vueDataV(){
  92. var app = new Vue({
  93. el: '#vueDadaV',
  94. data:{
  95. config:{
  96. // header: ['编号', '申请人', '开始时间','结束时间','状态'],
  97. // headerHeight: 45,
  98. // rowNum: 8,
  99. // headerBGC: 'rgba(17, 43, 117, 0.5)',
  100. // oddRowBGC: 'rgba(17, 43, 117, 0.5)',
  101. // evenRowBGC: 'rgba(9, 32, 99, 0.5)',
  102. // data: []
  103. },
  104. },
  105. created(){
  106. this.getList();
  107. },
  108. methods:{
  109. getList(){
  110. var url = "{:url('MeetingScreen/meetingList')}";
  111. var that = this;
  112. $.post(url,{token:meetingId},function (res) {
  113. that.config = {
  114. header: ['<span style="font-size: 26px">编号</span>', '<span style="font-size: 26px">申请人</span>', '<span style="font-size: 26px">开始时间</span>','<span style="font-size: 26px">结束时间</span>','<span style="font-size: 26px">状态</span>'],
  115. headerHeight: 70,
  116. rowNum: 10,
  117. align: ['center','center','center','center','center'],
  118. headerBGC: 'rgba(0,38,113, 0.42)',
  119. oddRowBGC: 'rgba(0,38,113, 0.42)',
  120. evenRowBGC: 'rgba(0,38,113, 0.63)',
  121. data: res.data
  122. }
  123. })
  124. }
  125. }
  126. })
  127. }
  128. function meeting(){
  129. var url = "{:url('MeetingScreen/meetingStatus')}";
  130. $.post(url,{token:meetingId},function (res) {
  131. $('#meetingStatus').addClass('meeting-status-color'+res.data);
  132. if(res.data == 0){
  133. $('#statusTxt').html('空闲中');
  134. }else if(res.data == 1){
  135. $('#statusTxt').html('会议中');
  136. }
  137. })
  138. }
  139. function qrcode(){
  140. var url = "{:url('MeetingScreen/qrcode')}";
  141. $.post(url,{token:meetingId},function (res) {
  142. var src = '{:url("Admin/Qrcode/qrcode")}?code='+res.data;
  143. $('#qrcode').attr('src',src);
  144. })
  145. }
  146. function realSysTime() {
  147. var now = new Date();
  148. var year = now.getFullYear(); //获取年份
  149. var month = now.getMonth(); //获取月份
  150. var date = now.getDate(); //获取日期
  151. var day = now.getDay(); //获取星期
  152. var hour = now.getHours(); //获取小时
  153. var minute = now.getMinutes(); //获取分钟
  154. var seconds = now.getSeconds(); //获取秒
  155. month = month + 1;
  156. var arr_week = new Array("星期日", "星期一", "星期二", "星期三", "星期四", "星期五", "星期六");
  157. var week = arr_week[day];
  158. if (month<10) {
  159. month = '0'+month
  160. }
  161. if (date<10) {
  162. date = '0'+date
  163. }
  164. if (hour<10) {
  165. hour = '0'+hour
  166. }
  167. if (minute<10) {
  168. minute = '0'+minute
  169. }
  170. if (seconds<10) {
  171. seconds = '0'+seconds
  172. }
  173. var curTime = hour + ":" + minute + ":" + seconds;
  174. var curWeek = week;
  175. var curDate = year + "." + month + "." + date ;
  176. $('#time').html(curTime);
  177. $('#week').html(curWeek);
  178. $('#date').html(curDate);
  179. }
  180. </script>