Commit 0f360f1e by Anju M S

Merge branch 'anju' into 'master'

newupdate See merge request !2
parents 8e5a8aba d28df32a
...@@ -21,7 +21,7 @@ ...@@ -21,7 +21,7 @@
{{'common.Choose_your_booking_time' | translate}} {{'common.Choose_your_booking_time' | translate}}
</h5> </h5>
<ion-item> <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> </ion-item>
<br> <br>
<div class="service_list"> <div class="service_list">
......
...@@ -268,7 +268,7 @@ export class ServicePage { ...@@ -268,7 +268,7 @@ export class ServicePage {
if(this.user!=null){ if(this.user!=null){
var myTime = this.tConvert(this.myTime); var myTime = this.tConvert(this.myTime);
var post_data = { 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, "user_id":this.user.id,
"shop_id":this.result.shop.id, "shop_id":this.result.shop.id,
"booking_date":this.myDate, "booking_date":this.myDate,
...@@ -279,12 +279,12 @@ export class ServicePage { ...@@ -279,12 +279,12 @@ export class ServicePage {
}; };
console.log(post_data); console.log(post_data);
this.service.post_data('booking',post_data).subscribe(data=>{ this.service.post_data('booking',post_data).subscribe(data=>{
console.log(data); console.log('console data'+data);
if(data == '1'){ if(data == '1'){
this.service.presentToast("Sorry, This time is not Available"); this.service.presentToast("Sorry, This time is not Available");
return false; return false;
}else{ }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}); this.navCtrl.push('SuccessPage',{'shop':this.response});
} }
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
<ion-icon name="ios-checkmark-circle-outline"></ion-icon> <ion-icon name="ios-checkmark-circle-outline"></ion-icon>
<h1>{{'common.Success!' | translate}}</h1> <h1>{{'common.Success!' | translate}}</h1>
<h5>{{'common.Your_booking_has_been_confirmed' | translate}}</h5> <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> </h5>
</div> </div>
</ion-content> </ion-content>
......
...@@ -19,10 +19,10 @@ export class CommonProvider { ...@@ -19,10 +19,10 @@ export class CommonProvider {
public loadingCtrl: LoadingController, public loadingCtrl: LoadingController,
public toastCtrl: ToastController public toastCtrl: ToastController
) { ) {
this.headers = { 'X-API-KEY': 'mykey' }; this.headers = { 'X-API-KEY': 'my_key' };
this.site_url = 'http://vmig.kz/vmig/'; //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/'; 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