Commit c4c4c4b0 authored by youjie's avatar youjie

包车订单修复

parent 63287d3c
...@@ -356,7 +356,9 @@ ...@@ -356,7 +356,9 @@
} else if (item.goodsType == 7) { //道旅酒店住宿 } else if (item.goodsType == 7) { //道旅酒店住宿
url = `hotel/orderdetails?`; url = `hotel/orderdetails?`;
} else if (item.goodsType == 5) { //目的地用车 } else if (item.goodsType == 5) { //目的地用车
url = `bus/orderdetails?SalePhone=${item.SalePhone}&`; let phone = `SalePhone=${item.SalePhone}&`
url = `bus/orderdetails?`;
if(item.SalePhone) url+=phone
} else if (item.goodsType == 6) url = `visa/visa_SureOrder?` //签证 } else if (item.goodsType == 6) url = `visa/visa_SureOrder?` //签证
else if (item.goodsType == 1) { //机票 else if (item.goodsType == 1) { //机票
url = `airTicket/airTicketOrderDetail?` url = `airTicket/airTicketOrderDetail?`
......
...@@ -6,6 +6,7 @@ ...@@ -6,6 +6,7 @@
{{ busInfor.CityName }} {{ busInfor.CityName }}
{{ busInfor.time }} {{ busInfor.time }}
{{pageTitle}} {{pageTitle}}
{{ busInfor.peopleNum }}
</view> </view>
<u-icon name="arrow" :size="32" color="#000" style="position: relative;top: 2rpx;"></u-icon> <u-icon name="arrow" :size="32" color="#000" style="position: relative;top: 2rpx;"></u-icon>
</view> </view>
...@@ -111,6 +112,7 @@ export default { ...@@ -111,6 +112,7 @@ export default {
this.msg.Q_Date = obj.time this.msg.Q_Date = obj.time
this.msg.Q_SPeopleNum = obj.peopleNum this.msg.Q_SPeopleNum = obj.peopleNum
this.msg.Range = obj.Range this.msg.Range = obj.Range
this.msg.Q_AirportId = obj.AirportId
if(obj.CarType == 1) this.pageTitle = '接机' if(obj.CarType == 1) this.pageTitle = '接机'
else if(obj.CarType == 2) this.pageTitle = '送机' else if(obj.CarType == 2) this.pageTitle = '送机'
else if(obj.CarType == 3) this.pageTitle = '包车' else if(obj.CarType == 3) this.pageTitle = '包车'
......
...@@ -186,6 +186,7 @@ ...@@ -186,6 +186,7 @@
}, },
searchClose() { searchClose() {
this.isShow = false this.isShow = false
this.parameters.KeyWords = ''
this.addressList = [] this.addressList = []
this.$emit('close') this.$emit('close')
}, },
......
...@@ -88,19 +88,7 @@ ...@@ -88,19 +88,7 @@
</view> </view>
</template> </template>
<template v-if="busInfor.CarType==3"> <template v-if="busInfor.CarType==3">
<view class="bus-input row-sbas-n" style="padding:36rpx 18rpx;" @click="showDateHandle">
<view class="row">
<text class="bus-inputText" :style="{color: busInfor.time?'#080A09':'#BCBCBC'}">
{{busInfor.time?busInfor.time:'接载时间'}}
</text>
</view>
<u-icon name="arrow" :size="32" color="#000" style="position: relative;top: 2rpx;"></u-icon>
<!--
<view class="row" @click="peopleVisible=true">
<text>包车{{busInfor.days}}</text>
<u-icon name="arrow" :size="32" color="#000" style="position: relative;top: 2rpx;"></u-icon>
</view>-->
</view>
<!-- <!--
<scroll-view scroll-y="true" <scroll-view scroll-y="true"
style="height: 346rpx;overflow: hidden;margin-bottom: 30rpx;"> style="height: 346rpx;overflow: hidden;margin-bottom: 30rpx;">
...@@ -126,6 +114,19 @@ ...@@ -126,6 +114,19 @@
{{busInfor.destination?busInfor.destination:'目的地:地址或酒店'}} {{busInfor.destination?busInfor.destination:'目的地:地址或酒店'}}
</text> </text>
</view> </view>
<view class="bus-input row-sbas-n" @click="showDateHandle" style="padding:36rpx 18rpx;">
<view class="row">
<text class="bus-inputText" :style="{color: busInfor.time?'#080A09':'#BCBCBC'}">
{{busInfor.time?busInfor.time:'接载时间'}}
</text>
</view>
<u-icon name="arrow" :size="32" color="#000" style="position: relative;top: 2rpx;"></u-icon>
<!--
<view class="row" @click="peopleVisible=true">
<text>包车{{busInfor.days}}</text>
<u-icon name="arrow" :size="32" color="#000" style="position: relative;top: 2rpx;"></u-icon>
</view>-->
</view>
</template> </template>
<view @click="searchHandle" class="text-center cities-name" style="background-color: #B99846;border-radius: 10rpx;height: 90rpx; line-height: 90rpx;color:#EEF1F4">查 询</view> <view @click="searchHandle" class="text-center cities-name" style="background-color: #B99846;border-radius: 10rpx;height: 90rpx; line-height: 90rpx;color:#EEF1F4">查 询</view>
......
...@@ -794,7 +794,8 @@ ...@@ -794,7 +794,8 @@
} else { } else {
this.orderMsg.Num++; this.orderMsg.Num++;
} }
this.CalTotalPrice(); this.getUserCouponList()
// this.CalTotalPrice();
}, },
formatDate(str) { formatDate(str) {
let temp = str.split("-"); let temp = str.split("-");
......
...@@ -334,7 +334,7 @@ ...@@ -334,7 +334,7 @@
Remarks: '', //备注 Remarks: '', //备注
}, },
customer: {}, customer: {},
SalePhone: '', SalePhone: null,
showModal: false, showModal: false,
}; };
}, },
...@@ -345,7 +345,7 @@ ...@@ -345,7 +345,7 @@
}, },
onLoad(options) { onLoad(options) {
this.id = options.orderId; this.id = options.orderId;
this.SalePhone = options.SalePhone?options.SalePhone:''; if(options.SalePhone) this.SalePhone = options.SalePhone
let that = this; let that = this;
uni.getSystemInfo({ uni.getSystemInfo({
success(res) { success(res) {
...@@ -434,7 +434,7 @@ ...@@ -434,7 +434,7 @@
that.submitCancel = true; that.submitCancel = true;
this.apipost( this.apipost(
"GetCancelOrder_post", { "GetCancelOrder_post", {
OrderNo: this.OrderNo, OrderNo: that.OrderNo,
}, },
(res) => { (res) => {
if (res.resultCode == 1) { if (res.resultCode == 1) {
...@@ -460,15 +460,17 @@ ...@@ -460,15 +460,17 @@
}, },
goCancel() { goCancel() {
let that = this
console.log("this.orderData----", that.SalePhone);
// #ifdef MP-AG // #ifdef MP-AG
wx.showModal({ wx.showModal({
title: '提示', title: '提示',
content: `${this.SalePhone!=''?'确定拨打服务电话取消订单吗?':'请联系服务人员进行取消?'}`, content: `${that.SalePhone?'确定拨打服务电话取消订单吗?':'请联系服务人员进行取消?'}`,
success: (tip) => { success: (tip) => {
if (tip.confirm) { if (tip.confirm) {
if(this.SalePhone!=''){ if(that.SalePhone){
uni.makePhoneCall({ uni.makePhoneCall({
phoneNumber: this.SalePhone, phoneNumber: that.SalePhone,
}); });
} }
} }
...@@ -476,7 +478,6 @@ ...@@ -476,7 +478,6 @@
}) })
return return
// #endif // #endif
var that = this;
if (this.submitCancel) return if (this.submitCancel) return
this.submitCancel = true; this.submitCancel = true;
var cancelMsg = { var cancelMsg = {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment