Content-Length: 483573 | pFad | http://github.com/eduardozo/SmartStay/commit/1053a136eff848aff461a04dcef0083b17bcf6ad

78 dashboard guest terminada v1 · eduardozo/SmartStay@1053a13 · GitHub
Skip to content

Commit

Permalink
dashboard guest terminada v1
Browse files Browse the repository at this point in the history
  • Loading branch information
caburgos committed Jun 17, 2018
1 parent 4823fcc commit 1053a13
Show file tree
Hide file tree
Showing 4 changed files with 65 additions and 78 deletions.
54 changes: 25 additions & 29 deletions public/js/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -57788,24 +57788,31 @@ new Vue({
this.eventSelected = "";
this.spaSelected = "";
this.numPersonsTrip = 1;
this.dayHourServ = "";
this.statusRoom = "";
this.dayHourServ = '';
this.quantityServ = '';
this.hourTaxi = '';
this.productSelected = [];
this.productCant = [1, 1, 1];
this.productPrice = [];
this.numProducts = [0];
this.nP = 1;
this.numSnacks = [0];
this.nS = 1;
this.numDrinks = [0];
this.nD = 1;
this.showSnack = ['true'];
this.petWater = false, this.petStandardFood = false, this.petPremiumFood = false, this.petSnacks = false, this.petFood = "", this.errores = "";
this.errorExists = false;
this.errorDayHour = false;
this.precioTotalSD = 0;
this.pedidoHecho = false, this.actualDate();
this.showPrecioProduct = false;
this.petWater = false;
this.petSnacks = false;
this.petFood = "";
this.errores = "";
this.errorDayHour = false;
this.errorExists = false;
this.errorPlazas = false;
this.errorPlazas = false;
this.tripPlaces = 0;
this.eventPlaces = 0;
this.showCancelConfirm = false;
this.pedidoHecho = false;

this.actualDate();
this.getHistory();
},
showOut: function showOut() {
Expand Down Expand Up @@ -57889,7 +57896,7 @@ new Vue({

}).then(function (response) {
_this13.pedidoHecho = true;
_this13.showResult = true;

_this13.errorExists = false;
}).catch(function (error) {
_this13.errorExists = true;
Expand Down Expand Up @@ -57932,7 +57939,8 @@ new Vue({
people_num: this.numPersonsTrip

}).then(function (response) {
_this15.showResult = true;

_this15.pedidoHecho = true;
}).catch(function (error) {

_this15.errores = error.response.data;
Expand All @@ -57948,15 +57956,13 @@ new Vue({
this.errorPlazas = false;
var urlInsEvent = 'admin/service/event';
axios.post(urlInsEvent, {
event_type_id: this.eventSelected
event_type_id: this.eventSelected,
people_num: this.numPersonsTrip

}).then(function (response) {
_this16.showResult = true;
toastr.success("adios");
console.log("correcto eventtt");
_this16.pedidoHecho = true;
}).catch(function (error) {
_this16.errores = error.response.data;
console.log("evevevvent no");
});
}
},
Expand All @@ -57971,14 +57977,9 @@ new Vue({
day_hour: this.dayHourServ

}).then(function (response) {
_this17.showResult = true;
toastr.success("adios");
console.log("correcto taxiiii");
_this17.pedidoHecho = true;
}).catch(function (error) {

toastr.success("sdfsadf");
_this17.errores = error.response.data;
console.log("taxino no");
});
}
},
Expand All @@ -57994,14 +57995,9 @@ new Vue({
water: this.petWater,
snacks: this.petSnacks
}).then(function (response) {
_this18.showResult = true;
toastr.success("adios");
console.log("correcto dogg");
_this18.pedidoHecho = true;
}).catch(function (error) {

toastr.success("sdfsadf");
_this18.errores = error.response.data;
console.log("dooogg no");
});
},
bttnMas: function bttnMas() {
Expand Down
85 changes: 38 additions & 47 deletions resources/assets/js/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -239,33 +239,33 @@ Vue.component('confirmcancel', require('./components/confirmCancel.vue'))
this.window[num]=!this.window[num];
this.showResult = false;

this.tripSelected="";
this.eventSelected="";
this.spaSelected="";
this.numPersonsTrip=1;
this.dayHourServ="";
this.quantityServ='';
this.hourTaxi='';
this.productSelected=[];
this.productCant=[1,1,1];
this.productPrice=[];
this.numProducts=[0];
this.nP=1;
this.numSnacks=[0];
this.nS=1;
this.numDrinks=[0];
this.nD=1;
this.showSnack=['true'];
this.petWater=false,
this.petStandardFood=false,
this.petPremiumFood=false,
this.petSnacks=false,
this.petFood="",
this.errores= "";
this.errorExists = false;
this.errorDayHour = false;
this.precioTotalSD= 0;
this.pedidoHecho= false,
this.tripSelected="";
this.eventSelected="";
this.spaSelected="";
this.numPersonsTrip=1;
this.statusRoom="";
this.dayHourServ='';
this.quantityServ='';
this.hourTaxi='';
this.productSelected=[];
this.productCant=[1,1,1];
this.productPrice=[];
this.numProducts=[0];
this.nP=1;
this.precioTotalSD= 0;
this.showPrecioProduct=false;
this.petWater=false;
this.petSnacks=false;
this.petFood="";
this.errores= "";
this.errorDayHour= false;
this.errorExists = false;
this.errorPlazas=false;
this.errorPlazas=false;
this.tripPlaces= 0;
this.eventPlaces=0;
this.showCancelConfirm= false;
this.pedidoHecho= false;

this.actualDate();
this.getHistory();
Expand Down Expand Up @@ -354,7 +354,7 @@ Vue.component('confirmcancel', require('./components/confirmCancel.vue'))

}).then(response=> {
this.pedidoHecho=true;
this.showResult = true;

this.errorExists = false;
}).
catch(error=> {
Expand Down Expand Up @@ -399,7 +399,8 @@ Vue.component('confirmcancel', require('./components/confirmCancel.vue'))
people_num: this.numPersonsTrip

}).then(response => {
this.showResult = true;

this.pedidoHecho=true;

}).
catch(error => {
Expand All @@ -417,16 +418,15 @@ Vue.component('confirmcancel', require('./components/confirmCancel.vue'))
this.errorPlazas = false;
var urlInsEvent = 'admin/service/event';
axios.post(urlInsEvent, {
event_type_id: this.eventSelected
event_type_id: this.eventSelected,
people_num:this.numPersonsTrip,

}).then(response => {
this.showResult = true;
toastr.success("adios");
console.log("correcto eventtt");
this.pedidoHecho=true;
}).
catch(error => {
this.errores = error.response.data;
console.log("evevevvent no");


})
}
Expand All @@ -440,16 +440,11 @@ Vue.component('confirmcancel', require('./components/confirmCancel.vue'))
day_hour: this.dayHourServ

}).then(response => {
this.showResult = true;
toastr.success("adios");
console.log("correcto taxiiii");
this.pedidoHecho=true;

}).
catch(error => {

toastr.success("sdfsadf");
this.errores = error.response.data;
console.log("taxino no");

})
}
},
Expand All @@ -463,14 +458,10 @@ Vue.component('confirmcancel', require('./components/confirmCancel.vue'))
water:this.petWater,
snacks:this.petSnacks
}).then(response=>{
this.showResult = true;
toastr.success("adios");
console.log("correcto dogg");
this.pedidoHecho=true;
}).catch(error=>{

toastr.success("sdfsadf");
this.errores = error.response.data;
console.log("dooogg no");


})
},
Expand Down
2 changes: 1 addition & 1 deletion resources/views/guest/dashboard.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -422,7 +422,7 @@ class="fas fa-long-arrow-alt-left"></i></button>
<p><strong>{{trans('smartstay.trips.day')}}: </strong>@{{ item.day_week }}</p>
<p><strong>{{trans('smartstay.trips.price')}}: </strong>@{{ setPriceTrip(item.price) }} €</p>
</div>
<img v-bind:src="item.image" alt="Trip image" style="width:200px;align-self: center" class="col-md-4 col-sm-5 col-xs-5 col-lg-5 col-xl-5">
<img v-bind:src="item.image" alt="Trip image" style="width:150px;align-self: center" class="col-md-4 col-sm-5 col-xs-5 col-lg-5 col-xl-5">
</div>
</div>

Expand Down
2 changes: 1 addition & 1 deletion resources/views/layout.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@

<historyorders v-if="showHistory && history.length>0" @close="closeHistory"></historyorders>

{{--@{{$data}}--}}
@{{$data}}
<transition name="fade-out">
<div id="loadingScreen" v-if="loadingScreen">
<h2>Welcome</h2>
Expand Down

0 comments on commit 1053a13

Please sign in to comment.








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/eduardozo/SmartStay/commit/1053a136eff848aff461a04dcef0083b17bcf6ad

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy