Commit 4eea7a1b authored by youjie's avatar youjie

修复车 详情bug

parent beeb2c86
...@@ -148,8 +148,8 @@ export default { ...@@ -148,8 +148,8 @@ export default {
this.p = n; this.p = n;
if(n&&n.startDate){ if(n&&n.startDate){
this.chosenObj.startDate = n.startDate; this.chosenObj.startDate = n.startDate;
let arr = this.dataAll.filter(x=> x.Date==this.chosenObj.startDate) let arr = this.dataAll&&this.dataAll.filter(x=> x.Date==this.chosenObj.startDate)
if(arr.length>0){ if(arr&&arr.length>0){
this.TicketIds = arr[0].Price.map(x=> {return x.TicketId}) this.TicketIds = arr[0].Price.map(x=> {return x.TicketId})
} }
} }
...@@ -178,6 +178,7 @@ export default { ...@@ -178,6 +178,7 @@ export default {
}, },
data() { data() {
return { return {
dataAll: null,
p: {}, p: {},
chosenObj: null, chosenObj: null,
sumPrice:0, sumPrice:0,
......
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