Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
getmerider
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
amal
getmerider
Commits
b981c88f
Commit
b981c88f
authored
Sep 13, 2019
by
Adarsh K
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sprint 2
parent
68241888
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
59 additions
and
41 deletions
+59
-41
config.xml
config.xml
+1
-1
package.json
package.json
+2
-1
home.module.ts
src/app/home/home.module.ts
+1
-1
riderlounge.page.html
src/app/riderlounge/riderlounge.page.html
+20
-23
riderlounge.page.scss
src/app/riderlounge/riderlounge.page.scss
+18
-0
riderlounge.page.ts
src/app/riderlounge/riderlounge.page.ts
+13
-4
auth.service.ts
src/config/auth.service.ts
+2
-1
myorder.service.ts
src/config/myorder.service.ts
+1
-5
myorder.ts
src/config/services/myorder.ts
+1
-5
No files found.
config.xml
View file @
b981c88f
...
...
@@ -15,7 +15,7 @@
<preference
name=
"android-minSdkVersion"
value=
"19"
/>
<preference
name=
"BackupWebStorage"
value=
"none"
/>
<preference
name=
"orientation"
value=
"portrait"
/>
<preference
name=
"ShowSplashScreenSpinner"
value=
"false"
/>
<preference
name=
"ShowSplashScreenSpinner"
value=
"false"
/>
<preference
name=
"SplashMaintainAspectRatio"
value=
"true"
/>
<preference
name=
"FadeSplashScreenDuration"
value=
"300"
/>
<preference
name=
"SplashShowOnlyFirstTime"
value=
"false"
/>
...
...
package.json
View file @
b981c88f
...
...
@@ -85,4 +85,4 @@
"android"
]
}
}
}
\ No newline at end of file
src/app/home/home.module.ts
View file @
b981c88f
...
...
@@ -14,7 +14,7 @@ import { HomePage } from './home.page';
IonicModule
,
AgmDirectionModule
,
AgmCoreModule
.
forRoot
({
apiKey
:
'AIzaSy
AK3Av2e2dunqInYEaAVJPmzK5HTi0gubw
'
apiKey
:
'AIzaSy
Bn6hOlr6YHcZAmbptlsmbhvH5iQllWflE
'
}),
RouterModule
.
forChild
([
{
...
...
src/app/riderlounge/riderlounge.page.html
View file @
b981c88f
...
...
@@ -55,30 +55,22 @@
<div
class=
"clear"
></div>
</div>
<hr>
<!-- <div class="items_div">
<ion-row>
<ion-col class="textLeft">
<input class="styled-checkbox" id="styled-checkbox-1" type="checkbox" value="value1">
<label for="styled-checkbox-1">Men's Shirt</label>
</ion-col>
<ion-col class="textRight">
<p>AU$ 88</p>
</ion-col>
</ion-row>
<ion-row>
<div
class=
"items_div"
>
<ion-row
*
ngFor=
"let product of order.product"
>
<ion-col
class=
"textLeft"
>
<input class="styled-checkbox" id="styled-checkbox-
2" type="checkbox" value="value2"
>
<label for="styled-checkbox-
2">Men's Jeans
</label>
<input
class=
"styled-checkbox"
id=
"styled-checkbox-
1"
type=
"checkbox"
value=
"value1"
checked
disabled
>
<label
for=
"styled-checkbox-
1"
>
{{product.prodName}}
</label>
</ion-col>
<ion-col
class=
"textRight"
>
<p>A
U$ 72
</p>
<p>
A
$ {{product.price}}
</p>
</ion-col>
</ion-row>
</div>
-->
</div>
<div
class=
"time"
>
<strong>
05
</strong>
Mnt
</div>
<div
class=
"reach_btn"
(
click
)="
next
(
5
)"
>
PRODUCT COLLECTED
</div>
<div
class=
"reach_btn"
(
click
)="
next
(
5
)"
*
ngIf=
"shopperState==3"
>
PRODUCT COLLECTED
</div>
<div
*
ngIf=
"shopperState < 3"
class=
"awaiting_response"
>
Awaiting Product Packed
</div>
<div
class=
"clear"
></div>
</div>
</div>
...
...
@@ -119,23 +111,23 @@
<div
class=
"clear"
></div>
</div>
<hr>
<
!-- <
div class="items_div">
<div
class=
"items_div"
>
<ion-row>
<ion-col
class=
"textLeft"
>
<h4>
Products
</h4>
</ion-col>
</ion-row>
<ion-row>
<ion-row
*
ngFor=
"let product of order.product"
>
<ion-col
class=
"textLeft"
>
<label for="styled-checkbox-1">
Men's Shirt
</label>
<label
for=
"styled-checkbox-1"
>
{{product.prodName}}
</label>
</ion-col>
</ion-row>
<ion-row>
<
!-- <
ion-row>
<ion-col class="textLeft">
<label for="styled-checkbox-2">Men's Jeans</label>
</ion-col>
</ion-row>
</div>
-->
</ion-row>
-->
</div>
<div
class=
"time"
>
<strong>
05
</strong>
Mnt
</div>
...
...
@@ -158,7 +150,12 @@
<div
class=
"clear"
></div>
</div>
<hr>
Awaiting Customer Approval
<div
*
ngIf=
"!retry"
class=
"awaiting_response"
>
Awaiting Customer Approval
</div>
<div
*
ngIf=
"retry"
>
<div
class=
"customer_reject"
>
Customer Rejected
</div>
<button
class=
"reject_btn"
(
click
)="
next
(
7
)"
>
Re-Request
</button>
</div>
<div
class=
"clear"
></div>
</div>
</div>
...
...
src/app/riderlounge/riderlounge.page.scss
View file @
b981c88f
...
...
@@ -307,6 +307,23 @@
border-bottom-left-radius
:
15px
;
}
}
.awaiting_response
{
color
:
#a8a8a8
;
padding
:
15px
;
}
.customer_reject
{
color
:rgba
(
255
,
71
,
87
,
1
)
;
padding
:
15px
;
}
.reject_btn
{
width
:
100%
;
color
:rgba
(
255
,
71
,
87
,
1
)
;
border
:
1px
solid
rgba
(
255
,
71
,
87
,
1
);
font-size
:
20px
;
padding
:
15px
;
background
:
transparent
;
}
}
}
}
\ No newline at end of file
src/app/riderlounge/riderlounge.page.ts
View file @
b981c88f
...
...
@@ -24,6 +24,8 @@ export class RiderloungePage implements OnInit {
public
destination
:
any
;
public
renderOptions
:
any
;
public
markerOptions
:
any
;
retry
=
false
;
shopperState
:
number
;
deliveryStatus
:
any
;
...
...
@@ -32,7 +34,10 @@ export class RiderloungePage implements OnInit {
private
route
:
ActivatedRoute
,
private
location
:
Location
,
public
myorder
:
MyordersService
)
{
}
)
{
this
.
retry
=
false
;
this
.
shopperState
=
0
;
}
...
...
@@ -83,14 +88,18 @@ export class RiderloungePage implements OnInit {
next
(
status
:
number
)
{
this
.
retry
=
false
;
this
.
myorder
.
rideStatus
(
status
).
then
((
data
)
=>
{
if
(
status
===
7
)
{
if
(
status
===
7
||
status
===
4
)
{
this
.
myorder
.
getStatus
(
this
.
myorder
.
selItem
.
orderId
).
subscribe
((
res
)
=>
{
console
.
log
(
res
);
this
.
shopperState
=
res
[
0
].
shopperState
;
if
(
res
[
0
].
orderStatus
===
9
)
{
this
.
myorder
.
rideChange
(
this
.
myorder
.
selItem
.
orderId
,
0
);
this
.
goToPage
(
'complete'
);
}
}
else
if
(
res
[
0
].
orderStatus
===
10
)
{
this
.
retry
=
true
;
}
else
{}
});
}
this
.
slides
.
slideNext
();
...
...
@@ -108,7 +117,7 @@ export class RiderloungePage implements OnInit {
console
.
log
(
this
.
currentIndex
);
});
}
}
}
src/config/auth.service.ts
View file @
b981c88f
...
...
@@ -25,9 +25,11 @@ export class AuthService {
if
(
user
)
{
this
.
userData
=
user
;
this
.
service
.
set
(
'user'
,
JSON
.
stringify
(
this
.
userData
));
this
.
router
.
navigateByUrl
(
'home'
);
}
else
{
this
.
service
.
set
(
'user'
,
null
);
JSON
.
parse
(
localStorage
.
getItem
(
'user'
));
this
.
router
.
navigateByUrl
(
'login'
);
}
});
}
...
...
@@ -35,7 +37,6 @@ export class AuthService {
public
async
SignIn
(
email
:
string
,
password
:
string
)
{
return
this
.
afAuth
.
auth
.
signInWithEmailAndPassword
(
email
,
password
).
then
((
result
)
=>
{
console
.
log
(
'success'
);
this
.
router
.
navigateByUrl
(
'home'
);
this
.
SetUserData
(
result
.
user
);
}).
catch
((
error
)
=>
{
window
.
alert
(
error
.
message
);
...
...
src/config/myorder.service.ts
View file @
b981c88f
...
...
@@ -47,11 +47,7 @@ export class MyordersService {
res
.
forEach
((
item
)
=>
{
console
.
log
(
item
);
const
order
:
Myorder
=
{
prodName
:
item
.
prodName
,
color
:
item
.
color
,
image
:
item
.
image
,
amount
:
item
.
amount
,
qty
:
item
.
qty
,
status
:
item
.
status
,
orderStatus
:
item
.
orderStatus
,
bookDate
:
item
.
bookDate
,
...
...
@@ -62,7 +58,7 @@ export class MyordersService {
riderName
:
'John'
,
orderId
:
item
.
orderId
,
orderCode
:
item
.
orderCode
,
size
:
item
.
size
,
product
:
this
.
service
.
key2Array
(
item
.
product
)
,
time
:
'60'
};
this
.
orders
.
push
(
order
);
...
...
src/config/services/myorder.ts
View file @
b981c88f
export
interface
Myorder
{
amount
:
string
;
prodName
:
any
;
image
:
string
;
size
:
string
;
color
:
string
;
qty
:
number
;
bookDate
:
any
;
pickupAddress
:
string
;
pickupLocation
:
any
;
...
...
@@ -16,5 +11,6 @@ export interface Myorder {
orderStatus
:
number
;
riderName
:
string
;
time
:
string
;
product
:
any
;
}
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