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
5c138740
Commit
5c138740
authored
Feb 04, 2020
by
muhsin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed styling, changedetails page, 'shoping' spelling
parent
dba0e182
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
156 additions
and
114 deletions
+156
-114
address.page.scss
src/app/address/address.page.scss
+54
-51
app.component.ts
src/app/app.component.ts
+1
-1
cart.page.html
src/app/cart/cart.page.html
+1
-1
catagory.page.scss
src/app/catagory/catagory.page.scss
+0
-0
changedetails.page.html
src/app/changedetails/changedetails.page.html
+3
-3
changedetails.page.ts
src/app/changedetails/changedetails.page.ts
+21
-12
profile.page.html
src/app/profile/profile.page.html
+6
-6
profile.page.ts
src/app/profile/profile.page.ts
+10
-4
wishlist.page.html
src/app/wishlist/wishlist.page.html
+32
-32
wishlist.ts
src/config/services/wishlist.ts
+14
-0
update.service.ts
src/config/update.service.ts
+14
-4
No files found.
src/app/address/address.page.scss
View file @
5c138740
.address-wrapper
{
padding
:
15px
;
padding-bottom
:
11%
;
.address-radio
{
background-image
:
url('../../assets/radio.png')
;
-webkit-appearance
:
none
;
background-repeat
:
no-repeat
;
background-position
:
center
;
background-size
:
25px
;
height
:
auto
;
padding
:
15px
;
.address-radio
{
background-image
:
url("../../assets/radio.png")
;
-webkit-appearance
:
none
;
background-repeat
:
no-repeat
;
background-position
:
center
;
background-size
:
25px
;
height
:
auto
;
padding
:
15px
;
border-radius
:
5px
;
outline
:
none
;
transition
:
all
.6s
ease-in-out
;
}
.address-radio
:checked
{
background-image
:
url("../../assets/radio-checked.png")
;
}
.address-radio
:checked
+
.show-btn
{
opacity
:
1
;
}
h1
{
font-size
:
18px
;
margin-top
:
6px
;
padding-left
:
10px
;
}
p
{
margin-top
:
20px
;
padding-left
:
10px
;
color
:
#B0AEC7
;
}
button
{
background
:
none
;
outline
:
none
;
}
img
{
width
:
35px
;
}
border-radius
:
5px
;
outline
:
none
;
transition
:
all
0
.6s
ease-in-out
;
}
.address-radio
:checked
{
background-image
:
url('../../assets/radio-checked.png')
;
}
.address-radio
:checked
+
.show-btn
{
opacity
:
1
;
}
h1
{
font-size
:
18px
;
margin-top
:
6px
;
padding-left
:
10px
;
}
p
{
margin-top
:
20px
;
padding-left
:
10px
;
color
:
#b0aec7
;
}
button
{
background
:
none
;
outline
:
none
;
}
img
{
width
:
35px
;
}
}
.address-btn-wrapper
{
padding
:
15px
;
position
:
absolute
;
bottom
:
50px
;
left
:
0
;
right
:
0
;
button
{
width
:
100%
;
background-color
:
#29285b
;
color
:
#fff
;
border-radius
:
8px
;
height
:
45px
;
font-size
:
16px
;
text-transform
:
uppercase
;
}
}
\ No newline at end of file
padding
:
15px
;
padding-top
:
0
;
padding-bottom
:
10px
;
background-color
:
#fff
;
position
:
fixed
;
bottom
:
0px
;
left
:
0
;
right
:
0
;
button
{
width
:
100%
;
background-color
:
#29285b
;
color
:
#fff
;
border-radius
:
8px
;
height
:
45px
;
font-size
:
16px
;
text-transform
:
uppercase
;
}
}
src/app/app.component.ts
View file @
5c138740
...
...
@@ -114,7 +114,7 @@ export class AppComponent {
const
currentUrl
=
this
.
router
.
url
.
split
(
'/'
);
const
index
=
restrictedUrl
.
findIndex
(
x
=>
x
===
currentUrl
[
1
]);
// console.log(currentUrl[1], index, this.state);
console
.
log
(
this
.
tabData
);
//
console.log(this.tabData);
if
(
index
>
-
1
||
this
.
tabData
===
false
)
{
return
true
;
}
else
{
...
...
src/app/cart/cart.page.html
View file @
5c138740
...
...
@@ -262,7 +262,7 @@
[
hidden
]="
currentIndex
!=
0
"
>
<div
class=
"continue"
(
click
)="
goToPage
('
productlist
')"
>
CONTINUE SHOPING
CONTINUE SHOP
P
ING
</div>
<div
class=
"checkout"
(
click
)="
next
(
1
)"
>
CHECKOUT
</div>
</div>
...
...
src/app/catagory/catagory.page.scss
View file @
5c138740
This diff is collapsed.
Click to expand it.
src/app/changedetails/changedetails.page.html
View file @
5c138740
...
...
@@ -21,7 +21,7 @@
class=
""
type=
"text"
[(
ngModel
)]="
userData
&&
userData
.
name
"
[(
placeholder
)]="
userData
&&
userData
.
n
ame
"
placeholder=
"Change your N
ame"
#
name=
"ngModel"
/>
<div
...
...
@@ -39,7 +39,7 @@
class=
""
name=
"emailId"
type=
"mail"
[(
placeholder
)]="
userData
&&
userData
.
emailI
d
"
placeholder=
"email cannot be change
d"
/>
</div>
...
...
@@ -53,7 +53,7 @@
pattern=
"(\(+61\)|\+61|\(0[1-9]\)|0[1-9])?( ?-?[0-9]){6,9}"
maxlength=
"10"
[(
ngModel
)]="
userData
&&
userData
.
phone
"
[(
placeholder
)]="
userData
&&
userData
.
phone
"
placeholder=
"Change your Phone Number
"
#
phone=
"ngModel"
/>
<div
...
...
src/app/changedetails/changedetails.page.ts
View file @
5c138740
...
...
@@ -32,10 +32,18 @@ export class ChangedetailsPage implements OnInit {
private
service
:
ServiceService
)
{
// Gets userdata
this
.
service
.
get
(
'params'
).
then
(
val
=>
{
this
.
userData
=
val
;
console
.
log
(
val
);
this
.
service
.
get
(
'userData'
).
then
(
val
=>
{
console
.
log
(
JSON
.
parse
(
val
));
this
.
userData
=
JSON
.
parse
(
val
);
console
.
log
(
this
.
userData
);
});
// this.service.get('user').then(data => {
// if (data) {
// this.userData = JSON.parse(data);
// console.log(this.userData);
// }
// });
}
ngOnInit
()
{}
...
...
@@ -54,17 +62,18 @@ export class ChangedetailsPage implements OnInit {
console
.
log
(
form
.
value
);
if
(
form
.
valid
)
{
// Change Password
if
(
form
.
value
.
password
&&
form
.
value
.
password
!=
form
.
value
.
confirmPassword
)
{
// this.register.updatePassword(form.value.password);
if
(
form
.
value
.
password
)
{
if
(
form
.
value
.
password
===
form
.
value
.
confirmPassword
)
{
// this.register.updateData(form.value, this.userData.uid);
// this.register.updatePassword(form.value.password);
console
.
log
(
'Password Changed and profile updated'
);
}
else
{
console
.
log
(
'Password should match'
);
}
}
else
{
alert
(
'Password should match'
);
this
.
register
.
updateData
(
form
.
value
,
this
.
userData
);
console
.
log
(
'profile updated'
);
}
// Calls update user data fn
// this.register.updateData(form.value, this.userData.uid);
console
.
log
(
'valid form values'
,
form
.
value
);
}
}
...
...
src/app/profile/profile.page.html
View file @
5c138740
...
...
@@ -71,20 +71,20 @@
</ion-row>
</div>
<hr
/>
<ion-row>
<ion-row
(
click
)="
goToPage
('
wishlist
')"
>
<ion-col
class=
"textLeft p0"
>
<p>
Wishlist
</p>
</ion-col>
<ion-col
class=
"textRight p0"
(
click
)="
goToPage
('
wishlist
')"
>
<ion-col
class=
"textRight p0"
>
<h6>
(0)
</h6>
</ion-col>
</ion-row>
<hr
/>
<ion-row>
<ion-row
(
click
)="
goToPage
('
address
')"
>
<ion-col
class=
"textLeft p0"
>
<p>
Address
</p>
</ion-col>
<ion-col
class=
"textRight p0"
(
click
)="
goToPage
('
address
')"
>
<ion-col
class=
"textRight p0"
>
<h6
*
ngIf=
"addressService.addList"
>
({{addressService.addressList.length}})
</h6>
...
...
@@ -102,11 +102,11 @@
</ion-col>
</ion-row>
<hr /> -->
<ion-row>
<ion-row
(
click
)="
goToPage
('
myorder
')"
>
<ion-col
class=
"textLeft p0"
>
<p>
My Order
</p>
</ion-col>
<ion-col
class=
"textRight p0"
(
click
)="
goToPage
('
myorder
')"
>
<ion-col
class=
"textRight p0"
>
<h6>
<ion-icon
name=
"arrow-forward"
></ion-icon>
</h6>
...
...
src/app/profile/profile.page.ts
View file @
5c138740
...
...
@@ -41,6 +41,7 @@ export class ProfilePage implements OnInit {
downloadURL
;
constructor
(
private
route
:
ActivatedRoute
,
private
router
:
Router
,
private
storage
:
AngularFireStorage
,
private
useService
:
UserService
,
...
...
@@ -56,10 +57,14 @@ export class ProfilePage implements OnInit {
}
});
this
.
service
.
get
(
'userData'
).
then
(
data
=>
{
if
(
data
)
{
this
.
loggedUser
=
JSON
.
parse
(
data
);
}
// Listens to url
route
.
params
.
subscribe
(
val
=>
{
// Get user Data
this
.
service
.
get
(
'userData'
).
then
(
data
=>
{
if
(
data
)
{
this
.
loggedUser
=
JSON
.
parse
(
data
);
}
});
});
}
...
...
@@ -69,6 +74,7 @@ export class ProfilePage implements OnInit {
}
ngOnInit
()
{
console
.
log
(
'profile page'
);
const
This
=
this
;
setTimeout
(()
=>
{
this
.
user
=
this
.
useService
.
users
;
...
...
src/app/wishlist/wishlist.page.html
View file @
5c138740
...
...
@@ -9,42 +9,42 @@
</div>
<ion-content>
<
!-- <
div class="wishlist-wrapper">
<ul>
<li>
<div class="wishlist_image">
<img src="../../assets/img-list.png"
>
</div>
<div class="wishlist_detail">
<p class="floatLeft">European Style V Neck</p>
<span class="floatRight"><img src="../../assets/heart.png"
></span>
<div class="clear"></div>
<p>Green, Small</p>
<h1>AU$88.00</h1>
</div>
<div class="clear"></div>
</li>
<li>
<div class="wishlist_image">
<img src="../../assets/img-list.png"
>
</div>
<div class="wishlist_detail">
<p class="floatLeft">European Style V Neck</p>
<span class="floatRight"><img src="../../assets/heart.png"
></span>
<div class="clear"></div>
<p>Green, Small</p>
<h1>AU$88.00</h1>
</div>
<div class="clear"></div>
</li>
</ul>
</div> --
>
<div
class=
"wishlist-wrapper"
>
<ul>
<li>
<div
class=
"wishlist_image"
>
<img
src=
"../../assets/img-list.png"
/
>
</div>
<div
class=
"wishlist_detail"
>
<p
class=
"floatLeft"
>
European Style V Neck
</p>
<span
class=
"floatRight"
><img
src=
"../../assets/heart.png"
/
></span>
<div
class=
"clear"
></div>
<p>
Green, Small
</p>
<h1>
AU$88.00
</h1>
</div>
<div
class=
"clear"
></div>
</li>
<li>
<div
class=
"wishlist_image"
>
<img
src=
"../../assets/img-list.png"
/
>
</div>
<div
class=
"wishlist_detail"
>
<p
class=
"floatLeft"
>
European Style V Neck
</p>
<span
class=
"floatRight"
><img
src=
"../../assets/heart.png"
/
></span>
<div
class=
"clear"
></div>
<p>
Green, Small
</p>
<h1>
AU$88.00
</h1>
</div>
<div
class=
"clear"
></div>
</li>
</ul>
</div
>
<!--
<div class="empty-wishlist-wrapper">
<img src="../../assets/wishlist.png" />
<h1>There is no products added</h1>
<button (click)="goToPage('home')">shop now</button>
</div>
</div>
-->
<div
class=
"footer-btns-wrapper"
>
<button
class=
"btn-clear"
>
Clear All
</button>
...
...
src/config/services/wishlist.ts
0 → 100644
View file @
5c138740
export
interface
Wishlist
{
amount
:
string
;
bookDate
:
any
;
pickupLocation
:
any
;
deliveryLocation
:
any
;
deliveryAddress
:
any
;
status
:
number
;
orderStatus
:
number
;
riderName
:
string
;
orderId
:
string
;
time
:
string
;
product
:
any
;
orderCode
:
string
;
}
src/config/update.service.ts
View file @
5c138740
...
...
@@ -47,22 +47,32 @@ export class UpdateService {
// });
}
updateData
(
userData
:
UpdateUserDetails
,
uid
:
string
)
{
updateData
(
userData
:
UpdateUserDetails
,
oldData
:
User
)
{
this
.
type
=
2
;
const
postData
:
UpdateUserDetails
=
{
phone
:
userData
.
phone
,
name
:
userData
.
name
};
const
updateOldData
=
{
...
oldData
,
phone
:
userData
.
phone
,
name
:
userData
.
name
};
this
.
userPostData
=
postData
;
this
.
afs
.
collection
(
'customers'
)
.
doc
(
uid
)
.
doc
(
oldData
.
uid
)
.
update
(
postData
)
.
then
(()
=>
{
console
.
log
(
'success'
);
this
.
router
.
navigateByUrl
(
'profile'
);
this
.
service
.
set
(
'userData'
,
JSON
.
stringify
(
updateOldData
))
.
then
(
res
=>
{
console
.
log
(
'success'
,
updateOldData
,
res
);
this
.
router
.
navigateByUrl
(
'profile'
);
})
.
catch
(
err
=>
console
.
log
(
err
));
})
.
catch
(
error
=>
{
console
.
log
(
error
);
...
...
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