Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
V
vmig_latest
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Anju M S
vmig_latest
Commits
0f360f1e
Commit
0f360f1e
authored
May 28, 2019
by
Anju M S
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'anju' into 'master'
newupdate See merge request
!2
parents
8e5a8aba
d28df32a
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
8 deletions
+8
-8
service.html
src/pages/service/service.html
+1
-1
service.ts
src/pages/service/service.ts
+3
-3
success.html
src/pages/success/success.html
+1
-1
common.ts
src/providers/common/common.ts
+3
-3
No files found.
src/pages/service/service.html
View file @
0f360f1e
...
@@ -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"
>
...
...
src/pages/service/service.ts
View file @
0f360f1e
...
@@ -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"
:
"VM
ig
"
+
this
.
user
.
id
+
this
.
result
.
shop
.
id
,
"booking_id"
:
"VM
IG
"
+
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
});
}
}
...
...
src/pages/success/success.html
View file @
0f360f1e
...
@@ -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>
...
...
src/providers/common/common.ts
View file @
0f360f1e
...
@@ -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/'
;
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment