移动储能车V1版本
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

index.vue 4.4KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242
  1. <template>
  2. <view class="content">
  3. <view class="top">
  4. <image class="top_logo" src="../../static/logo.png" mode=""></image>
  5. <image class="tite" src="../../static/tite.png" mode=""></image>
  6. <view class="time">
  7. <view class="time_top">
  8. {{formattedTime}}
  9. </view>
  10. <view class="time_bottom">
  11. <view>
  12. </view>
  13. <view class="time_bottom1">
  14. 连接状态:
  15. <view class="time_state" v-if="status=='ok'">
  16. 在线
  17. </view>
  18. <view class="time_state1" v-else>
  19. 离线
  20. </view>
  21. </view>
  22. </view>
  23. </view>
  24. </view>
  25. <view class="parameter">
  26. <view class="parameter_list">
  27. <view class="parameter_box" @click="onreturn">
  28. <view class="parameter_list1">
  29. <image src="../../static/faultlist.png" mode=""></image>
  30. </view>
  31. <view class="fault_txt">
  32. 故障页面
  33. </view>
  34. </view>
  35. <view class="parameter_box">
  36. <view class="parameter_list1">
  37. <!-- <image src="../../static/faultlist.png" mode=""></image> -->
  38. </view>
  39. <view class="fault_txt">
  40. <!-- 故障页面 -->
  41. </view>
  42. </view>
  43. <view class="parameter_box">
  44. <view class="parameter_list1">
  45. <!-- <image src="../../static/faultlist.png" mode=""></image> -->
  46. </view>
  47. <view class="fault_txt">
  48. <!-- 故障页面 -->
  49. </view>
  50. </view>
  51. <view class="parameter_box">
  52. <view class="parameter_list1">
  53. <!-- <image src="../../static/faultlist.png" mode=""></image> -->
  54. </view>
  55. <view class="fault_txt">
  56. <!-- 故障页面 -->
  57. </view>
  58. </view>
  59. </view>
  60. </view>
  61. </view>
  62. </template>
  63. <!-- -->
  64. <script>
  65. import {
  66. getTime
  67. } from "../../utils/index.js"
  68. import {
  69. getfaultsList
  70. } from "../../api/api.js"
  71. import {
  72. mapState
  73. } from 'vuex';
  74. export default {
  75. data() {
  76. return {
  77. }
  78. },
  79. onLoad() {
  80. },
  81. computed: {
  82. // 使用 mapState 映射多个状态到组件的计算属性
  83. ...mapState(['formattedTime', 'status']),
  84. },
  85. beforeUnmount() {},
  86. methods: {
  87. // 返回首页
  88. onreturn() {
  89. uni.redirectTo({
  90. url: '/pages/details/index'
  91. });
  92. },
  93. }
  94. }
  95. </script>
  96. <style lang="scss" scoped>
  97. .content {
  98. width: 100%;
  99. height: 100vh;
  100. opacity: 1;
  101. background: linear-gradient(180deg, rgba(215, 230, 245, 0) 0%, rgba(196, 229, 255, 1) 100%);
  102. box-sizing: border-box;
  103. }
  104. .top {
  105. width: 100%;
  106. height: 100px;
  107. display: flex;
  108. align-items: center;
  109. justify-content: space-between;
  110. background-size: 100% 100%;
  111. background-repeat: no-repeat;
  112. background-color: #fff;
  113. padding: 0px 46px;
  114. box-sizing: border-box;
  115. }
  116. .top_logo {
  117. width: 426px;
  118. height: 68px;
  119. }
  120. .tite {
  121. width: 277px;
  122. height: 48px;
  123. }
  124. .time {
  125. text-align: right;
  126. }
  127. .time_top {
  128. font-size: 17px;
  129. }
  130. .time_bottom {
  131. display: flex;
  132. font-size: 17px;
  133. justify-content: space-between;
  134. }
  135. .time_bottom1 {
  136. display: flex;
  137. }
  138. .time_state {
  139. font-size: 17px;
  140. font-weight: 600;
  141. color: rgba(22, 68, 144, 1);
  142. }
  143. .time_state1 {
  144. font-size: 17px;
  145. font-weight: 600;
  146. color: rgba(217, 22, 22, 1);
  147. }
  148. .parameter {
  149. width: 100%;
  150. height: 100%;
  151. margin-top: 113px;
  152. display: flex;
  153. /* align-items: center; */
  154. justify-content: space-around;
  155. box-sizing: border-box;
  156. }
  157. .parameter_box {
  158. display: flex;
  159. flex-direction: column;
  160. align-items: center;
  161. }
  162. .parameter_list {
  163. width: 100%;
  164. padding: 0px 40px;
  165. display: flex;
  166. justify-content: space-around;
  167. }
  168. .parameter_list1 {
  169. width: 234.46px;
  170. height: 336.76px;
  171. background-image: url("../../static/faults.png");
  172. background-size: 100% 100%;
  173. display: flex;
  174. align-items: center;
  175. justify-content: center;
  176. image {
  177. width: 118.46px;
  178. height: 118.46px;
  179. }
  180. }
  181. .fault_txt {
  182. width: 96.92px;
  183. height: 27.9px;
  184. opacity: 1;
  185. /** 文本1 */
  186. font-size: 23.5px;
  187. font-weight: 400;
  188. letter-spacing: 0px;
  189. line-height: 32.24px;
  190. color: rgba(0, 0, 0, 1);
  191. text-align: left;
  192. vertical-align: top;
  193. margin-top: 40px;
  194. }
  195. .fault_image {
  196. width: 234.46px;
  197. height: 336.76px;
  198. }
  199. .parameter_xian {
  200. width: 100%;
  201. height: 55px;
  202. background: linear-gradient(180deg, rgba(30, 131, 189, 1) 0%, rgba(69, 168, 230, 0.92) 100%);
  203. box-shadow: inset 0px 0px 9.79px rgba(0, 0, 0, 0.1);
  204. display: flex;
  205. align-items: center;
  206. /* justify-content: space-around; */
  207. font-size: 28px;
  208. font-weight: 600;
  209. padding: 0px 20px;
  210. box-sizing: border-box;
  211. .parameter_xian1 {
  212. width: 100px;
  213. }
  214. }
  215. </style>