index.vue 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195
  1. <template>
  2. <view class="tabPage" :style="{'min-height':h+'px', 'padding-top':mt+'px'}">
  3. <cus-header title='智能巡检' :showback='false' bgColor='transparent'></cus-header>
  4. <image class="topbg" :src="imgBase+'inspection/inspection_top_bg.png'" mode="widthFix"></image>
  5. <div class="top">
  6. <div class="box" @tap="toTurn('/pagesInspection/onlineRepair/index')">
  7. <image :src="imgBase+'inspection/inspection_img_xsbx.png'"></image>
  8. <text>线上报修</text>
  9. </div>
  10. <div class="box" @tap="toTurn('/pagesInspection/record/index')">
  11. <image :src="imgBase+'inspection/inspection_img_xjjl.png'"></image>
  12. <text>巡检记录</text>
  13. </div>
  14. </div>
  15. <div class="card">
  16. <div class="title" @tap="toTurn('/pagesInspection/waitOrder/index')">
  17. <div class="left">工单待办</div>
  18. <div class="right">
  19. <text>立即查看</text>
  20. <u-icon name="arrow-right" color="#198CFF" size="28"></u-icon>
  21. </div>
  22. </div>
  23. <div class="info">
  24. <div class="pre">
  25. <text>{{3}}</text>
  26. <p>待指派</p>
  27. </div>
  28. <div class="pre">
  29. <text>{{2}}</text>
  30. <p>待维修</p>
  31. </div>
  32. <div class="pre">
  33. <text>{{1}}</text>
  34. <p>已维修</p>
  35. </div>
  36. </div>
  37. </div>
  38. <div class="card">
  39. <div class="title" @tap="toTurn('/pagesInspection/abnormalDevice/index')">
  40. <div class="left">设备</div>
  41. <div class="right">
  42. <text>立即查看</text>
  43. <u-icon name="arrow-right" color="#198CFF" size="28"></u-icon>
  44. </div>
  45. </div>
  46. <div class="info">
  47. <div class="pre">
  48. <text>{{3}}</text>
  49. <p>设备总数</p>
  50. </div>
  51. <div class="pre">
  52. <text>{{2}}</text>
  53. <p>正常设备</p>
  54. </div>
  55. <div class="pre">
  56. <text>{{1}}</text>
  57. <p>异常设备</p>
  58. </div>
  59. </div>
  60. </div>
  61. <Tabbar :tabbarIndex="1"></Tabbar>
  62. </view>
  63. </template>
  64. <script>
  65. import Tabbar from '@/components/CusTabbar/index.vue'
  66. export default {
  67. components:{
  68. Tabbar
  69. },
  70. data(){
  71. return {
  72. }
  73. },
  74. methods:{
  75. toTurn(url){
  76. if(!url) return
  77. uni.navigateTo({ url })
  78. }
  79. }
  80. }
  81. </script>
  82. <style scoped lang="less">
  83. .tabPage{
  84. width: 100%;
  85. padding: 0 24rpx 188rpx;
  86. box-sizing: border-box;
  87. background: #F4F8FB;
  88. .topbg{
  89. width: 100%;
  90. position: fixed;
  91. top: 0;
  92. left: 0;
  93. z-index: 0;
  94. }
  95. .top{
  96. width: 100%;
  97. position: relative;
  98. display: flex;
  99. justify-content: space-between;
  100. margin-top: 20rpx;
  101. .box{
  102. width: calc(50% - 9rpx);
  103. padding: 36rpx 24rpx;
  104. box-sizing: border-box;
  105. background: #FFFFFF;
  106. border-radius: 16rpx;
  107. display: flex;
  108. align-items: center;
  109. image{
  110. width: 98rpx;
  111. height: 98rpx;
  112. }
  113. text{
  114. font-family: PingFang-SC, PingFang-SC;
  115. font-weight: bold;
  116. font-size: 30rpx;
  117. color: #1D2129;
  118. line-height: 28rpx;
  119. text-align: center;
  120. margin-left: 24rpx;
  121. }
  122. }
  123. }
  124. .card{
  125. width: 100%;
  126. position: relative;
  127. background: #FFFFFF;
  128. border-radius: 16rpx;
  129. padding: 36rpx 0 40rpx;
  130. box-sizing: border-box;
  131. margin-top: 20rpx;
  132. .title{
  133. width: 100%;
  134. padding: 0 24rpx;
  135. box-sizing: border-box;
  136. display: flex;
  137. align-items: center;
  138. justify-content: space-between;
  139. .left{
  140. font-family: PingFang-SC, PingFang-SC;
  141. font-weight: bold;
  142. font-size: 36rpx;
  143. color: #333333;
  144. line-height: 36rpx;
  145. text-align: left;
  146. }
  147. .right{
  148. display: flex;
  149. align-content: center;
  150. text {
  151. font-family: PingFangSC, PingFang SC;
  152. font-weight: 400;
  153. font-size: 26rpx;
  154. color: #198CFF;
  155. line-height: 28rpx;
  156. text-align: left;
  157. }
  158. }
  159. }
  160. .info{
  161. width: 100%;
  162. margin-top: 64rpx;
  163. display: flex;
  164. .pre{
  165. width: calc(100% / 3);
  166. display: flex;
  167. flex-direction: column;
  168. align-items: center;
  169. text{
  170. font-family: PingFang-SC, PingFang-SC;
  171. font-weight: bold;
  172. font-size: 36rpx;
  173. color: #333333;
  174. line-height: 36rpx;
  175. }
  176. p{
  177. font-family: PingFangSC, PingFang SC;
  178. font-weight: 400;
  179. font-size: 28rpx;
  180. color: #999999;
  181. line-height: 28rpx;
  182. text-align: center;
  183. margin-top: 20rpx;
  184. }
  185. }
  186. }
  187. }
  188. }
  189. </style>