index.vue 4.2 KB

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