修改临停订单详情页面的数据显示异常的问题
This commit is contained in:
parent
dddee35084
commit
9b58416ed4
@ -18,14 +18,14 @@
|
|||||||
<view class="amount-item" @tap="toggleAmountExpand">
|
<view class="amount-item" @tap="toggleAmountExpand">
|
||||||
<text class="amount-label">实付金额</text>
|
<text class="amount-label">实付金额</text>
|
||||||
<view class="amount-value">
|
<view class="amount-value">
|
||||||
<text>¥{{ orderDetail.pay_method }}</text>
|
<text>¥{{ orderDetail.pay_method/100 }}</text>
|
||||||
<u-icon :name="amountExpanded ? 'arrow-up' : 'arrow-down'" size="28"></u-icon>
|
<u-icon :name="amountExpanded ? 'arrow-up' : 'arrow-down'" size="28"></u-icon>
|
||||||
|
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="amount-item" v-show="amountExpanded">
|
<view class="amount-item" v-show="amountExpanded">
|
||||||
<text class="amount-label2">订单金额</text>
|
<text class="amount-label2">订单金额</text>
|
||||||
<text>¥{{ orderDetail.pay_method }}</text>
|
<text>¥{{ orderDetail.pay_method/100 }}</text>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
@ -35,7 +35,7 @@
|
|||||||
|
|
||||||
<view class="info-item">
|
<view class="info-item">
|
||||||
<text class="info-label">车牌号码</text>
|
<text class="info-label">车牌号码</text>
|
||||||
<text>{{ orderDetail.parking_record.car_number }}</text>
|
<text>{{ orderDetail.record_info.car_number }}</text>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
<view class="info-item">
|
<view class="info-item">
|
||||||
@ -119,12 +119,12 @@ export default {
|
|||||||
|
|
||||||
// 计算停车时长
|
// 计算停车时长
|
||||||
calculateParkingDuration() {
|
calculateParkingDuration() {
|
||||||
if (!this.orderDetail || !this.orderDetail.parking_record) {
|
if (!this.orderDetail || !this.orderDetail.record_info) {
|
||||||
return '0分钟';
|
return '0分钟';
|
||||||
}
|
}
|
||||||
|
|
||||||
const inTime = new Date(this.orderDetail.parking_record.in_time);
|
const inTime = new Date(this.orderDetail.record_info.in_time);
|
||||||
const outTime = new Date(this.orderDetail.parking_record.out_time);
|
const outTime = new Date(this.orderDetail.record_info.out_time);
|
||||||
|
|
||||||
// 计算时间差(毫秒)
|
// 计算时间差(毫秒)
|
||||||
const diffMs = outTime - inTime;
|
const diffMs = outTime - inTime;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user