Commit 43e4c9cf authored by youjie's avatar youjie

no message

parent c4fd531d
...@@ -91,6 +91,10 @@ ...@@ -91,6 +91,10 @@
// #ifdef MP-AG // #ifdef MP-AG
this.getEnumList() this.getEnumList()
// #endif // #endif
if (this.params.OrderTypeStr) {
let item = this.orderTypeList.find(x => x.Id == this.params.OrderTypeStr)
this.$emit('change', item)
}
}, },
methods: { methods: {
getEnumList() { getEnumList() {
......
...@@ -409,6 +409,7 @@ ...@@ -409,6 +409,7 @@
PhoneCode: '86',// 国家区号 PhoneCode: '86',// 国家区号
peoples: 1, peoples: 1,
PeopleNum: 0, PeopleNum: 0,
TotalPeopl: 0,
}, },
showtime: false, showtime: false,
timeType: 0, timeType: 0,
...@@ -795,6 +796,7 @@ ...@@ -795,6 +796,7 @@
} else { } else {
this.orderMsg.Num++; this.orderMsg.Num++;
} }
this.orderMsg.TotalPeopl = this.orderMsg.Num * this.orderMsg.PeopleNum;
this.CalTotalPrice(); this.CalTotalPrice();
setTimeout(() => { setTimeout(() => {
this.calcMaxCouponHandle() this.calcMaxCouponHandle()
...@@ -836,8 +838,8 @@ ...@@ -836,8 +838,8 @@
|| !this.orderMsg.ManNum || !this.orderMsg.ManNum
|| this.orderMsg.ManNum <= 0) { || this.orderMsg.ManNum <= 0) {
msg = '请输入至少 1 个成人人数' msg = '请输入至少 1 个成人人数'
}else if (this.orderMsg.peoples>this.orderMsg.PeopleNum) { }else if (this.orderMsg.peoples>this.orderMsg.TotalPeopl) {
msg = `总人数不能大于${this.orderMsg.PeopleNum}` msg = `总人数不能大于${this.orderMsg.TotalPeopl}`
} }
}else if (this.orderMsg.SurName == '') { }else if (this.orderMsg.SurName == '') {
msg = '请输入姓' msg = '请输入姓'
......
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