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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343
  1. <template>
  2. <view class="content">
  3. <view class="top">
  4. <image class="top_logo" :src="logo" mode="aspectFit"></image>
  5. <!-- <view class="tite">
  6. {{ $t('MainTitle') }}
  7. </view> -->
  8. <view class="time">
  9. <view class="time_top">
  10. {{formattedTime}}
  11. </view>
  12. <view class="time_bottom">
  13. <view>
  14. </view>
  15. <view class="time_bottom1">
  16. {{$t('status')}}
  17. <view class="time_state" v-if="status=='ok'">
  18. {{$t('online')}}
  19. </view>
  20. <view class="time_state1" v-else>
  21. {{$t('offline')}}
  22. </view>
  23. </view>
  24. </view>
  25. </view>
  26. </view>
  27. <view class="parameter">
  28. <!-- <image class="parameter_list" :src="$t('sysifoURL')" mode=""></image> -->
  29. <!-- <image class="parameter_list" src="../../static/z16.png" mode=""></image> -->
  30. <view class="parameter_list">
  31. <view class="parameter_list1">
  32. <view class="parameter_list1a">
  33. <view class="parameter_list1a1">
  34. {{$t('configuration')}}
  35. </view>
  36. <view class="parameter_list1a1">
  37. {{$t('Batterycapacity')}}
  38. </view>
  39. <view class="parameter_list1a1">
  40. {{$t('Batterytype')}}
  41. </view>
  42. <view class="parameter_list1a1">
  43. {{$t('Communicationpower')}}
  44. </view>
  45. <view class="parameter_list1a1">
  46. {{$t('DCpower')}}
  47. </view>
  48. </view>
  49. <view class="parameter_list1b">
  50. <view class="parameter_list1a2">
  51. {{$t('configurationz')}}
  52. </view>
  53. <view class="parameter_list1a2">
  54. {{$t('Batterycapacityz')}}
  55. </view>
  56. <view class="parameter_list1a2">
  57. {{$t('Batterytypez')}}
  58. </view>
  59. <view class="parameter_list1a2">
  60. {{$t('Communicationpowerz')}}
  61. </view>
  62. <view class="parameter_list1a2">
  63. {{$t('DCpowerz')}}
  64. </view>
  65. </view>
  66. </view>
  67. <view class="parameter_list11">
  68. </view>
  69. <view class="parameter_list1">
  70. <view class="parameter_list1ab">
  71. <view class="parameter_list1a1">
  72. {{$t('Systemversion')}}
  73. </view>
  74. <view class="parameter_list1a1">
  75. {{$t('MCSVer')}}
  76. </view>
  77. <view class="parameter_list1a1">
  78. {{$t('CCUVer')}}
  79. </view>
  80. <!-- <view class="parameter_list1a1">
  81. {{$t('SN')}}
  82. </view> -->
  83. </view>
  84. <view class="parameter_list1b">
  85. <view class="parameter_list1a2">
  86. {{$t('Systemversionz')}}
  87. </view>
  88. <view class="parameter_list1a2">
  89. {{$t('MCSVerz')}}
  90. </view>
  91. <view class="parameter_list1a2">
  92. {{$t('CCUVerz')}}
  93. </view>
  94. <!-- <view class="parameter_list1a2">
  95. {{uidatasdata.DeviceID??'LYBETr1980601'}}
  96. </view> -->
  97. </view>
  98. </view>
  99. </view>
  100. </view>
  101. <view class="parameter_bottom">
  102. <view style="display: flex;align-items: center;">
  103. <view class="parameter_bottom1" @click="onclick">
  104. <image src="../../static/home.png" mode=""></image><text class="parameter_bottom2">{{$t('ReturnModeSelection')}}</text>
  105. </view>
  106. <view class="parameter_bottom11" @click="onReturn">
  107. <image src="../../static/Return.png" mode=""></image><text class="parameter_bottom2">{{$t('Return')}}</text>
  108. </view>
  109. </view>
  110. </view>
  111. </view>
  112. </template>
  113. <!--2017-->
  114. <script>
  115. import {
  116. getTime
  117. } from "../../utils/index.js"
  118. import {
  119. getfaultsList
  120. } from "../../api/api.js"
  121. import {
  122. mapState
  123. } from 'vuex';
  124. export default {
  125. data() {
  126. return {
  127. logo:'../../static/logo/logo31.png'
  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: radial-gradient(40.46% 50% at 50.01912045889101% 50%, rgba(225, 238, 222, 1) 0%, rgba(196, 219, 193, 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: rgba(225, 238, 222, 1);
  177. padding-right:46px;
  178. padding:0px 46px;
  179. box-sizing: border-box;
  180. }
  181. .top_logo{
  182. // width:327px;
  183. width:260px;
  184. // width:100px;
  185. // width:88px;
  186. // height: 56px;
  187. // height: 88px;
  188. }
  189. .tite{
  190. // width:166px;
  191. // height: 50px;
  192. // font-size: 34px;
  193. // font-weight: 800;
  194. // background-image: url("../../static/tite1.png.png");
  195. // background-size: 100% 100%;
  196. width:240px;
  197. height: 50px;
  198. font-size: 80rpx;
  199. font-weight: 600;
  200. margin-left:90px;
  201. }
  202. .time{
  203. width:277px;
  204. text-align: right;
  205. }
  206. .time_top {
  207. font-size: 17px;
  208. }
  209. .time_bottom {
  210. display: flex;
  211. font-size: 17px;
  212. justify-content: space-between;
  213. }
  214. .time_bottom1 {
  215. display: flex;
  216. }
  217. .time_state {
  218. font-size: 17px;
  219. font-weight: 600;
  220. color: rgba(22, 68, 144, 1);
  221. }
  222. .time_state1 {
  223. font-size: 17px;
  224. font-weight: 600;
  225. color: rgba(217, 22, 22, 1);
  226. }
  227. .parameter {
  228. width: 100%;
  229. // height: 100%;
  230. display: flex;
  231. justify-content: space-around;
  232. box-sizing: border-box;
  233. margin-top: 35px;
  234. }
  235. .parameter_box {
  236. display: flex;
  237. flex-direction: column;
  238. align-items: center;
  239. }
  240. .parameter_list {
  241. width: 1235.95px;
  242. height: 495.85px;
  243. background-image: url('../../static/z16.png');
  244. background-size: 100% 100%;
  245. display: flex;
  246. align-items: center;
  247. }
  248. .parameter_list1{
  249. width: 50%;
  250. height: 100%;
  251. display: flex;
  252. margin-top: 60px;
  253. font-size: 24px;
  254. }
  255. .parameter_list1a{
  256. width: 300px;
  257. margin-left: 40px;
  258. }
  259. .parameter_list1ab{
  260. width: 280px;
  261. margin-left: 40px;
  262. }
  263. .parameter_list1a1{
  264. height: 90px;
  265. }
  266. .parameter_list1a2{
  267. height: 90px;
  268. }
  269. .parameter_list1b{
  270. font-size: 29px;
  271. font-weight: 600;
  272. }
  273. .parameter_list11{
  274. width: 1px;
  275. height: 85%;
  276. border-left: 1px solid #222;
  277. }
  278. .parameter_list2{
  279. width: 50%;
  280. height: 100%;
  281. }
  282. .parameter_bottom {
  283. display: flex;
  284. justify-content: space-between;
  285. margin-bottom: 10px;
  286. padding: 0px 16px;
  287. position: fixed;
  288. left: 10px;
  289. bottom: 20px;
  290. width: 100%;
  291. box-sizing: border-box;
  292. }
  293. .parameter_bottom1 {
  294. display: flex;
  295. align-items: center;
  296. image {
  297. width: 32px;
  298. height: 32px;
  299. display: flex;
  300. }
  301. }
  302. .parameter_bottom11 {
  303. display: flex;
  304. align-items: center;
  305. margin-left: 100px;
  306. image {
  307. width: 32px;
  308. height: 32px;
  309. display: flex;
  310. }
  311. }
  312. .parameter_bottom2 {
  313. font-size: 19.58px;
  314. font-weight: 400;
  315. color: rgba(0, 0, 0, 1);
  316. margin-left: 10px;
  317. }
  318. </style>