Commit af98aba5 authored by youjie's avatar youjie

包车

parent 30453489
...@@ -351,6 +351,7 @@ ...@@ -351,6 +351,7 @@
minute: true, minute: true,
}, },
startYear: 2025, startYear: 2025,
customer: {},
}; };
}, },
computed: { computed: {
...@@ -385,7 +386,7 @@ ...@@ -385,7 +386,7 @@
} }
this.U = uni.getStorageSync("mall_UserInfo"); this.U = uni.getStorageSync("mall_UserInfo");
this.b2bUser = uni.getStorageSync("b2b_user"); this.b2bUser = uni.getStorageSync("b2b_user");
this.customer = uni.getStorageSync("b2b_user")
let that = this; let that = this;
uni.getSystemInfo({ uni.getSystemInfo({
success(res) { success(res) {
......
...@@ -40,7 +40,7 @@ ...@@ -40,7 +40,7 @@
{{ item.CurrencyCode }} </text> {{ item.CurrencyCode }} </text>
<text> <text>
<!-- #ifdef MP-DI --> <!-- #ifdef MP-DI -->
{{parseFloat(item.B2c).toFixed(2)}} {{parseFloat(item.MinB2CPrice).toFixed(2)}}
<!-- #endif --> <!-- #endif -->
<!-- #ifdef MP-AG --> <!-- #ifdef MP-AG -->
{{parseFloat(item.MinPrice).toFixed(2)}} {{parseFloat(item.MinPrice).toFixed(2)}}
......
...@@ -390,9 +390,9 @@ ...@@ -390,9 +390,9 @@
Name: '三',// 名 Name: '三',// 名
Remark: '',// 下单备注 Remark: '',// 下单备注
AirportId: '',//机场ID (包车机场相关的不用传,包括下方机场航班相关) AirportId: '',//机场ID (包车机场相关的不用传,包括下方机场航班相关)
AirportTerminal: '',// 航厦 AirportTerminal: '1111航厦',// 航厦
AirLine: '',// 航空公司名称 AirLine: '222航空公司',// 航空公司名称
FlightNumber: '',// 航班号 FlightNumber: '3333航班号',// 航班号
FlightTime: '',// 航班时间 FlightTime: '',// 航班时间
GetonAddress: '',// 上车地点 GetonAddress: '',// 上车地点
GetoffAddress: '',// 下车地点 GetoffAddress: '',// 下车地点
...@@ -478,6 +478,9 @@ ...@@ -478,6 +478,9 @@
key: "busInfor", key: "busInfor",
success: (res) => { success: (res) => {
this.busInfor = JSON.parse(res.data); this.busInfor = JSON.parse(res.data);
if (this.busInfor.CarType<3) {
this.orderMsg.FlightTime = this.busInfor.time;
}
this.initData() this.initData()
}, },
}); });
...@@ -620,7 +623,7 @@ ...@@ -620,7 +623,7 @@
}, },
//计算总价 //计算总价
CalTotalPrice() { CalTotalPrice() {
this.orderMsg.Money = this.orderMsg.Unit_Price * this.orderMsg.Num this.orderMsg.Money = this.getPrice((this.orderMsg.Unit_Price * this.orderMsg.Num)-this.currentCoupon.discountMoney)
}, },
initData() { initData() {
uni.showLoading({ uni.showLoading({
...@@ -710,6 +713,7 @@ ...@@ -710,6 +713,7 @@
}) })
if (maxCouponId > 0) this.closeCouponHandler([maxCouponId]) if (maxCouponId > 0) this.closeCouponHandler([maxCouponId])
else this.closeCouponHandler(-1) else this.closeCouponHandler(-1)
this.CalTotalPrice()
} }
}, },
getUserCouponList() { getUserCouponList() {
...@@ -838,7 +842,6 @@ ...@@ -838,7 +842,6 @@
}, },
//去支付 //去支付
goPay() { goPay() {
const error = this.validate() const error = this.validate()
if(error!=''){ if(error!=''){
uni.showToast({ uni.showToast({
......
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