|
@@ -124,7 +124,7 @@
|
|
<view class="yuyueTime">
|
|
<view class="yuyueTime">
|
|
<image src="../../static/img/icon_time.png" mode="" class="shopBoximg"></image>
|
|
<image src="../../static/img/icon_time.png" mode="" class="shopBoximg"></image>
|
|
<view class="peopleCont">预约到店</view>
|
|
<view class="peopleCont">预约到店</view>
|
|
- <view class="peopleCont" style="padding-left: 20rpx;">{{orderData.ContactPhone}}</view>
|
|
|
|
|
|
+ <view class="peopleCont" style="padding-left: 20rpx;">{{orderData.OrderTime}}</view>
|
|
<image v-if="orderData.OrderState==2" src="../../static/img/icon_edit.png" mode="" class="timeEditImg"
|
|
<image v-if="orderData.OrderState==2" src="../../static/img/icon_edit.png" mode="" class="timeEditImg"
|
|
@click="timeShowClick"></image>
|
|
@click="timeShowClick"></image>
|
|
</view>
|
|
</view>
|
|
@@ -263,10 +263,10 @@
|
|
|
|
|
|
<view class="orderBottom" v-if="orderData.SheetState==4">
|
|
<view class="orderBottom" v-if="orderData.SheetState==4">
|
|
<view class="cancelBtn" @click="refundMoney">申请退款</view>
|
|
<view class="cancelBtn" @click="refundMoney">申请退款</view>
|
|
- <view class="payBtn" @click="timeShowClick">立即预约</view>
|
|
|
|
|
|
+ <view class="payBtn" @click="timeShowClick" v-if="orderData.OrderState==1">立即预约</view>
|
|
</view>
|
|
</view>
|
|
|
|
|
|
- <view class="orderBottom" v-if="orderData.SheetState==5&&orderData.EvaluateState==0">
|
|
|
|
|
|
+ <view class="orderBottom" v-if="orderData.SheetState==5&&orderData.EvaluateState==0&&orderData.EState==1">
|
|
<view class="payBtn" @click="evaluate">立即评价</view>
|
|
<view class="payBtn" @click="evaluate">立即评价</view>
|
|
</view>
|
|
</view>
|
|
<view class="orderBottom" v-if="orderData.SheetState==5&&orderData.EvaluateState==1">
|
|
<view class="orderBottom" v-if="orderData.SheetState==5&&orderData.EvaluateState==1">
|
|
@@ -564,13 +564,20 @@
|
|
},
|
|
},
|
|
timeCk() {
|
|
timeCk() {
|
|
this.timeShow = false;
|
|
this.timeShow = false;
|
|
- this.$http('worldKeepCar/keepCarMy/changeTSheetTime', {
|
|
|
|
|
|
+ var urlStr = ''
|
|
|
|
+ if (this.orderData.OrderState==1) {
|
|
|
|
+ urlStr = 'worldKeepCar/keepCarMy/saveOrderTime'
|
|
|
|
+ }
|
|
|
|
+ if (this.orderData.OrderState==2) {
|
|
|
|
+ urlStr = 'worldKeepCar/keepCarMy/changeTSheetTime'
|
|
|
|
+ }
|
|
|
|
+ this.$http(urlStr, {
|
|
id: this.id,
|
|
id: this.id,
|
|
orderTime: this.orderTime
|
|
orderTime: this.orderTime
|
|
}, 'POST').then(res => {
|
|
}, 'POST').then(res => {
|
|
if (res.code == 0) {
|
|
if (res.code == 0) {
|
|
uni.showToast({
|
|
uni.showToast({
|
|
- title: '修改成功',
|
|
|
|
|
|
+ title: '预约成功',
|
|
icon: 'none',
|
|
icon: 'none',
|
|
duration: 2000
|
|
duration: 2000
|
|
});
|
|
});
|