Commit af98aba5 authored by youjie's avatar youjie

包车

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