|
@@ -36,11 +36,11 @@
|
|
|
<view v-if="orderInfo.order_type != 3" class="flex-row flex-between">
|
|
|
<view class="money-item">
|
|
|
<view :class="orderInfo.order_status == 4?'red-status':''">
|
|
|
- <block v-if="orderInfo.hire_duration_time&&orderInfo.hire_duration_time>0">{{orderInfo.hire_duration_time}}</block>
|
|
|
+ <block v-if="orderInfo.hire_duration_time">{{orderInfo.hire_duration_time}}</block>
|
|
|
<block v-else>{{Number(orderInfo.hire_cycle) * (orderInfo.hire_duration)}}</block>
|
|
|
</view>
|
|
|
|
|
|
- <view>{{((orderInfo.order_status == 2) || orderInfo.order_status == 3)?$t('租期剩余'):(orderInfo.order_status == 4 ? $t('逾期时长'):$t('租借周期'))}}·<text style="opacity: 0.4;">{{leaseUnits(orderInfo.hire_duration_unit)}}</text></view>
|
|
|
+ <view class="red-status">{{((orderInfo.order_status == 2) || orderInfo.order_status == 3)?$t('租期剩余'):(orderInfo.order_status == 4 ? $t('逾期时长'):$t('租借周期'))}}·<text style="opacity: 0.4;">{{leaseUnits(orderInfo.hire_duration_unit)}}</text></view>
|
|
|
|
|
|
<!-- <view v-if="(orderInfo.order_status == 2&&orderInfo.hire_type==2) || orderInfo.order_status == 3">
|
|
|
{{ $t('租期剩余') }}·{{ $t('天') }}</view>
|
|
@@ -56,8 +56,8 @@
|
|
|
|
|
|
<view v-if="orderInfo.order_status == 4&&orderInfo.overdue_money!=0" class="money-item">
|
|
|
<view style="color:#F95151" class="red-status">
|
|
|
- {{(orderInfo.money / 100).toFixed(2)}}
|
|
|
- <!-- {{(orderInfo.overdue_money / 100).toFixed(2)}} -->
|
|
|
+ <!--{{(orderInfo.money / 100).toFixed(2)}} -->
|
|
|
+ {{(overdueData.money / 100).toFixed(2)}}
|
|
|
</view>
|
|
|
<view style="color:#F95151">{{ $t('逾期金额') }}·$</view>
|
|
|
</view>
|
|
@@ -375,8 +375,8 @@
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
|
+ selectType:0,
|
|
|
overdueData: {},
|
|
|
- select_type: '',
|
|
|
car_detail: {},
|
|
|
showCarPlan: false,
|
|
|
return_imgs: {},
|
|
@@ -458,6 +458,7 @@
|
|
|
})
|
|
|
if (data.code == 200) {
|
|
|
this.overdueData = data.data
|
|
|
+ console.log(this.overdueData)
|
|
|
} else {
|
|
|
common.simpleToast(data.msg)
|
|
|
}
|
|
@@ -490,6 +491,7 @@
|
|
|
},
|
|
|
|
|
|
changeSelectType(select_type, price) {
|
|
|
+ console.log('哈哈哈哈')
|
|
|
this.setData({
|
|
|
selectType: select_type,
|
|
|
price: (price / 100).toFixed(2)
|
|
@@ -669,7 +671,7 @@
|
|
|
// new Date()) / 1000 - me.orderInfo.hire_end_time))
|
|
|
me.orderInfo.hire_duration_time = common.formatTimeDifference(me.orderInfo
|
|
|
.hire_end_time * 1000)
|
|
|
-
|
|
|
+ console.log(me.orderInfo.hire_duration_time)
|
|
|
} else {
|
|
|
me.orderInfo.hire_duration_time = common.timestampToDays(Math.ceil(me.orderInfo
|
|
|
.hire_begin_time - me.orderInfo.hire_end_time))
|
|
@@ -819,6 +821,8 @@
|
|
|
|
|
|
bindRenew() {
|
|
|
this.params.overdueData = this.overdueData
|
|
|
+ this.selectType = this.orderInfo.hire_duration_unit
|
|
|
+ console.log(this.selectType)
|
|
|
this.showCarPlan = true
|
|
|
// this.isReturnHome = false
|
|
|
// let isRenew = true
|