|
@@ -204,27 +204,43 @@
|
|
<view>逾期后及时续租不收取逾期费,逾期时长将从续租订单的用车时间中抵扣</view>
|
|
<view>逾期后及时续租不收取逾期费,逾期时长将从续租订单的用车时间中抵扣</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
- <!-- 考虑为空的情况 -->
|
|
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ <view class="inset-bottom"></view>
|
|
<view class="payment-info flex-row flex-between">
|
|
<view class="payment-info flex-row flex-between">
|
|
- <view v-if="orderInfo.order_status == 1 || orderInfo.pay_status == 5" class="flex-row"> <!-- 待取车 -->
|
|
|
|
|
|
+ <view>
|
|
|
|
+ <view v-if="(orderInfo.order_status == 1 || orderInfo.pay_status == 5) && orderInfo.order_type != 3" class="cancel" @tap="clickCancel">结束订单</view>
|
|
|
|
+ </view>
|
|
|
|
+ <view class="flex-row">
|
|
|
|
+ <view v-if="orderInfo.order_status == 1" @tap="navToScan" class="sesame-btn ">扫码绑定</view>
|
|
|
|
+ <view v-if="orderInfo.order_status == 2" @tap="navToScan" class="sesame-btn ">去上传</view>
|
|
|
|
+ <view v-if="(orderInfo.order_status == 3||orderInfo.order_status == 4) && orderInfo.order_type != 3 && orderInfo.pay_status != 5" @tap="tapReturnCar" class="deposit-btn">到店还车</view>
|
|
|
|
+ <view v-if="(orderInfo.order_status == 3||orderInfo.order_status == 4) && orderInfo.order_type != 3 && orderInfo.pay_status != 5" @tap="bindRenew" class="sesame-btn">续租</view>
|
|
|
|
+ <view @tap="callStorePhone" class="deposit-btn ">联系门店</view>
|
|
|
|
+ </view>
|
|
|
|
+ </view>
|
|
|
|
+
|
|
|
|
+ <!-- <view class="payment-info flex-row flex-between">
|
|
|
|
+ <view v-if="orderInfo.order_status == 1 || orderInfo.pay_status == 5" class="flex-row">
|
|
<view v-if="orderInfo.order_type != 3"
|
|
<view v-if="orderInfo.order_type != 3"
|
|
class="cancel" @tap="clickCancel">结束订单
|
|
class="cancel" @tap="clickCancel">结束订单
|
|
</view>
|
|
</view>
|
|
<view @tap="callStorePhone" class="deposit-btn ">联系门店</view>
|
|
<view @tap="callStorePhone" class="deposit-btn ">联系门店</view>
|
|
</view>
|
|
</view>
|
|
- <view v-if="orderInfo.order_status == 1" class="flex-row"> <!-- 待取车 -->
|
|
|
|
|
|
+ <view v-if="orderInfo.order_status == 1" class="flex-row">
|
|
<view @tap="callStorePhone" class="deposit-btn ">联系门店</view>
|
|
<view @tap="callStorePhone" class="deposit-btn ">联系门店</view>
|
|
<view @tap="navToScan" class="sesame-btn ">扫码绑定</view>
|
|
<view @tap="navToScan" class="sesame-btn ">扫码绑定</view>
|
|
</view>
|
|
</view>
|
|
|
|
|
|
- <view v-if="orderInfo.order_status == 2" class="flex-row"> <!-- 待取车 -->
|
|
|
|
|
|
+ <view v-if="orderInfo.order_status == 2" class="flex-row">
|
|
<view @tap="callStorePhone" class="deposit-btn ">联系门店</view>
|
|
<view @tap="callStorePhone" class="deposit-btn ">联系门店</view>
|
|
<view @tap="navToScan" class="sesame-btn ">去上传</view>
|
|
<view @tap="navToScan" class="sesame-btn ">去上传</view>
|
|
</view>
|
|
</view>
|
|
|
|
|
|
<view
|
|
<view
|
|
v-else-if="(orderInfo.order_status == 3||orderInfo.order_status == 4) && orderInfo.order_type != 3 && orderInfo.pay_status != 5"
|
|
v-else-if="(orderInfo.order_status == 3||orderInfo.order_status == 4) && orderInfo.order_type != 3 && orderInfo.pay_status != 5"
|
|
- class="flex-row"> <!-- 使用中 -->
|
|
|
|
|
|
+ class="flex-row">
|
|
<view @tap="callStorePhone" class="cancel">联系门店</view>
|
|
<view @tap="callStorePhone" class="cancel">联系门店</view>
|
|
<view @tap="tapReturnCar" class="deposit-btn">到店还车</view>
|
|
<view @tap="tapReturnCar" class="deposit-btn">到店还车</view>
|
|
<view @tap="bindRenew" class="sesame-btn">续租</view>
|
|
<view @tap="bindRenew" class="sesame-btn">续租</view>
|
|
@@ -232,13 +248,13 @@
|
|
|
|
|
|
<view v-else-if="orderInfo.order_status == 5||orderInfo.order_status == 6" @tap="callStorePhone"
|
|
<view v-else-if="orderInfo.order_status == 5||orderInfo.order_status == 6" @tap="callStorePhone"
|
|
class="pay-btn">
|
|
class="pay-btn">
|
|
- 联系门店</view> <!-- 待门店确认||还车中,等待门店取车 -->
|
|
|
|
|
|
+ 联系门店</view>
|
|
<view v-else-if="orderInfo.order_status == 7" @tap="callStorePhone" class="pay-btn">联系门店</view>
|
|
<view v-else-if="orderInfo.order_status == 7" @tap="callStorePhone" class="pay-btn">联系门店</view>
|
|
- <!--车辆已归还 已完成 -->
|
|
|
|
|
|
+
|
|
|
|
|
|
<view v-if="orderInfo.order_type == 3 && (orderInfo.order_status == 3||orderInfo.order_status == 4)"
|
|
<view v-if="orderInfo.order_type == 3 && (orderInfo.order_status == 3||orderInfo.order_status == 4)"
|
|
@tap="callStorePhone" class="pay-btn">联系门店</view>
|
|
@tap="callStorePhone" class="pay-btn">联系门店</view>
|
|
- </view>
|
|
|
|
|
|
+ </view> -->
|
|
|
|
|
|
<view v-if="isShowCancel" class="cancel-b">
|
|
<view v-if="isShowCancel" class="cancel-b">
|
|
<view class="cancel-box">
|
|
<view class="cancel-box">
|
|
@@ -378,6 +394,7 @@
|
|
...this.car_detail,
|
|
...this.car_detail,
|
|
price: this.price
|
|
price: this.price
|
|
}
|
|
}
|
|
|
|
+ resp.data.data.model_images = resp.data.data.model_images.spilt(',')[0]
|
|
me.setData({
|
|
me.setData({
|
|
car_detail: resp.data.data,
|
|
car_detail: resp.data.data,
|
|
params: {
|
|
params: {
|
|
@@ -409,7 +426,7 @@
|
|
return false
|
|
return false
|
|
}
|
|
}
|
|
} else {
|
|
} else {
|
|
- common.simpleToast(resp.data.msg)
|
|
|
|
|
|
+ common.simpleToast('请扫描正确的二维码!')
|
|
return false
|
|
return false
|
|
}
|
|
}
|
|
return false
|
|
return false
|
|
@@ -423,7 +440,7 @@
|
|
});
|
|
});
|
|
if (res[0]) return
|
|
if (res[0]) return
|
|
car_sn = res[1].result
|
|
car_sn = res[1].result
|
|
- if(!this.carDetFn(car_sn)) return
|
|
|
|
|
|
+ if(!await this.carDetFn(car_sn)) return
|
|
}
|
|
}
|
|
uni.navigateTo({
|
|
uni.navigateTo({
|
|
url: `/pages/activation/activation?model_id=${this.orderInfo.model_id}&sub_sn=${this.sub_sn}&car_sn=${car_sn}`
|
|
url: `/pages/activation/activation?model_id=${this.orderInfo.model_id}&sub_sn=${this.sub_sn}&car_sn=${car_sn}`
|