deviceDetail.vue 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118
  1. <template>
  2. <view class="wrapper flex justify-between padding-lr-lg">
  3. <view class="device-items">
  4. <view class="device-item">
  5. <text class="text-yellow">Uab</text>
  6. <text>12</text>
  7. <text>V</text>
  8. </view>
  9. <view class="device-item">
  10. <text class="text-green">Ubc</text>
  11. <text>12</text>
  12. <text>V</text>
  13. </view>
  14. <view class="device-item">
  15. <text class="text-red">Uca</text>
  16. <text>12</text>
  17. <text>V</text>
  18. </view>
  19. <view class="device-item">
  20. <text class="text-red">F</text>
  21. <text>12</text>
  22. <text>V</text>
  23. </view>
  24. </view>
  25. <view class="device-items">
  26. <view class="device-item">
  27. <text class="text-yellow">La</text>
  28. <text>12</text>
  29. <text>A</text>
  30. </view>
  31. <view class="device-item">
  32. <text class="text-green">Lb</text>
  33. <text>12</text>
  34. <text>A</text>
  35. </view>
  36. <view class="device-item">
  37. <text class="text-red">Lc</text>
  38. <text>12</text>
  39. <text>A</text>
  40. </view>
  41. <view class="device-item">
  42. <text class="text-yellow">P</text>
  43. <text>12</text>
  44. <text>kW</text>
  45. </view>
  46. <view class="device-item">
  47. <text class="text-green">Q</text>
  48. <text>12</text>
  49. <text>kvar</text>
  50. </view>
  51. <view class="device-item">
  52. <text class="text-red">cos</text>
  53. <text>12</text>
  54. <text>V</text>
  55. </view>
  56. </view>
  57. </view>
  58. </template>
  59. <script>
  60. export default {
  61. data() {
  62. return {
  63. }
  64. },
  65. onLoad() {
  66. uni.setNavigationBarColor({
  67. frontColor: "#ffffff", //文字颜色
  68. backgroundColor: "#000033", //底部背景色
  69. })
  70. },
  71. methods: {
  72. }
  73. }
  74. </script>
  75. <style lang="scss">
  76. page {
  77. height: 100% !important
  78. }
  79. .wrapper {
  80. width: 100%;
  81. height: 100%;
  82. background-color: #000033;
  83. background-image: url(../../../static/device-bg.png);
  84. background-position: center 60%;
  85. background-size: cover;
  86. position: relative;
  87. .device-items {
  88. font-family: FANDOLFANG-REGULAR;
  89. margin-top: 150rpx;
  90. color: #fff;
  91. .device-item text:first-child {
  92. width: 50rpx;
  93. display: inline-block;
  94. font-size: 28rpx;
  95. }
  96. .device-item text:nth-child(2) {
  97. display: inline-block;
  98. width: 100rpx;
  99. margin: 0 15rpx 30rpx 15rpx;
  100. height: 42rpx;
  101. background: #FFFFCC;
  102. font-size: 28rpx;
  103. text-align: left;
  104. padding-left: 10rpx;
  105. line-height: 42rpx;
  106. color: #333;
  107. }
  108. }
  109. .device-item:nth-child(3) {
  110. margin-bottom: 94rpx;
  111. }
  112. }
  113. </style>