Svoboda
|
Graniru
|
BBC Russia
|
Golosameriki
|
Facebook
Vue.component('header-1', { delimiters: ['[[', ']]'], data: function () { return { } }, template: `
Mövcud reyslər
Sərnişin məlumatları
Yer seçimi
Sifariş məlumatları
` }); Vue.component('header-2', { delimiters: ['[[', ']]'], data: function () { return { } }, template: `
Mövcud reyslər
Sərnişin məlumatları
Yer seçimi
Sifariş məlumatları
` }); Vue.component('header-3', { delimiters: ['[[', ']]'], data: function () { return { } }, template: `
Mövcud reyslər
Sərnişin məlumatları
Yer seçimi
Sifariş məlumatları
` }); Vue.component('header-4', { delimiters: ['[[', ']]'], data: function () { return { } }, template: `
Mövcud reyslər
Sərnişin məlumatları
Yer seçimi
Sifariş məlumatları
` }); Vue.component('step-btn', { delimiters: ['[[', ']]'], props: ['step', 'destination', 'is_added', 'next_text', 'prev_text', 'passengers'], data: function () { return { } }, methods:{ show_next: function(){ console.log(this.passengers.length, this.passengers) if(this.step==0 && this.destination){ return true; } if(this.step==1 && this.is_added){ return true; } if(this.step==2 && this.destination.passengers.length && this.passengers.length == this.destination.passengers.length){ return true; } if(this.step==3){ return true; } return false; } }, template: `
[[prev_text]]
[[next_text]]
` }); Vue.component('step-price', { delimiters: ['[[', ']]'], props: ['step', 'computed_price'], data: function () { return { } }, template: `
Qiymət:
[[computed_price.toFixed(2)]] AZN
` }); Vue.component('step-data', { delimiters: ['[[', ']]'], props: ['date', 'destination', 'passengers_size', 'seets'], data: function () { return { } }, template: `
İstiqamət:
[[destination.route]]
Yola düşmə tarixi:
[[date]]
Çıxış saatı:
[[destination.time]]
Sərnişin sayı:
[[destination.passengers.length]]
Avtobus:
[[destination.model]]
Yerlər:
[[seets]]
` }); Vue.component('step-1', { delimiters: ['[[', ']]'], props: ['loading', 'destinations', 'is_full_added'], data: function () { return { } }, mounted: function(){ }, template: `
Davam etmək üçün istifadəçi məlumatlarını daxil edin
İstifadəçi hesabı
Yola düşmə vaxtı
Marşrut
Avtobusun markası
Yer sayı
Daşıyıcı
Boş yerlər
[[dest.time]]
[[dest.route]]
[[dest.model]]
[[dest.capacity]]
[[dest.carrier]]
[[dest.free_seets]]
` }); Vue.component('step-2', { delimiters: ['[[', ']]'], props: ['passenger', 'index', 'passengers'], data: function () { return { user: { name: '', cart_id: '', gender: 1 } } }, mounted: function(){ $('.selectpicker').selectpicker(); }, watch: { passenger: { handler: function() { this.$emit('newdata', []); }, deep: true } }, template: `
Sərnişinin S.A.A
Şəxsiyyəti təsdiq edən sənəd
Cins / Tip
Kişi
Qadın
Uşaq
` }); Vue.component('step-3', { delimiters: ['[[', ']]'], props: ['structure', 'passengers', 'seets'], data: function () { return { element_id: '', } }, mounted: function(){ $('.seet_number').tooltip('hide'); }, methods: { select: function(col, seet){ this.$parent.select_seat(col, seet); // console.log(55) }, gender_name: function(gender){ return this.$parent.genders_name[gender].slice(0, 1); }, get_seat_text: function(col){ for(i=0; i
0 && col.seat_no*1 < 5){ return this.$parent.genders_name[0].slice(0, 1); } return col.seat_no; }, }, template: `
Yerlər 5 dəqiqə ərzində seçilməlidir!
Əks halda bu əməliyyat ləğv olunacaq!
x
seçdiyiniz yer
x
boş yer
x
alınıb
[[get_seat_text(col)]]
[[get_seat_text(col)]]
` }); Vue.component('step-4', { delimiters: ['[[', ']]'], props: ['destination'], data: function () { return { } }, mounted: function(){ }, methods: { gender_name: function(gender){ return this.$parent.$data.genders_name[gender]; }, remove_passenger: function(event){ this.$parent.remove_passenger(event); this.$parent.prev_step(event); } }, template: `
5
dəqiqə ərzində ödəniş olunmasa, sifariş ləğv olunacaq!
Sifarişi ləğv et
Sərnişinin S.A.A
[[passenger.name]]
Şəxsiyyəti təsdiq edən sənəd
Ş.V. [[passenger.cart_id]]
Cins / Tip
[[gender_name(passenger.gender*1-1)]]
Yer
[[passenger.seat]]
` });