Commit d28df32a by Anju M S

newupdate

parent 8e5a8aba
......@@ -21,7 +21,7 @@
{{'common.Choose_your_booking_time' | translate}}
</h5>
<ion-item>
<ion-datetime hourValues="{{time_list}}" displayFormat="hh:mm A" [(ngModel)]="myTime" placeholder="{{'common.Pick_time' | translate}}" (ionChange)="check_time()"></ion-datetime>
<ion-datetime hourValues="{{time_list}}" displayFormat="hh:mm" [(ngModel)]="myTime" placeholder="{{'common.Pick_time' | translate}}" (ionChange)="check_time()"></ion-datetime>
</ion-item>
<br>
<div class="service_list">
......
......@@ -268,7 +268,7 @@ export class ServicePage {
if(this.user!=null){
var myTime = this.tConvert(this.myTime);
var post_data = {
"booking_id":"VMig"+this.user.id+this.result.shop.id,
"booking_id":"VMIG"+this.user.id+this.result.shop.id,
"user_id":this.user.id,
"shop_id":this.result.shop.id,
"booking_date":this.myDate,
......@@ -279,12 +279,12 @@ export class ServicePage {
};
console.log(post_data);
this.service.post_data('booking',post_data).subscribe(data=>{
console.log(data);
console.log('console data'+data);
if(data == '1'){
this.service.presentToast("Sorry, This time is not Available");
return false;
}else{
this.response = {"booking_date":this.myDate,"booking_time":myTime,"booked_id":data.result};
this.response = {"booking_date":this.myDate,"booking_time":myTime,"booked_id":data};
this.navCtrl.push('SuccessPage',{'shop':this.response});
}
......
......@@ -3,7 +3,7 @@
<ion-icon name="ios-checkmark-circle-outline"></ion-icon>
<h1>{{'common.Success!' | translate}}</h1>
<h5>{{'common.Your_booking_has_been_confirmed' | translate}}</h5>
<h5>{{'common.Booking_ID_is' | translate}}<strong>{{result.booked_id}}</strong><br> {{'common.on' | translate}} {{result.booking_date}} {{'common.at' | translate}} {{result.booking_time}}
<h5>{{'common.Booking_ID_is ' | translate}}<strong> {{result.booked_id}} </strong><br> {{'common.on' | translate}} {{result.booking_date}} {{'common.at' | translate}} {{result.booking_time}}
</h5>
</div>
</ion-content>
......
......@@ -19,10 +19,10 @@ export class CommonProvider {
public loadingCtrl: LoadingController,
public toastCtrl: ToastController
) {
this.headers = { 'X-API-KEY': 'mykey' };
this.site_url = 'http://vmig.kz/vmig/';
this.headers = { 'X-API-KEY': 'my_key' };
//this.site_url = 'http://vmig.kz/vmig/';
//this.site_url = 'https://techlabz.in/client/vmig_demo/';//my_key
this.site_url = 'https://techlabz.in/client/vmig_demo/';//my_key
this.webservice_url = this.site_url+'admin/index.php/Webservice_App/';
}
......
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