移动储能车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.

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304
  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="$t('MainTitle')" mode=""></image>
  6. <!-- <view class="tite">
  7. {{ $t('MainTitle') }}
  8. </view> -->
  9. <view class="time">
  10. <view class="time_top">
  11. {{formattedTime}}
  12. </view>
  13. <view class="time_bottom">
  14. <view>
  15. </view>
  16. <view class="time_bottom1">
  17. {{$t('status')}}
  18. <view class="time_state" v-if="status=='ok'">
  19. {{$t('online')}}
  20. </view>
  21. <view class="time_state1" v-else>
  22. {{$t('offline')}}
  23. </view>
  24. </view>
  25. </view>
  26. </view>
  27. </view>
  28. <view class="parameter">
  29. <view class="parameter_list">
  30. <view class="parameter_box" @click="onreturn('故障')">
  31. <view class="parameter_list1">
  32. <image src="../../static/faultlist.png" mode=""></image>
  33. </view>
  34. <view class="fault_txt">
  35. {{$t('FaultRec')}}
  36. </view>
  37. </view>
  38. <!-- <view class="parameter_box" @click="onreturn('告警')">
  39. <view class="parameter_list1">
  40. <image src="../../static/fault.png" mode=""></image>
  41. </view>
  42. <view class="fault_txt">
  43. {{$t('WarningRec')}}
  44. </view>
  45. </view> -->
  46. <view class="parameter_box" @click="onreturn('事件')">
  47. <view class="parameter_list1">
  48. <image src="../../static/event.png" mode=""></image>
  49. </view>
  50. <view class="fault_txt">
  51. {{$t('RunningRec')}}
  52. </view>
  53. </view>
  54. <view class="parameter_box" @click="onreturn('基础')">
  55. <view class="parameter_list1">
  56. <image src="../../static/Basics.png" mode=""></image>
  57. </view>
  58. <view class="fault_txt">
  59. {{$t('SYSIfo')}}
  60. </view>
  61. </view>
  62. </view>
  63. </view>
  64. <view class="parameter_bottom">
  65. <view style="display: flex;align-items: center;">
  66. <view class="parameter_bottom1" @click="onclick">
  67. <image src="../../static/home.png" mode=""></image><text class="parameter_bottom2">{{$t('ReturnModeSelection')}}</text>
  68. </view>
  69. </view>
  70. </view>
  71. </view>
  72. </template>
  73. <!-- -->
  74. <script>
  75. import {
  76. getTime
  77. } from "../../utils/index.js"
  78. import {
  79. getfaultsList
  80. } from "../../api/api.js"
  81. import {
  82. mapState
  83. } from 'vuex';
  84. export default {
  85. data() {
  86. return {
  87. }
  88. },
  89. onLoad() {
  90. },
  91. computed: {
  92. // 使用 mapState 映射多个状态到组件的计算属性
  93. ...mapState(['formattedTime', 'status']),
  94. },
  95. beforeUnmount() {},
  96. methods: {
  97. // 返回首页
  98. onreturn(e) {
  99. console.log(e);
  100. this.$store.commit('getevent', e);
  101. if(e=="基础"){
  102. uni.redirectTo({
  103. url: '/pages/SYSifo/index'
  104. });
  105. }else{
  106. uni.redirectTo({
  107. url: '/pages/details/index'
  108. });
  109. }
  110. },
  111. onclick() {
  112. uni.redirectTo({
  113. url: '/pages/index/index'
  114. });
  115. },
  116. }
  117. }
  118. </script>
  119. <style lang="scss" scoped>
  120. .content {
  121. width: 100%;
  122. height: 100vh;
  123. opacity: 1;
  124. background: linear-gradient(180deg, rgba(215, 230, 245, 0) 0%, rgba(196, 229, 255, 1) 100%);
  125. box-sizing: border-box;
  126. }
  127. .top {
  128. width: 100%;
  129. height: 100px;
  130. display: flex;
  131. align-items: center;
  132. justify-content: space-between;
  133. background-size: 100% 100%;
  134. background-repeat: no-repeat;
  135. background-color: #fff;
  136. padding: 0px 46px;
  137. box-sizing: border-box;
  138. }
  139. .top_logo{
  140. width:327px;
  141. height: 56px;
  142. }
  143. .tite{
  144. width: 325px;
  145. height: 50px;
  146. }
  147. .time{
  148. width:277px;
  149. text-align: right;
  150. }
  151. .time_top {
  152. font-size: 17px;
  153. }
  154. .time_bottom {
  155. display: flex;
  156. font-size: 17px;
  157. justify-content: space-between;
  158. }
  159. .time_bottom1 {
  160. display: flex;
  161. }
  162. .time_state {
  163. font-size: 17px;
  164. font-weight: 600;
  165. color: rgba(22, 68, 144, 1);
  166. }
  167. .time_state1 {
  168. font-size: 17px;
  169. font-weight: 600;
  170. color: rgba(217, 22, 22, 1);
  171. }
  172. .parameter {
  173. width: 100%;
  174. // height: 100%;
  175. margin-top: 113px;
  176. display: flex;
  177. /* align-items: center; */
  178. justify-content: space-around;
  179. box-sizing: border-box;
  180. }
  181. .parameter_box {
  182. display: flex;
  183. flex-direction: column;
  184. align-items: center;
  185. }
  186. .parameter_list {
  187. width: 100%;
  188. padding: 0px 40px;
  189. display: flex;
  190. justify-content: space-around;
  191. }
  192. .parameter_list1 {
  193. width: 234.46px;
  194. height: 336.76px;
  195. background-image: url("../../static/faults.png");
  196. background-size: 100% 100%;
  197. display: flex;
  198. align-items: center;
  199. justify-content: center;
  200. image {
  201. width: 118.46px;
  202. height: 118.46px;
  203. }
  204. }
  205. .fault_txt {
  206. height: 27.9px;
  207. opacity: 1;
  208. /** 文本1 */
  209. font-size: 23.5px;
  210. font-weight: 400;
  211. letter-spacing: 0px;
  212. line-height: 32.24px;
  213. color: rgba(0, 0, 0, 1);
  214. text-align: left;
  215. vertical-align: top;
  216. margin-top: 40px;
  217. }
  218. .fault_image {
  219. width: 234.46px;
  220. height: 336.76px;
  221. }
  222. .parameter_xian {
  223. width: 100%;
  224. height: 55px;
  225. background: linear-gradient(180deg, rgba(30, 131, 189, 1) 0%, rgba(69, 168, 230, 0.92) 100%);
  226. box-shadow: inset 0px 0px 9.79px rgba(0, 0, 0, 0.1);
  227. display: flex;
  228. align-items: center;
  229. /* justify-content: space-around; */
  230. font-size: 28px;
  231. font-weight: 600;
  232. padding: 0px 20px;
  233. box-sizing: border-box;
  234. .parameter_xian1 {
  235. width: 100px;
  236. }
  237. }
  238. .parameter_bottom {
  239. display: flex;
  240. justify-content: space-between;
  241. margin-bottom: 10px;
  242. padding: 0px 16px;
  243. position: fixed;
  244. left: 10px;
  245. bottom: 20px;
  246. width: 100%;
  247. box-sizing: border-box;
  248. }
  249. .parameter_bottom1 {
  250. display: flex;
  251. align-items: center;
  252. image {
  253. width: 32px;
  254. height: 32px;
  255. display: flex;
  256. }
  257. }
  258. .parameter_bottom11 {
  259. display: flex;
  260. align-items: center;
  261. margin-left: 100px;
  262. image {
  263. width: 32px;
  264. height: 32px;
  265. display: flex;
  266. }
  267. }
  268. .parameter_bottom2 {
  269. font-size: 19.58px;
  270. font-weight: 400;
  271. color: rgba(0, 0, 0, 1);
  272. margin-left: 10px;
  273. }
  274. </style>