移动储能车V1版本
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

index.vue 6.3KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330
  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. <!-- <image class="parameter_list" :src="$t('sysifoURL')" mode=""></image> -->
  30. <!-- <image class="parameter_list" src="../../static/z16.png" mode=""></image> -->
  31. <view class="parameter_list">
  32. <view class="parameter_list1">
  33. <view class="parameter_list1a">
  34. <view class="parameter_list1a1">
  35. {{$t('configuration')}}
  36. </view>
  37. <view class="parameter_list1a1">
  38. {{$t('Batterycapacity')}}
  39. </view>
  40. <view class="parameter_list1a1">
  41. {{$t('Batterytype')}}
  42. </view>
  43. <view class="parameter_list1a1">
  44. {{$t('Communicationpower')}}
  45. </view>
  46. <view class="parameter_list1a1">
  47. {{$t('DCpower')}}
  48. </view>
  49. </view>
  50. <view class="parameter_list1b">
  51. <view class="parameter_list1a2">
  52. {{$t('configurationz')}}
  53. </view>
  54. <view class="parameter_list1a2">
  55. {{$t('Batterycapacityz')}}
  56. </view>
  57. <view class="parameter_list1a2">
  58. {{$t('Batterytypez')}}
  59. </view>
  60. <view class="parameter_list1a2">
  61. {{$t('Communicationpowerz')}}
  62. </view>
  63. <view class="parameter_list1a2">
  64. {{$t('DCpowerz')}}
  65. </view>
  66. </view>
  67. </view>
  68. <view class="parameter_list11">
  69. </view>
  70. <view class="parameter_list1">
  71. <view class="parameter_list1ab">
  72. <view class="parameter_list1a1">
  73. {{$t('Systemversion')}}
  74. </view>
  75. <view class="parameter_list1a1">
  76. {{$t('MCSVer')}}
  77. </view>
  78. <view class="parameter_list1a1">
  79. {{$t('CCUVer')}}
  80. </view>
  81. <view class="parameter_list1a1">
  82. {{$t('SN')}}
  83. </view>
  84. </view>
  85. <view class="parameter_list1b">
  86. <view class="parameter_list1a2">
  87. {{$t('Systemversionz')}}
  88. </view>
  89. <view class="parameter_list1a2">
  90. {{$t('MCSVerz')}}
  91. </view>
  92. <view class="parameter_list1a2">
  93. {{$t('CCUVerz')}}
  94. </view>
  95. <view class="parameter_list1a2">
  96. {{uidatasdata.DeviceID??'20100124123164'}}
  97. </view>
  98. </view>
  99. </view>
  100. </view>
  101. </view>
  102. <view class="parameter_bottom">
  103. <view style="display: flex;align-items: center;">
  104. <view class="parameter_bottom1" @click="onclick">
  105. <image src="../../static/home.png" mode=""></image><text class="parameter_bottom2">{{$t('ReturnModeSelection')}}</text>
  106. </view>
  107. <view class="parameter_bottom11" @click="onReturn">
  108. <image src="../../static/Return.png" mode=""></image><text class="parameter_bottom2">{{$t('Return')}}</text>
  109. </view>
  110. </view>
  111. </view>
  112. </view>
  113. </template>
  114. <!-- -->
  115. <script>
  116. import {
  117. getTime
  118. } from "../../utils/index.js"
  119. import {
  120. getfaultsList
  121. } from "../../api/api.js"
  122. import {
  123. mapState
  124. } from 'vuex';
  125. export default {
  126. data() {
  127. return {
  128. }
  129. },
  130. onLoad() {
  131. },
  132. computed: {
  133. // 使用 mapState 映射多个状态到组件的计算属性
  134. ...mapState(['formattedTime', 'status']),
  135. ...mapState({
  136. uidatasdata: state => state.uidatasdata
  137. }),
  138. backgroundStyle() {
  139. return {
  140. backgroundImage: `url(${this.$t('offline')})`,
  141. backgroundSize: '100% 100%'
  142. };
  143. }
  144. },
  145. beforeUnmount() {},
  146. methods: {
  147. onclick() {
  148. uni.redirectTo({
  149. url: '/pages/index/index'
  150. });
  151. },
  152. onReturn() {
  153. uni.redirectTo({
  154. url: '/pages/faultlist/index'
  155. });
  156. },
  157. }
  158. }
  159. </script>
  160. <style lang="scss" scoped>
  161. .content {
  162. width: 100%;
  163. height: 100vh;
  164. opacity: 1;
  165. background: linear-gradient(180deg, rgba(215, 230, 245, 0) 0%, rgba(196, 229, 255, 1) 100%);
  166. box-sizing: border-box;
  167. }
  168. .top {
  169. width: 100%;
  170. height: 100px;
  171. display: flex;
  172. align-items: center;
  173. justify-content: space-between;
  174. background-size: 100% 100%;
  175. background-repeat: no-repeat;
  176. background-color: #fff;
  177. padding: 0px 46px;
  178. box-sizing: border-box;
  179. }
  180. .top_logo{
  181. width:327px;
  182. height: 56px;
  183. }
  184. .tite{
  185. width: 325px;
  186. height: 50px;
  187. }
  188. .time{
  189. width:277px;
  190. text-align: right;
  191. }
  192. .time_top {
  193. font-size: 17px;
  194. }
  195. .time_bottom {
  196. display: flex;
  197. font-size: 17px;
  198. justify-content: space-between;
  199. }
  200. .time_bottom1 {
  201. display: flex;
  202. }
  203. .time_state {
  204. font-size: 17px;
  205. font-weight: 600;
  206. color: rgba(22, 68, 144, 1);
  207. }
  208. .time_state1 {
  209. font-size: 17px;
  210. font-weight: 600;
  211. color: rgba(217, 22, 22, 1);
  212. }
  213. .parameter {
  214. width: 100%;
  215. // height: 100%;
  216. display: flex;
  217. justify-content: space-around;
  218. box-sizing: border-box;
  219. margin-top: 35px;
  220. }
  221. .parameter_box {
  222. display: flex;
  223. flex-direction: column;
  224. align-items: center;
  225. }
  226. .parameter_list {
  227. width: 1235.95px;
  228. height: 495.85px;
  229. background-image: url('../../static/z16.png');
  230. background-size: 100% 100%;
  231. display: flex;
  232. align-items: center;
  233. }
  234. .parameter_list1{
  235. width: 50%;
  236. height: 100%;
  237. display: flex;
  238. margin-top: 60px;
  239. font-size: 24px;
  240. }
  241. .parameter_list1a{
  242. width: 300px;
  243. margin-left: 40px;
  244. }
  245. .parameter_list1ab{
  246. width: 280px;
  247. margin-left: 40px;
  248. }
  249. .parameter_list1a1{
  250. height: 90px;
  251. }
  252. .parameter_list1a2{
  253. height: 90px;
  254. }
  255. .parameter_list1b{
  256. font-size: 29px;
  257. font-weight: 600;
  258. }
  259. .parameter_list11{
  260. width: 1px;
  261. height: 85%;
  262. border-left: 1px solid #222;
  263. }
  264. .parameter_list2{
  265. width: 50%;
  266. height: 100%;
  267. }
  268. .parameter_bottom {
  269. display: flex;
  270. justify-content: space-between;
  271. margin-bottom: 10px;
  272. padding: 0px 16px;
  273. position: fixed;
  274. left: 10px;
  275. bottom: 20px;
  276. width: 100%;
  277. box-sizing: border-box;
  278. }
  279. .parameter_bottom1 {
  280. display: flex;
  281. align-items: center;
  282. image {
  283. width: 32px;
  284. height: 32px;
  285. display: flex;
  286. }
  287. }
  288. .parameter_bottom11 {
  289. display: flex;
  290. align-items: center;
  291. margin-left: 100px;
  292. image {
  293. width: 32px;
  294. height: 32px;
  295. display: flex;
  296. }
  297. }
  298. .parameter_bottom2 {
  299. font-size: 19.58px;
  300. font-weight: 400;
  301. color: rgba(0, 0, 0, 1);
  302. margin-left: 10px;
  303. }
  304. </style>