移动储能车V1版本
Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334
  1. <template>
  2. <view class="content">
  3. <view class="top">
  4. <image class="top_logo" src="../../static/logo1.png" mode=""></image>
  5. <image class="tite" src="../../static/tite1.png" 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??'LYBETRO000101'}}
  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:166px;
  186. height: 50px;
  187. font-size: 34px;
  188. font-weight: 800;
  189. background-image: url("../../static/tite1.png.png");
  190. background-size: 100% 100%;
  191. }
  192. .time{
  193. width:277px;
  194. text-align: right;
  195. }
  196. .time_top {
  197. font-size: 17px;
  198. }
  199. .time_bottom {
  200. display: flex;
  201. font-size: 17px;
  202. justify-content: space-between;
  203. }
  204. .time_bottom1 {
  205. display: flex;
  206. }
  207. .time_state {
  208. font-size: 17px;
  209. font-weight: 600;
  210. color: rgba(22, 68, 144, 1);
  211. }
  212. .time_state1 {
  213. font-size: 17px;
  214. font-weight: 600;
  215. color: rgba(217, 22, 22, 1);
  216. }
  217. .parameter {
  218. width: 100%;
  219. // height: 100%;
  220. display: flex;
  221. justify-content: space-around;
  222. box-sizing: border-box;
  223. margin-top: 35px;
  224. }
  225. .parameter_box {
  226. display: flex;
  227. flex-direction: column;
  228. align-items: center;
  229. }
  230. .parameter_list {
  231. width: 1235.95px;
  232. height: 495.85px;
  233. background-image: url('../../static/z16.png');
  234. background-size: 100% 100%;
  235. display: flex;
  236. align-items: center;
  237. }
  238. .parameter_list1{
  239. width: 50%;
  240. height: 100%;
  241. display: flex;
  242. margin-top: 60px;
  243. font-size: 24px;
  244. }
  245. .parameter_list1a{
  246. width: 300px;
  247. margin-left: 40px;
  248. }
  249. .parameter_list1ab{
  250. width: 280px;
  251. margin-left: 40px;
  252. }
  253. .parameter_list1a1{
  254. height: 90px;
  255. }
  256. .parameter_list1a2{
  257. height: 90px;
  258. }
  259. .parameter_list1b{
  260. font-size: 29px;
  261. font-weight: 600;
  262. }
  263. .parameter_list11{
  264. width: 1px;
  265. height: 85%;
  266. border-left: 1px solid #222;
  267. }
  268. .parameter_list2{
  269. width: 50%;
  270. height: 100%;
  271. }
  272. .parameter_bottom {
  273. display: flex;
  274. justify-content: space-between;
  275. margin-bottom: 10px;
  276. padding: 0px 16px;
  277. position: fixed;
  278. left: 10px;
  279. bottom: 20px;
  280. width: 100%;
  281. box-sizing: border-box;
  282. }
  283. .parameter_bottom1 {
  284. display: flex;
  285. align-items: center;
  286. image {
  287. width: 32px;
  288. height: 32px;
  289. display: flex;
  290. }
  291. }
  292. .parameter_bottom11 {
  293. display: flex;
  294. align-items: center;
  295. margin-left: 100px;
  296. image {
  297. width: 32px;
  298. height: 32px;
  299. display: flex;
  300. }
  301. }
  302. .parameter_bottom2 {
  303. font-size: 19.58px;
  304. font-weight: 400;
  305. color: rgba(0, 0, 0, 1);
  306. margin-left: 10px;
  307. }
  308. </style>