Commit 4eea7a1b authored by youjie's avatar youjie

修复车 详情bug

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