Commit 8a5f1b97 authored by 黄奎's avatar 黄奎

11

parent 4a1ba207
......@@ -85,9 +85,16 @@
formatDinner() {
let d = []
this.trip.dinnerList.forEach(x => {
if (x.dinnerName.indexOf('自理') == -1 && x.dinnerName.indexOf('请选择') == -1 && x.dinnerId > 0) {
if (x.useDinnerType == "1") {
if (x.dinnerId > 0) {
console.log("aaaa", x);
d.push(x)
}
} else {
if (x.dinnerName.indexOf('自理') == -1 && x.dinnerName.indexOf('请选择') == -1) {
d.push(x)
}
}
})
if (d && d.length > 0) {
let g = this.groupBy(d, x => {
......@@ -123,18 +130,15 @@
h.push(x)
}
})
console.log("h", h);
if (h && h.length > 0) {
let g = this.groupBy(h, (x) => {
return x.star
})
g.forEach(x => {
let tempStr = this.stars[parseInt(x.key) - 1];
console.log("", tempStr)
if (tempStr && tempStr != '') {
this.hotel += `${x.data.length}晚${ tempStr};`
}
})
}
}
......
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