|
|
@@ -1,11 +1,11 @@
|
|
|
<template>
|
|
|
<view class="container">
|
|
|
<view style="height: 20px;line-height:15px;padding: 2px;text-align: center;position: fixed;right: -5px;top:30px;z-index: 9999;background: rgb(243,157,116);color: white;border-radius: 5px;font-size: 10px;width: 120rpx;" @click="goBack">
|
|
|
- 断开连接
|
|
|
+ {{$t('charge.break')}}
|
|
|
</view>
|
|
|
|
|
|
<view style="height: 20px;line-height:15px;padding: 2px;text-align: center;position: fixed;right: -5px;top:120px;z-index: 9999;background: #1A87FF;color: white;border-radius: 5px;font-size: 10px;width: 120rpx;" @click="modifyPwd">
|
|
|
- 修改密码
|
|
|
+ {{$t('charge.modifypwd')}}
|
|
|
</view>
|
|
|
<view style=";position: relative;height: 250px;margin-top:2vh;">
|
|
|
<view class="dtop">
|
|
|
@@ -35,19 +35,19 @@
|
|
|
<view class="p0" st="">{$device['sn']}</view>
|
|
|
<view class="p1">
|
|
|
<view v-if="portDetail.portStatus == 2">
|
|
|
- 充电中
|
|
|
+ {{$t('charge.charging')}}
|
|
|
</view>
|
|
|
|
|
|
<view v-if="portDetail.portStatus == 6">
|
|
|
- 已预约
|
|
|
+ {{$t('charge.planed')}}
|
|
|
</view>
|
|
|
|
|
|
<view v-if="portDetail.portStatus == 2">
|
|
|
- 已连接
|
|
|
+ {{$t('charge.connected')}}
|
|
|
</view>
|
|
|
|
|
|
<view v-else>
|
|
|
- 未充电
|
|
|
+ {{$t('charge.nocharge')}}
|
|
|
</view>
|
|
|
|
|
|
</view>
|
|
|
@@ -61,36 +61,36 @@
|
|
|
<view class="ditem">
|
|
|
<image class="itemimg" src="/static/images/new/tmp.png"/>
|
|
|
<view class="item-value">{{portDetail.dev_temper}}℃</view>
|
|
|
- <span class="item-text">设备温度</span>
|
|
|
+ <span class="item-text">{{$t('charge.devtemper')}}</span>
|
|
|
</view>
|
|
|
<view class="ditem">
|
|
|
<image class="itemimg" src="/static/images/new/dianya.png"/>
|
|
|
<view class="item-value">{{ portDetail.voltage }}V</view>
|
|
|
- <span class="item-text">设备电压</span>
|
|
|
+ <span class="item-text">{{$t('charge.voltage')}}</span>
|
|
|
</view>
|
|
|
<view class="ditem">
|
|
|
<image class="itemimg" src="/static/images/new/dianliu.png"/>
|
|
|
<view class="item-value" v-if="portDetail.voltage == 0">0A</view>
|
|
|
<view class="item-value" v-else>{{portDetail.POWER/portDetail.voltage}}A</view>
|
|
|
- <span class="item-text">设备电流</span>
|
|
|
+ <span class="item-text">{{$t('charge.current')}}</span>
|
|
|
</view>
|
|
|
|
|
|
<view class="ditem">
|
|
|
<image class="itemimg" src="/static/images/new/shjian.png"/>
|
|
|
<view class="item-value">{{ portDetail.time }}分钟</view>
|
|
|
- <span class="item-text">已冲时间</span>
|
|
|
+ <span class="item-text">{{$t('charge.chargetime')}}</span>
|
|
|
</view>
|
|
|
|
|
|
<view class="ditem">
|
|
|
<image class="itemimg" src="/static/images/new/gonglv.png"/>
|
|
|
<view class="item-value">{{ portDetail.power }}W</view>
|
|
|
- <span class="item-text">充电功率</span>
|
|
|
+ <span class="item-text">{{$t('charge.power')}}</span>
|
|
|
</view>
|
|
|
|
|
|
<view class="ditem">
|
|
|
<image class="itemimg" src="/static/images/new/dianliang.png"/>
|
|
|
<view class="item-value">{{ portDetail.elec }} 度</view>
|
|
|
- <span class="item-text">已冲电量</span>
|
|
|
+ <span class="item-text">{{$t('charge.elec')}}</span>
|
|
|
</view>
|
|
|
|
|
|
</view>
|
|
|
@@ -98,13 +98,13 @@
|
|
|
<view class="dbtns">
|
|
|
<view class="start" @click="toPage">
|
|
|
<image style="width:25px;height: 25px;margin-right: 5px;" src="/static/images/new/start.png"/>
|
|
|
- <span>启动充电</span>
|
|
|
+ <span>{{$t('charge.startcharge')}}</span>
|
|
|
</view>
|
|
|
|
|
|
|
|
|
<view class="get" @click="getInfo">
|
|
|
<image style="width:25px;height: 25px;margin-right: 5px;" src="/static/images/new/get.png"/>
|
|
|
- <span>获取状态</span>
|
|
|
+ <span>{{$t('charge.getinfo')}}</span>
|
|
|
</view>
|
|
|
|
|
|
</view>
|
|
|
@@ -112,155 +112,19 @@
|
|
|
<view class="dtip">
|
|
|
<view style="margin:10px 0px;color: #1A87FF;"><img style="width: 13px;height: 13px" src="/static/images/new/tip.png">温馨提示</view>
|
|
|
<view>1,桩控制最大输出电流,当功率没有达到请检查车的状态或者车的设置;</view>
|
|
|
- <view>2,主页->设备管理->设备详情页->主板参数 可设置设备最大输出电流</view>
|
|
|
+ <view>2,启动充电->设备管理- 可设置设备最大输出电流</view>
|
|
|
<view>3,为保障您远程启动正常充电,请确保枪头完全连接充电口,同时确认您的爱车处于立即充电状态下;</view>
|
|
|
<view>4,注意规范安全充电,停好车,锁好车。</view>
|
|
|
</view>
|
|
|
- <view class="port" @click="showPort = true">
|
|
|
- <view class="port-image">
|
|
|
- <image class="btn-image" :src="imgUrl+'/index/device.png'" >
|
|
|
- </image>
|
|
|
- </view>
|
|
|
- <view class="port-text">
|
|
|
- 当前端口:
|
|
|
- </view>
|
|
|
-
|
|
|
- <view class="port-num">
|
|
|
- <view>
|
|
|
- {{portList[0][choosePort-1]["text"]}}
|
|
|
- </view>
|
|
|
-
|
|
|
- </view>
|
|
|
- <view class="port-icon">
|
|
|
- <image class="btn-image" :src="imgUrl+'/index/right.png'" >
|
|
|
- </image>
|
|
|
- </view>
|
|
|
- </view>
|
|
|
- <view class="plan" @click="planCharge">
|
|
|
- <view class="port-image">
|
|
|
- <image class="btn-image" :src="imgUrl+'/index/clock.png'" >
|
|
|
- </image>
|
|
|
- </view>
|
|
|
- <view class="port-text" v-if="portDetail.portStatus == 6" style="top:16px">
|
|
|
- 已预约
|
|
|
- </view>
|
|
|
- <view class="port-text" style="top:24px" v-else>
|
|
|
- 点击预约充电
|
|
|
- </view>
|
|
|
- <view class="port-num" style="top:48px;font-size: 12px" v-if="portDetail.portStatus == 6">
|
|
|
- 点击取消预约
|
|
|
- </view>
|
|
|
- <view class="port-icon" v-if="portDetail.portStatus !=6">
|
|
|
- <image class="btn-image" :src="imgUrl+'/index/right.png'" >
|
|
|
- </image>
|
|
|
- </view>
|
|
|
- <view class="port-icon" v-if="portDetail.portStatus == 6" style="width: 18px;height: 18px;right:1px;">
|
|
|
- <image class="btn-image" :src="imgUrl+'/index/del.png'" >
|
|
|
- </image>
|
|
|
- </view>
|
|
|
-
|
|
|
- </view>
|
|
|
- <view class="info-body">
|
|
|
- <view>
|
|
|
- <view class="info-content">
|
|
|
-
|
|
|
- <view class="info-content-value">{{ portDetail.voltage }}V</view>
|
|
|
- <view class="info-content-text">
|
|
|
- 充电电压
|
|
|
- </view>
|
|
|
- </view>
|
|
|
-
|
|
|
- <view class="info-content">
|
|
|
-
|
|
|
- <view class="info-content-value" v-if="portDetail.voltage == 0">0A</view>
|
|
|
- <view class="info-content-value" v-else>{{portDetail.POWER/portDetail.voltage}}A</view>
|
|
|
-
|
|
|
- <view class="info-content-text">
|
|
|
- 充电电流
|
|
|
- </view>
|
|
|
- </view>
|
|
|
-
|
|
|
- <view class="info-content">
|
|
|
-
|
|
|
- <view class="info-content-value">{{portDetail.dev_temper}}℃</view>
|
|
|
- <view class="info-content-text">
|
|
|
- 设备温度
|
|
|
- </view>
|
|
|
- </view>
|
|
|
-
|
|
|
-
|
|
|
- <view class="info-content">
|
|
|
-
|
|
|
- <view class="info-content-value">{{portDetail.wire_temper}}℃</view>
|
|
|
- <view class="info-content-text">
|
|
|
- 线路温度
|
|
|
- </view>
|
|
|
- </view>
|
|
|
- </view>
|
|
|
-
|
|
|
- <view class="body-bottom">
|
|
|
- <view class="info-content">
|
|
|
-
|
|
|
- <view class="info-content-value">{{ portDetail.time }}分钟</view>
|
|
|
- <view class="info-content-text">
|
|
|
- 已冲时间
|
|
|
- </view>
|
|
|
- </view>
|
|
|
- <view class="info-content">
|
|
|
-
|
|
|
- <view class="info-content-value">{{ portDetail.power }}W</view>
|
|
|
- <view class="info-content-text">
|
|
|
- 充电功率
|
|
|
- </view>
|
|
|
- </view>
|
|
|
- <view class="info-content">
|
|
|
-
|
|
|
- <view class="info-content-value">{{ portDetail.elec }} 度</view>
|
|
|
- <view class="info-content-text">
|
|
|
- 已冲电量
|
|
|
- </view>
|
|
|
- </view>
|
|
|
- </view>
|
|
|
-
|
|
|
- </view>
|
|
|
<u-picker @cancel="showPort=false" @confirm="confirmPort" :show="showPort" :columns="portList" keyName="text"></u-picker>
|
|
|
|
|
|
-
|
|
|
- <view class="bottom-control">
|
|
|
- <view class="control-btn" @click="trigger()" v-if="portDetail.portStatus == 2">
|
|
|
- <image class="btn-image" :src="imgUrl+'/control/stop.png'" >
|
|
|
- </image>
|
|
|
- <view>停止充电</view>
|
|
|
- </view>
|
|
|
-
|
|
|
- <view class="control-btn" @click="trigger()" v-if="portDetail.portStatus != 2">
|
|
|
- <image class="btn-image" :src="imgUrl+'/control/charge.png'" >
|
|
|
- </image>
|
|
|
- <view>立即充电</view>
|
|
|
- </view>
|
|
|
- <view class="control-btn" @click="getInfo">
|
|
|
- <image class="btn-image" :src="imgUrl+'/control/getstatus.png'" >
|
|
|
- </image>
|
|
|
- <view>获取状态</view>
|
|
|
- </view>
|
|
|
- <view class="control-btn" @click="toSet">
|
|
|
- <image class="btn-image" :src="imgUrl+'/control/control.png'" >
|
|
|
- </image>
|
|
|
- <view>设备控制</view>
|
|
|
- </view>
|
|
|
-<!-- <view class="control-btn">-->
|
|
|
-<!-- <image class="btn-image" :src="imgUrl+'/control/record.png'" >-->
|
|
|
-<!-- </image>-->
|
|
|
-<!-- <view>使用记录</view>-->
|
|
|
-<!-- </view>-->
|
|
|
- </view>
|
|
|
<u-picker @cancel="cancelPicker" @confirm="confirm" :show="showPlan" :columns="planCols" @change="changeHandler"></u-picker>
|
|
|
- <u-modal :show="showPwd" @confirm="inputPwd" @cancel="cancel" :showCancelButton="true" title="修改密码" >
|
|
|
+ <u-modal :show="showPwd" @confirm="inputPwd" @cancel="cancel" :showCancelButton="true" :title="$t('charge.modifypwd')" >
|
|
|
<view class="slot-content">
|
|
|
<view>
|
|
|
<u--input
|
|
|
type="number"
|
|
|
- placeholder="原密码"
|
|
|
+ :placeholder="$t('charge.oldpwd')"
|
|
|
border="surround"
|
|
|
v-model="oldPwd"
|
|
|
></u--input>
|
|
|
@@ -269,7 +133,7 @@
|
|
|
<view style="margin-top:5px">
|
|
|
<u--input
|
|
|
type="number"
|
|
|
- placeholder="6位数字新密码"
|
|
|
+ :placeholder="$t('charge.newpwd')"
|
|
|
border="surround"
|
|
|
v-model="pwd"
|
|
|
></u--input>
|