@@ -180,12 +180,12 @@ Page({
content: '预约成功',
showCancel:false,
confirmColor:'#00AADD',
- complete: (res) => {
- if (res.cancel) {
+ complete: (res2) => {
+ if (res2.cancel) {
}
- if (res.confirm) {
+ if (res2.confirm) {
wx.navigateBack()
@@ -193,7 +193,7 @@ Page({
}else{
wx.showModal({
title: '提示',
- content: '预约失败',
+ content: res?.data?.msg,
});
@@ -384,6 +384,7 @@ Page({
},
method: 'POST',
fail(e) {
+
wx.hideLoading();
//开启充电失败,提示用户
@@ -429,9 +430,11 @@ Page({
log.info('[扫码]', '[开始充电]', '[失败data.code=502' + data.message + ']', data);
} else {
+ let msg = res?.data?.message
+ msg = msg?msg:'开启充电失败'
showCancel: false,
- content: '开启充电失败',
+ content: msg,
log.info('[扫码]', '[开始充电]', '[失败]', data);
@@ -30,7 +30,7 @@
</view>
<text>{{item.reservPile.chargPileName}}</text>
<view class="inline-view">
- <view class='inlineView' decode='true'><text space="nbsp">预约时段: </text> <text class="gray2"> {{item.reservChargeStartTime}} 至 {{item.reservChargeEndTime}}</text></view>
+ <view class='inlineView' decode='true'><text space="nbsp">预约时段: </text> <text class="gray2"> {{item.reservChargeStartTime}}-{{item.reservChargeEndTime}}</text></view>
<view class='inlineView' decode='true'><text space="nbsp">提交预约时间: </text> <text class="gray2">{{item.createTime}}</text></view>