| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343 |
- <template>
- <view class="content">
- <view class="top">
- <image class="top_logo" :src="logo" mode="aspectFit"></image>
- <!-- <view class="tite">
- {{ $t('MainTitle') }}
- </view> -->
- <view class="time">
- <view class="time_top">
- {{formattedTime}}
- </view>
- <view class="time_bottom">
- <view>
-
- </view>
- <view class="time_bottom1">
- {{$t('status')}}
- <view class="time_state" v-if="status=='ok'">
- {{$t('online')}}
- </view>
- <view class="time_state1" v-else>
- {{$t('offline')}}
- </view>
- </view>
-
- </view>
-
- </view>
- </view>
- <view class="parameter">
-
- <!-- <image class="parameter_list" :src="$t('sysifoURL')" mode=""></image> -->
- <!-- <image class="parameter_list" src="../../static/z16.png" mode=""></image> -->
- <view class="parameter_list">
- <view class="parameter_list1">
- <view class="parameter_list1a">
- <view class="parameter_list1a1">
- {{$t('configuration')}}
- </view>
- <view class="parameter_list1a1">
- {{$t('Batterycapacity')}}
- </view>
- <view class="parameter_list1a1">
- {{$t('Batterytype')}}
- </view>
- <view class="parameter_list1a1">
- {{$t('Communicationpower')}}
- </view>
- <view class="parameter_list1a1">
- {{$t('DCpower')}}
- </view>
- </view>
- <view class="parameter_list1b">
- <view class="parameter_list1a2">
- {{$t('configurationz')}}
- </view>
- <view class="parameter_list1a2">
- {{$t('Batterycapacityz')}}
- </view>
- <view class="parameter_list1a2">
- {{$t('Batterytypez')}}
- </view>
- <view class="parameter_list1a2">
- {{$t('Communicationpowerz')}}
- </view>
- <view class="parameter_list1a2">
- {{$t('DCpowerz')}}
- </view>
- </view>
- </view>
- <view class="parameter_list11">
-
- </view>
- <view class="parameter_list1">
- <view class="parameter_list1ab">
- <view class="parameter_list1a1">
- {{$t('Systemversion')}}
- </view>
- <view class="parameter_list1a1">
- {{$t('MCSVer')}}
- </view>
- <view class="parameter_list1a1">
- {{$t('CCUVer')}}
- </view>
- <!-- <view class="parameter_list1a1">
- {{$t('SN')}}
- </view> -->
-
- </view>
- <view class="parameter_list1b">
- <view class="parameter_list1a2">
- {{$t('Systemversionz')}}
- </view>
- <view class="parameter_list1a2">
- {{$t('MCSVerz')}}
- </view>
- <view class="parameter_list1a2">
- {{$t('CCUVerz')}}
- </view>
- <!-- <view class="parameter_list1a2">
- {{uidatasdata.DeviceID??'LYBETr1980601'}}
- </view> -->
-
- </view>
- </view>
- </view>
- </view>
- <view class="parameter_bottom">
- <view style="display: flex;align-items: center;">
- <view class="parameter_bottom1" @click="onclick">
- <image src="../../static/home.png" mode=""></image><text class="parameter_bottom2">{{$t('ReturnModeSelection')}}</text>
-
- </view>
- <view class="parameter_bottom11" @click="onReturn">
- <image src="../../static/Return.png" mode=""></image><text class="parameter_bottom2">{{$t('Return')}}</text>
- </view>
- </view>
-
- </view>
- </view>
- </template>
- <!--2017-->
- <script>
- import {
- getTime
- } from "../../utils/index.js"
- import {
- getfaultsList
- } from "../../api/api.js"
- import {
- mapState
- } from 'vuex';
- export default {
- data() {
- return {
- logo:'../../static/logo/logo31.png'
- }
- },
- onLoad() {
-
- },
- computed: {
- // 使用 mapState 映射多个状态到组件的计算属性
- ...mapState(['formattedTime', 'status']),
- ...mapState({
- uidatasdata: state => state.uidatasdata
- }),
- backgroundStyle() {
- return {
- backgroundImage: `url(${this.$t('offline')})`,
- backgroundSize: '100% 100%'
- };
- }
- },
- beforeUnmount() {},
- methods: {
- onclick() {
- uni.redirectTo({
- url: '/pages/index/index'
- });
- },
- onReturn() {
- uni.redirectTo({
- url: '/pages/faultlist/index'
- });
- },
- }
- }
- </script>
-
- <style lang="scss" scoped>
- .content {
- width: 100%;
- height: 100vh;
- opacity: 1;
- background: radial-gradient(40.46% 50% at 50.01912045889101% 50%, rgba(225, 238, 222, 1) 0%, rgba(196, 219, 193, 1) 100%);
- box-sizing: border-box;
- }
-
- .top {
- width: 100%;
- height: 100px;
- display: flex;
- align-items: center;
- justify-content: space-between;
- background-size: 100% 100%;
- background-repeat: no-repeat;
- background: rgba(225, 238, 222, 1);
- padding-right:46px;
- padding:0px 46px;
- box-sizing: border-box;
- }
-
- .top_logo{
- // width:327px;
- width:260px;
- // width:100px;
- // width:88px;
- // height: 56px;
- // height: 88px;
- }
- .tite{
- // width:166px;
- // height: 50px;
- // font-size: 34px;
- // font-weight: 800;
- // background-image: url("../../static/tite1.png.png");
- // background-size: 100% 100%;
- width:240px;
- height: 50px;
- font-size: 80rpx;
- font-weight: 600;
- margin-left:90px;
- }
- .time{
- width:277px;
- text-align: right;
- }
-
- .time_top {
- font-size: 17px;
- }
-
- .time_bottom {
- display: flex;
- font-size: 17px;
- justify-content: space-between;
- }
-
- .time_bottom1 {
- display: flex;
- }
-
- .time_state {
- font-size: 17px;
- font-weight: 600;
- color: rgba(22, 68, 144, 1);
- }
-
- .time_state1 {
- font-size: 17px;
- font-weight: 600;
- color: rgba(217, 22, 22, 1);
- }
-
- .parameter {
- width: 100%;
- // height: 100%;
- display: flex;
- justify-content: space-around;
- box-sizing: border-box;
- margin-top: 35px;
- }
-
- .parameter_box {
- display: flex;
- flex-direction: column;
- align-items: center;
- }
-
- .parameter_list {
- width: 1235.95px;
- height: 495.85px;
- background-image: url('../../static/z16.png');
- background-size: 100% 100%;
- display: flex;
- align-items: center;
- }
- .parameter_list1{
- width: 50%;
- height: 100%;
- display: flex;
- margin-top: 60px;
- font-size: 24px;
- }
- .parameter_list1a{
- width: 300px;
- margin-left: 40px;
- }
- .parameter_list1ab{
- width: 280px;
- margin-left: 40px;
- }
- .parameter_list1a1{
- height: 90px;
- }
- .parameter_list1a2{
-
- height: 90px;
- }
- .parameter_list1b{
- font-size: 29px;
- font-weight: 600;
- }
- .parameter_list11{
- width: 1px;
- height: 85%;
- border-left: 1px solid #222;
- }
- .parameter_list2{
- width: 50%;
- height: 100%;
-
- }
- .parameter_bottom {
- display: flex;
- justify-content: space-between;
- margin-bottom: 10px;
- padding: 0px 16px;
- position: fixed;
- left: 10px;
- bottom: 20px;
- width: 100%;
- box-sizing: border-box;
- }
- .parameter_bottom1 {
- display: flex;
- align-items: center;
-
- image {
- width: 32px;
- height: 32px;
- display: flex;
- }
-
- }
- .parameter_bottom11 {
- display: flex;
- align-items: center;
- margin-left: 100px;
- image {
- width: 32px;
- height: 32px;
- display: flex;
- }
- }
- .parameter_bottom2 {
- font-size: 19.58px;
- font-weight: 400;
- color: rgba(0, 0, 0, 1);
- margin-left: 10px;
- }
- </style>
|