deviceDetail.vue 2.5 KB

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