|
|
@ -370,6 +370,20 @@ export default { |
|
|
|
|
|
|
|
this.schedules = [...data.records] |
|
|
|
}, |
|
|
|
mounted () { |
|
|
|
this.$segment.page('flights'); |
|
|
|
this.$segment.track('flights__mount-page', { |
|
|
|
origin: this.$route.params.o, |
|
|
|
destination: this.$route.params.d, |
|
|
|
departureDate: this.$route.params.departure, |
|
|
|
}); |
|
|
|
const emailCookie = this.$cookies.get('email') |
|
|
|
if(emailCookie){ |
|
|
|
this.$segment.identify(emailCookie, { |
|
|
|
email: emailCookie |
|
|
|
}); |
|
|
|
} |
|
|
|
}, |
|
|
|
created () { |
|
|
|
// console.log(this.$route.path) |
|
|
|
|
|
|
|