homePage.vue 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182
  1. <template>
  2. <view>
  3. <u-navbar v-show="false"
  4. title="首页" title-color="#101010"></u-navbar>
  5. <view class="navbar" @click="goBack()">
  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:2
  59. }
  60. }
  61. },
  62. methods: {
  63. }
  64. }
  65. </script>
  66. <style scoped lang="scss">
  67. // 导航栏
  68. .navbar {
  69. background-color: rgba(22, 119, 255, 1);
  70. color: #fff;
  71. line-height: 88rpx;
  72. display: flex;
  73. justify-content: space-between;
  74. align-items: center;
  75. padding: 0 32rpx;
  76. color: rgba(255, 255, 255, 1);
  77. font-size: 36rpx;
  78. position: fixed;
  79. left: 0;
  80. right: 0;
  81. top: 0;
  82. z-index: 999999;
  83. font-weight: bold;
  84. }
  85. .main {
  86. border-radius: 16px 16px 0px 0px;
  87. background: linear-gradient(180deg, rgba(242, 244, 246, 1) 61%, rgba(255, 255, 255, 0) 100%);
  88. margin-top: -24rpx;
  89. padding: 32rpx 32rpx 32rpx 20rpx;
  90. .statistics {
  91. border-radius: 8px;
  92. background-color: rgba(255, 255, 255, 1);
  93. box-shadow: 0px 1px 6px 0px rgba(0, 59, 142, 0.05);
  94. margin-bottom: 24rpx;
  95. padding: 40rpx;
  96. .title {
  97. display: flex;
  98. align-items: center;
  99. margin-bottom: 16rpx;
  100. .img {
  101. width: 36rpx;
  102. height: 36rpx;
  103. vertical-align: middle;
  104. border-radius: 999px;
  105. }
  106. .change {
  107. display: flex;
  108. align-items: center;
  109. .change-img {
  110. width: 32rpx;
  111. height: 32rpx;
  112. vertical-align: middle;
  113. }
  114. text {
  115. margin-left: 8rpx;
  116. }
  117. }
  118. .text {
  119. color: rgba(16, 16, 16, 1);
  120. font-size: 36rpx;
  121. margin-left: 16rpx;
  122. font-weight: bold;
  123. }
  124. .change {
  125. margin-left: 16rpx;
  126. font-size: 24rpx;
  127. color: #838383;
  128. }
  129. .check-all {
  130. margin-left: auto;
  131. color: rgba(131, 131, 131, 1);
  132. font-size: 24rpx;
  133. }
  134. }
  135. }
  136. }
  137. .tabs-box {
  138. padding: 32rpx 0;
  139. margin-top: 66rpx;
  140. padding-right: 32rpx;
  141. background-color: rgba(22, 119, 255, 1);
  142. display: flex;
  143. align-items: center;
  144. justify-content: space-between;
  145. .tabs {
  146. width: 97%;
  147. }
  148. .more{
  149. padding-right: 12rpx;
  150. }
  151. }
  152. </style>