index.html 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122
  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. <div class="module-box">
  39. <div class="row">
  40. <div class="col-xs-4">
  41. <div class="module-info" onclick="goAdd(2)">
  42. <img src="/repair/img/baojie2.png" alt="">
  43. <div class="name">保洁</div>
  44. </div>
  45. </div>
  46. <div class="col-xs-4">
  47. <div class="module-info" onclick="goAdd(1)">
  48. <img src="/repair/img/weixiu2.png" alt="">
  49. <div class="name">维修</div>
  50. </div>
  51. </div>
  52. <div class="col-xs-4">
  53. <div class="module-info" onclick="goAdd(4)">
  54. <img src="/repair/img/yingji2.png" alt="">
  55. <div class="name">应急</div>
  56. </div>
  57. </div>
  58. <div class="col-xs-4">
  59. <div class="module-info" onclick="goAdd(0)">
  60. <img src="/repair/img/tousu2.png" alt="">
  61. <div class="name">投诉建议</div>
  62. </div>
  63. </div>
  64. <!-- <div class="col-xs-4">-->
  65. <!-- <div class="module-info" onclick="questionnaire()">-->
  66. <!-- <img src="/repair/img/manyidu.png" alt="">-->
  67. <!-- <div class="name">满意度评价</div>-->
  68. <!-- </div>-->
  69. <!-- </div>-->
  70. <div class="col-xs-4">
  71. <div class="module-info" onclick="goVideo()">
  72. <img src="/repair/img/weiketang2.png" alt="">
  73. <div class="name">微课堂</div>
  74. </div>
  75. </div>
  76. </div>
  77. </div>
  78. </div>
  79. </body>
  80. </html>
  81. <script>
  82. new Swiper ('#swiper', {
  83. loop: true, // 循环模式选项
  84. observer:true,//修改swiper自己或子元素时,自动初始化swiper
  85. observeParents:true,//修改swiper的父元素时,自动初始化swiper
  86. autoplay: {
  87. delay: 6000,
  88. stopOnLastSlide: false,
  89. disableOnInteraction: false,
  90. },
  91. // 如果需要分页器
  92. pagination: {
  93. el: '#box-swiper-pagination',
  94. clickable: true,
  95. },
  96. });
  97. function goAdd(mode){
  98. window.location.href = "{:url('repair/add')}?mode="+mode;
  99. }
  100. function questionnaire(){
  101. window.location.href = "{:url('repair/questionnaire')}";
  102. }
  103. function goVideo(){
  104. window.location.href = "{:url('repair/video')}";
  105. }
  106. // function callPhone(){
  107. // window.location.href = 'tel:'
  108. // }
  109. </script>