homePage.vue 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188
  1. <template>
  2. <view>
  3. <u-navbar v-show="false"
  4. title="首页" title-color="#101010"></u-navbar>
  5. <view class="navbar" >
  6. 智泊e家 运管端
  7. </view>
  8. <view class="tabs-box">
  9. </view>
  10. <view class="main">
  11. <view class="statistics">
  12. <view class="title">
  13. <view class="icon">
  14. <image class="img" src="@/assets/img/circleCopy1@1x.png" mode=""></image>
  15. </view>
  16. <view class="text">
  17. 设备监控度
  18. </view>
  19. <view class="check-all" @click="toEquipmentElectricity">
  20. 查看全部<u-icon name="arrow-right" size="24" color="#838383"></u-icon>
  21. </view>
  22. </view>
  23. <view class="content" >
  24. <jpContent :status="jpContentMap.body1">
  25. 123
  26. </jpContent>
  27. </view>
  28. </view>
  29. <view class="statistics">
  30. <view class="title">
  31. <view class="icon">
  32. <image class="img" src="@/assets/img/circleCopy1@1x.png" mode=""></image>
  33. </view>
  34. <view class="text">
  35. 在用场站
  36. </view>
  37. </view>
  38. <view class="content" >
  39. <jpContent :status="jpContentMap.body1">
  40. 123
  41. </jpContent>
  42. </view>
  43. </view>
  44. </view>
  45. <tabbar :current="0"></tabbar>
  46. </view>
  47. </template>
  48. <script>
  49. import Tabbar from '@/components/Tabbar.vue'
  50. import jpContent from '@/components/JPcontent.vue'
  51. export default {
  52. components: {
  53. Tabbar,jpContent
  54. },
  55. data() {
  56. return {
  57. jpContentMap:{
  58. body1:0
  59. }
  60. }
  61. },
  62. onLoad() {
  63. },
  64. onReady() {
  65. },
  66. methods: {
  67. }
  68. }
  69. </script>
  70. <style scoped lang="scss">
  71. // 导航栏
  72. .navbar {
  73. background-color: rgba(22, 119, 255, 1);
  74. color: #fff;
  75. line-height: 88rpx;
  76. display: flex;
  77. justify-content: space-between;
  78. align-items: center;
  79. padding: 0 32rpx;
  80. color: rgba(255, 255, 255, 1);
  81. font-size: 36rpx;
  82. position: fixed;
  83. left: 0;
  84. right: 0;
  85. top: 0;
  86. z-index: 999999;
  87. font-weight: bold;
  88. }
  89. .main {
  90. border-radius: 16px 16px 0px 0px;
  91. background: linear-gradient(180deg, rgba(242, 244, 246, 1) 61%, rgba(255, 255, 255, 0) 100%);
  92. margin-top: -24rpx;
  93. padding: 32rpx 32rpx 32rpx 20rpx;
  94. .statistics {
  95. border-radius: 8px;
  96. background-color: rgba(255, 255, 255, 1);
  97. box-shadow: 0px 1px 6px 0px rgba(0, 59, 142, 0.05);
  98. margin-bottom: 24rpx;
  99. padding: 40rpx;
  100. .title {
  101. display: flex;
  102. align-items: center;
  103. margin-bottom: 16rpx;
  104. .img {
  105. width: 36rpx;
  106. height: 36rpx;
  107. vertical-align: middle;
  108. border-radius: 999px;
  109. }
  110. .change {
  111. display: flex;
  112. align-items: center;
  113. .change-img {
  114. width: 32rpx;
  115. height: 32rpx;
  116. vertical-align: middle;
  117. }
  118. text {
  119. margin-left: 8rpx;
  120. }
  121. }
  122. .text {
  123. color: rgba(16, 16, 16, 1);
  124. font-size: 36rpx;
  125. margin-left: 16rpx;
  126. font-weight: bold;
  127. }
  128. .change {
  129. margin-left: 16rpx;
  130. font-size: 24rpx;
  131. color: #838383;
  132. }
  133. .check-all {
  134. margin-left: auto;
  135. color: rgba(131, 131, 131, 1);
  136. font-size: 24rpx;
  137. }
  138. }
  139. }
  140. }
  141. .tabs-box {
  142. padding: 32rpx 0;
  143. margin-top: 66rpx;
  144. padding-right: 32rpx;
  145. background-color: rgba(22, 119, 255, 1);
  146. display: flex;
  147. align-items: center;
  148. justify-content: space-between;
  149. .tabs {
  150. width: 97%;
  151. }
  152. .more{
  153. padding-right: 12rpx;
  154. }
  155. }
  156. </style>