index.html 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125
  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. <link rel="stylesheet" href="/static/bootstrap-3.3.7/css/bootstrap.css">
  9. <script type="text/javascript" src="/static/jquery-2.2.4.min.js"></script>
  10. <script src="/static/swiper4.5/js/swiper.min.js"></script>
  11. <link rel="stylesheet" href="/repair/style.css">
  12. <link rel="stylesheet" href="/static/swiper4.5/css/swiper.min.css">
  13. <title>{$orgName}</title>
  14. </head>
  15. <body>
  16. <div class="container">
  17. <div class="header-box">{$orgName}管理系统 </div>
  18. <div class="swiper-box">
  19. <div class="swiper" id="swiper">
  20. <div class="swiper-wrapper">
  21. {volist name="banners" id="v"}
  22. <div class="swiper-slide">
  23. <img src="{$v.path}">
  24. </div>
  25. {/volist}
  26. </div>
  27. <div class="box-swiper-pagination" id="box-swiper-pagination"></div>
  28. </div>
  29. </div>
  30. <div class="phone-box">
  31. {if $orgPhone}
  32. <a href="tel:{$orgPhone}" style="text-decoration: none;color: #fff">
  33. <img src="/repair/img/callphone.png" alt="">
  34. <text>电话:{$orgPhone}</text>
  35. </a>
  36. {/if}
  37. </div>
  38. {if $isOff == 1}
  39. <div class="module-box">
  40. <div class="row">
  41. <div class="col-xs-4">
  42. <div class="module-info" onclick="goAdd(2)">
  43. <img src="/repair/img/baojie2.png" alt="">
  44. <div class="name">保洁</div>
  45. </div>
  46. </div>
  47. <div class="col-xs-4">
  48. <div class="module-info" onclick="goAdd(1)">
  49. <img src="/repair/img/weixiu2.png" alt="">
  50. <div class="name">维修</div>
  51. </div>
  52. </div>
  53. <div class="col-xs-4">
  54. <div class="module-info" onclick="goAdd(4)">
  55. <img src="/repair/img/yingji2.png" alt="">
  56. <div class="name">应急</div>
  57. </div>
  58. </div>
  59. <div class="col-xs-4">
  60. <div class="module-info" onclick="goAdd(0)">
  61. <img src="/repair/img/tousu2.png" alt="">
  62. <div class="name">投诉建议</div>
  63. </div>
  64. </div>
  65. <!-- <div class="col-xs-4">-->
  66. <!-- <div class="module-info" onclick="questionnaire()">-->
  67. <!-- <img src="/repair/img/manyidu.png" alt="">-->
  68. <!-- <div class="name">满意度评价</div>-->
  69. <!-- </div>-->
  70. <!-- </div>-->
  71. <div class="col-xs-4">
  72. <div class="module-info" onclick="goVideo()">
  73. <img src="/repair/img/weiketang2.png" alt="">
  74. <div class="name">微课堂</div>
  75. </div>
  76. </div>
  77. </div>
  78. </div>
  79. {else /}
  80. <div style="width: 100%;text-align: center;margin-top: 50px">此功能暂未开放</div>
  81. {/if}
  82. </div>
  83. </body>
  84. </html>
  85. <script>
  86. new Swiper ('#swiper', {
  87. loop: true, // 循环模式选项
  88. observer:true,//修改swiper自己或子元素时,自动初始化swiper
  89. observeParents:true,//修改swiper的父元素时,自动初始化swiper
  90. autoplay: {
  91. delay: 6000,
  92. stopOnLastSlide: false,
  93. disableOnInteraction: false,
  94. },
  95. // 如果需要分页器
  96. pagination: {
  97. el: '#box-swiper-pagination',
  98. clickable: true,
  99. },
  100. });
  101. function goAdd(mode){
  102. window.location.href = "{:url('repair/add')}?mode="+mode;
  103. }
  104. function questionnaire(){
  105. window.location.href = "{:url('repair/questionnaire')}";
  106. }
  107. function goVideo(){
  108. window.location.href = "{:url('repair/video')}";
  109. }
  110. // function callPhone(){
  111. // window.location.href = 'tel:'
  112. // }
  113. </script>