Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
getme
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
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
amal
getme
Commits
55b5532e
Commit
55b5532e
authored
Sep 04, 2019
by
Adarsh K
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
https://gitlab.techware.co.in/amal/getme
parents
af3c0576
633a9766
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
26 additions
and
4 deletions
+26
-4
app.component.html
src/app/app.component.html
+4
-1
app.component.ts
src/app/app.component.ts
+10
-2
myorder.page.ts
src/app/myorder/myorder.page.ts
+12
-1
No files found.
src/app/app.component.html
View file @
55b5532e
...
@@ -17,7 +17,10 @@
...
@@ -17,7 +17,10 @@
<ul>
<ul>
<li>
Shop
</li>
<li>
Shop
</li>
<li>
About us
</li>
<li>
About us
</li>
<li>
Catagories
</li>
<ion-menu-toggle>
<li
(
click
)="
vieworder
('
myorder
')"
>
View Order
</li>
</ion-menu-toggle>
<div
class=
"sub_menu"
>
<div
class=
"sub_menu"
>
<ul>
<ul>
<li>
Men's Fashion
</li>
<li>
Men's Fashion
</li>
...
...
src/app/app.component.ts
View file @
55b5532e
import
{
Component
}
from
'@angular/core'
;
import
{
Component
}
from
'@angular/core'
;
import
{
Router
,
ActivatedRoute
}
from
'@angular/router'
;
import
{
Platform
}
from
'@ionic/angular'
;
import
{
Platform
}
from
'@ionic/angular'
;
import
{
SplashScreen
}
from
'@ionic-native/splash-screen/ngx'
;
import
{
SplashScreen
}
from
'@ionic-native/splash-screen/ngx'
;
import
{
StatusBar
}
from
'@ionic-native/status-bar/ngx'
;
import
{
StatusBar
}
from
'@ionic-native/status-bar/ngx'
;
...
@@ -13,7 +13,8 @@ export class AppComponent {
...
@@ -13,7 +13,8 @@ export class AppComponent {
constructor
(
constructor
(
private
platform
:
Platform
,
private
platform
:
Platform
,
private
splashScreen
:
SplashScreen
,
private
splashScreen
:
SplashScreen
,
private
statusBar
:
StatusBar
private
statusBar
:
StatusBar
,
private
router
:
Router
)
{
)
{
this
.
initializeApp
();
this
.
initializeApp
();
}
}
...
@@ -25,4 +26,11 @@ export class AppComponent {
...
@@ -25,4 +26,11 @@ export class AppComponent {
this
.
statusBar
.
overlaysWebView
(
false
);
this
.
statusBar
.
overlaysWebView
(
false
);
});
});
}
}
vieworder
(
path
,
data
=
null
)
{
this
.
router
.
navigateByUrl
(
path
,
{
queryParams
:
data
});
document
.
body
.
scrollTop
=
document
.
documentElement
.
scrollTop
=
0
;
}
}
}
src/app/myorder/myorder.page.ts
View file @
55b5532e
...
@@ -2,6 +2,8 @@ import { Component, OnInit } from '@angular/core';
...
@@ -2,6 +2,8 @@ import { Component, OnInit } from '@angular/core';
import
{
Location
}
from
'@angular/common'
;
import
{
Location
}
from
'@angular/common'
;
import
{
Router
,
ActivatedRoute
}
from
'@angular/router'
;
import
{
Router
,
ActivatedRoute
}
from
'@angular/router'
;
import
{
MyordersService
}
from
'./../../config/myorder.service'
;
import
{
MyordersService
}
from
'./../../config/myorder.service'
;
import
{
ModalController
}
from
'@ionic/angular'
;
import
{
DeliverypopPage
}
from
'../deliverypop/deliverypop.page'
;
@
Component
({
@
Component
({
selector
:
'app-myorder'
,
selector
:
'app-myorder'
,
...
@@ -14,10 +16,19 @@ export class MyorderPage implements OnInit {
...
@@ -14,10 +16,19 @@ export class MyorderPage implements OnInit {
private
router
:
Router
,
private
router
:
Router
,
private
route
:
ActivatedRoute
,
private
route
:
ActivatedRoute
,
private
location
:
Location
,
private
location
:
Location
,
public
myorder
:
MyordersService
public
myorder
:
MyordersService
,
public
modalController
:
ModalController
)
{
}
)
{
}
ngOnInit
()
{
ngOnInit
()
{
this
.
finishpop
();
}
async
finishpop
()
{
const
modal
=
await
this
.
modalController
.
create
({
component
:
DeliverypopPage
});
return
await
modal
.
present
();
}
}
goToPage
(
path
,
data
=
null
)
{
goToPage
(
path
,
data
=
null
)
{
...
...
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