|
@@ -3,7 +3,8 @@
|
|
|
<u-navbar title="充电桩详情" :is-back="false" ></u-navbar>
|
|
|
|
|
|
<!-- 充电桩信息 -->
|
|
|
- <view class="main">
|
|
|
+ <view class="main">
|
|
|
+
|
|
|
<view class="main-detail">
|
|
|
<view class="detail-name">
|
|
|
充电桩编号
|
|
@@ -27,9 +28,28 @@
|
|
|
充电功率
|
|
|
</view>
|
|
|
<view class="detail-content" style="font-weight: 900;">{{detail.chargingPower/1000}}kW</view>
|
|
|
+ </view>
|
|
|
+ <!-- 收费标准 -->
|
|
|
+ <view class="rates">
|
|
|
+ <view class="rates-title">
|
|
|
+ <view class="title-left">
|
|
|
+ 默认车牌号
|
|
|
+ </view>
|
|
|
+ <view class="title-right" v-if="car">
|
|
|
+ {{car.carNum}}
|
|
|
+ </view>
|
|
|
+ <view class="title-right" v-else>
|
|
|
+ <view style="color:#00b962" @click="carDet">点击绑定</view>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+
|
|
|
+ <view style="padding: 15px;" >
|
|
|
+ {{content}}
|
|
|
+ </view>
|
|
|
+
|
|
|
</view>
|
|
|
<!-- 收费标准 -->
|
|
|
- <view class="rates">
|
|
|
+ <view class="rates ">
|
|
|
<view class="rates-title">
|
|
|
<view class="title-left">
|
|
|
收费标准
|
|
@@ -60,12 +80,12 @@
|
|
|
|
|
|
</view>
|
|
|
</view>
|
|
|
-
|
|
|
+
|
|
|
</view>
|
|
|
|
|
|
- <!-- 提示 -->
|
|
|
- <view class="tips">
|
|
|
- <u-alert-tips size="12" :show-icon="true" type="warning" :description="description"></u-alert-tips>
|
|
|
+ <!-- 提示 -->
|
|
|
+ <view class="tips ratesbottom ">
|
|
|
+ <u-alert-tips size="12" :show-icon="true" type="warning" :description="description"></u-alert-tips>
|
|
|
</view>
|
|
|
</view>
|
|
|
<!-- 底部按钮 -->
|
|
@@ -88,7 +108,8 @@
|
|
|
id: "",
|
|
|
car: {},
|
|
|
gun: {},
|
|
|
- prices: {},
|
|
|
+ prices: {},
|
|
|
+ content:"",
|
|
|
detail: {
|
|
|
no: '',
|
|
|
interface: '',
|
|
@@ -114,7 +135,11 @@
|
|
|
}
|
|
|
},
|
|
|
onReady() {
|
|
|
-
|
|
|
+ var carDet=this.carhelp.getConfig().carDet
|
|
|
+ // img="https://yktwechat.xiaoxinda.com/config/xxd2021.jpg"
|
|
|
+ if(carDet){
|
|
|
+ this.content=carDet
|
|
|
+ }
|
|
|
},
|
|
|
onShow() {
|
|
|
uni.hideToast();
|
|
@@ -124,14 +149,20 @@
|
|
|
}
|
|
|
|
|
|
},
|
|
|
- methods: {
|
|
|
+ methods: {
|
|
|
+ carDet(){
|
|
|
+ this.onShowRole = true
|
|
|
+ uni.navigateTo({
|
|
|
+ url: "/pages/user/car/carDet?jpcode=jp_team51_charge_id:A_" + this.id
|
|
|
+ })
|
|
|
+ },
|
|
|
role() {
|
|
|
uni.hideToast();
|
|
|
console.log(1)
|
|
|
var id = this.id;
|
|
|
var info = this.carhelp.getPersonInfo();
|
|
|
if (info) {
|
|
|
- if (this.car == null) {
|
|
|
+ if (false&&this.car == null) {
|
|
|
uni.showModal({
|
|
|
content: "需要绑定车辆后扫码充电",
|
|
|
confirmText: "前往绑定",
|
|
@@ -196,7 +227,7 @@
|
|
|
this.role()
|
|
|
if(this.isReady){
|
|
|
uni.navigateTo({
|
|
|
- url:'/pages/searchPile/chargeProcess/charge?deviceNo='+this.detail.deviceNo+"&gun="+this.gun.channelNo+"&carNumber="+this.car.carNum
|
|
|
+ url:'/pages/searchPile/chargeProcess/charge?deviceNo='+this.detail.deviceNo+"&gun="+this.gun.channelNo+"&carNumber="+(this.car?this.car.carNum:'')
|
|
|
})
|
|
|
}
|
|
|
|
|
@@ -207,7 +238,10 @@
|
|
|
</script>
|
|
|
|
|
|
|
|
|
-<style lang="scss">
|
|
|
+<style lang="scss">
|
|
|
+ .ratesbottom{
|
|
|
+ padding-bottom: 80px;
|
|
|
+ }
|
|
|
// 头部
|
|
|
.title {
|
|
|
width: 100%;
|