Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
dcarfixers_angular
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
16
Issues
16
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
Tobin
dcarfixers_angular
Commits
6183a69c
Commit
6183a69c
authored
Jun 03, 2019
by
Jansa Jose
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cart
parent
db11cc81
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
252 additions
and
23 deletions
+252
-23
address.component.ts
src/app/purchase/address/address.component.ts
+1
-1
cart.component.html
src/app/purchase/cart/cart.component.html
+0
-0
cart.component.scss
src/app/purchase/cart/cart.component.scss
+3
-0
cart.component.ts
src/app/purchase/cart/cart.component.ts
+157
-11
orders.component.html
src/app/purchase/orders/orders.component.html
+27
-2
orders.component.ts
src/app/purchase/orders/orders.component.ts
+38
-6
productdetails.component.html
...app/purchase/productdetails/productdetails.component.html
+2
-2
productdetails.component.ts
src/app/purchase/productdetails/productdetails.component.ts
+23
-0
productlist.component.ts
src/app/purchase/productlist/productlist.component.ts
+1
-1
No files found.
src/app/purchase/address/address.component.ts
View file @
6183a69c
...
@@ -42,7 +42,7 @@ export class AddressComponent implements OnInit {
...
@@ -42,7 +42,7 @@ export class AddressComponent implements OnInit {
checkProductId
(){
checkProductId
(){
this
.
prdtData
=
JSON
.
parse
(
this
.
webService
.
getLocalStorageItem
(
'productDetails'
));
this
.
prdtData
=
JSON
.
parse
(
this
.
webService
.
getLocalStorageItem
(
'productDetails'
));
console
.
log
(
this
.
prdtData
)
if
(
this
.
prdtData
&&
this
.
prdtData
[
'product_id'
]
>
0
){
if
(
this
.
prdtData
&&
this
.
prdtData
[
'product_id'
]
>
0
){
this
.
product_id
=
this
.
prdtData
[
'product_id'
];
this
.
product_id
=
this
.
prdtData
[
'product_id'
];
}
else
{
}
else
{
...
...
src/app/purchase/cart/cart.component.html
View file @
6183a69c
This diff is collapsed.
Click to expand it.
src/app/purchase/cart/cart.component.scss
View file @
6183a69c
...
@@ -3,6 +3,9 @@
...
@@ -3,6 +3,9 @@
width
:
100%
;
width
:
100%
;
ul
{
ul
{
padding
:
0px
;
padding
:
0px
;
&
:
:-
webkit-scrollbar
{
display
:
none
;
}
li
{
li
{
list-style
:
none
;
list-style
:
none
;
background
:
#fff
;
background
:
#fff
;
...
...
src/app/purchase/cart/cart.component.ts
View file @
6183a69c
import
{
Component
,
OnInit
}
from
'@angular/core'
;
import
{
Component
,
OnInit
,
ViewChild
,
ElementRef
}
from
'@angular/core'
;
import
{
NgxCarousel
}
from
'ngx-carousel'
;
import
{
NgxCarousel
}
from
'ngx-carousel'
;
import
{
WebService
}
from
'../../provider/web.service'
;
import
{
ImageStorage
}
from
'../../../environments/server.config'
;
import
{
Router
,
ActivatedRoute
}
from
'@angular/router'
;
import
{
Router
,
ActivatedRoute
}
from
'@angular/router'
;
import
{
exists
}
from
'fs'
;
@
Component
({
@
Component
({
selector
:
'app-cart'
,
selector
:
'app-cart'
,
...
@@ -9,32 +12,175 @@ import { Router,ActivatedRoute } from '@angular/router';
...
@@ -9,32 +12,175 @@ import { Router,ActivatedRoute } from '@angular/router';
})
})
export
class
CartComponent
implements
OnInit
{
export
class
CartComponent
implements
OnInit
{
count
:
any
;
count
:
any
;
loginDetails
:
any
;
loader
:
boolean
;
cartData
:
any
;
page
:
number
=
1
;
total_page
:
number
=
1
;
imageServer
:
any
;
trend_loader
:
boolean
;
trendingProductData
:
any
;
product_data
:
any
;
cartQuantity
:
any
[]
=
new
Array
();
confirmParam
:
string
=
''
;
confirmCallBak
:
string
=
''
;
@
ViewChild
(
"confirmModal"
)
public
confirmModalRef
:
ElementRef
;
public
carouselTile
:
NgxCarousel
;
public
carouselTile
:
NgxCarousel
;
constructor
(
constructor
(
private
router
:
Router
,
private
router
:
Router
,
private
route
:
ActivatedRoute
private
route
:
ActivatedRoute
,
public
webService
:
WebService
)
{
)
{
this
.
count
=
0
;
this
.
count
=
1
;
this
.
loader
=
true
;
this
.
imageServer
=
ImageStorage
;
this
.
trend_loader
=
true
;
}
}
add
(){
add
(
cart_id
:
number
){
this
.
count
=
this
.
count
+
1
;
if
(
this
.
cartQuantity
[
cart_id
]
&&
this
.
cartQuantity
[
cart_id
][
'quantity'
]
<
15
){
this
.
cartQuantity
[
cart_id
][
'quantity'
]
=
this
.
cartQuantity
[
cart_id
][
'quantity'
]
+
1
;
this
.
cartQuantity
[
cart_id
][
'total_amount'
]
=
this
.
cartQuantity
[
cart_id
][
'amount'
]
*
this
.
cartQuantity
[
cart_id
][
'quantity'
];
}
}
}
minus
(){
minus
(
cart_id
:
number
){
this
.
count
=
this
.
count
-
1
;
if
(
this
.
cartQuantity
[
cart_id
]
&&
this
.
cartQuantity
[
cart_id
][
'quantity'
]
>
1
){
if
(
this
.
count
<
0
){
this
.
cartQuantity
[
cart_id
][
'quantity'
]
=
this
.
cartQuantity
[
cart_id
][
'quantity'
]
-
1
;
this
.
c
ount
=
0
;
this
.
c
artQuantity
[
cart_id
][
'total_amount'
]
=
this
.
cartQuantity
[
cart_id
][
'amount'
]
*
this
.
cartQuantity
[
cart_id
][
'quantity'
]
;
}
}
}
}
ngOnInit
()
{
ngOnInit
()
{
this
.
checkUserLogin
();
this
.
getCartData
();
this
.
trendingProducts
();
this
.
carouselTile
=
{
grid
:
{
xs
:
1
,
sm
:
2
,
md
:
4
,
lg
:
8
,
all
:
0
},
slide
:
1
,
speed
:
400
,
point
:
{
visible
:
false
},
load
:
2
,
touch
:
true
,
easing
:
'ease'
}
this
.
carouselTile
=
{
grid
:
{
xs
:
1
,
sm
:
2
,
md
:
4
,
lg
:
8
,
all
:
0
},
slide
:
1
,
speed
:
400
,
point
:
{
visible
:
false
},
load
:
2
,
touch
:
true
,
easing
:
'ease'
}
}
}
checkUserLogin
(){
this
.
loginDetails
=
JSON
.
parse
(
this
.
webService
.
getLocalStorageItem
(
'userData'
));
if
(
!
this
.
loginDetails
){
this
.
goToPage
(
'purchaseHome'
,
''
);
}
}
getCartData
(){
if
(
!
this
.
loginDetails
||
!
this
.
loginDetails
.
customer_id
){
return
false
;
}
this
.
loader
=
true
;
this
.
webService
.
post_data
(
'getCartData'
,{
'customer_id'
:
this
.
loginDetails
.
customer_id
,
'page'
:
this
.
page
}).
subscribe
(
response
=>
{
if
(
response
.
status
==
'success'
){
this
.
cartData
=
response
.
data
;
const
thisObj
=
this
;
let
tempArr
:
any
=
Array
();
this
.
cartData
.
forEach
(
function
(
data
,
key
)
{
tempArr
[
data
.
cart_id
]
=
{
'quantity'
:
+
data
.
quantity
,
'amount'
:
data
.
amount
,
'total_amount'
:
data
.
quantity
*
data
.
amount
};
});
thisObj
.
cartQuantity
=
tempArr
;
}
else
{
this
.
cartData
=
false
;
}
this
.
loader
=
false
;
})
}
trendingProducts
(){
this
.
trend_loader
=
true
;
this
.
webService
.
post_data
(
'getTrendingPrdts'
,{
'page'
:
this
.
page
}).
subscribe
(
response
=>
{
if
(
response
.
status
==
'success'
){
this
.
trendingProductData
=
response
.
data
;
}
else
{
this
.
trendingProductData
=
false
;
}
this
.
trend_loader
=
false
;
});
}
removeProduct
(
params
){
this
.
page
=
1
;
this
.
loader
=
true
;
this
.
webService
.
post_data
(
'removeCartPrdt'
,
params
).
subscribe
(
response
=>
{
if
(
response
.
status
==
'success'
){
this
.
getCartData
();
}
this
.
trend_loader
=
false
;
});
}
cnfRemoveProduct
(
cartId
){
if
(
cartId
<
0
){
return
false
;
}
this
.
showConfirmPopUp
(
'removeProduct'
,{
'cart_id'
:
cartId
});
}
showConfirmPopUp
(
fn_name
:
string
,
param
:
any
){
if
(
fn_name
===
''
){
return
false
;
}
if
(
param
){
param
=
JSON
.
stringify
(
param
);
}
this
.
confirmParam
=
param
;
this
.
confirmCallBak
=
fn_name
;
this
.
confirmModalRef
.
nativeElement
.
click
();
}
confirmCallBack
(
fn_name
:
string
,
param
:
string
){
if
(
fn_name
===
''
||
!
this
[
fn_name
]){
return
false
;
}
if
(
param
!==
''
){
param
=
JSON
.
parse
(
param
);
this
[
fn_name
](
param
);
}
else
{
this
[
fn_name
]();
}
}
onScroll
(){
if
(
this
.
total_page
<
this
.
page
){
return
false
;
}
this
.
page
+=
1
;
this
.
loader
=
true
;
this
.
webService
.
post_data
(
'getCartData'
,{
'customer_id'
:
this
.
loginDetails
.
customer_id
,
'page'
:
this
.
page
}).
subscribe
(
response
=>
{
if
(
response
.
status
==
'success'
){
let
thisObj
=
this
;
response
.
data
.
forEach
(
function
(
cartData
,
key
)
{
thisObj
.
cartData
.
push
(
cartData
);
});
}
this
.
loader
=
false
;
});
}
latestPrdtDtls
(
prdt_id
){
this
.
goToPage
(
'productdetails'
,{
"product_id"
:
prdt_id
});
}
buyProduct
(
product_id
,
total_amount
,
cartId
,
quantity
,
amount
){
if
(
cartId
<=
0
||
product_id
<=
0
||
total_amount
<=
0
||
quantity
<=
0
||
amount
<=
0
){
return
false
;
}
this
.
loader
=
true
;
this
.
webService
.
post_data
(
'removeCartPrdt'
,{
'cart_id'
:
cartId
}).
subscribe
(
response
=>
{
if
(
response
.
status
==
'success'
){
this
.
product_data
=
{
amount
:
amount
,
product_id
:
product_id
,
quantity
:
quantity
,
total_amount
:
total_amount
};
this
.
webService
.
setLocalStorageItem
(
'productDetails'
,
JSON
.
stringify
(
this
.
product_data
));
this
.
goToPage
(
'address'
,
''
);
}
this
.
loader
=
false
;
});
}
goToPage
(
path
,
data
=
null
){
goToPage
(
path
,
data
=
null
){
this
.
router
.
navigate
ByUrl
(
path
,{
queryParams
:
data
});
this
.
router
.
navigate
([
path
],{
queryParams
:
data
});
document
.
body
.
scrollTop
=
document
.
documentElement
.
scrollTop
=
0
;
document
.
body
.
scrollTop
=
document
.
documentElement
.
scrollTop
=
0
;
}
}
...
...
src/app/purchase/orders/orders.component.html
View file @
6183a69c
...
@@ -18,7 +18,7 @@
...
@@ -18,7 +18,7 @@
<!-- <h4><div>Color</div><span>Black</span></h4> -->
<!-- <h4><div>Color</div><span>Black</span></h4> -->
<h4><div>
Quantity
</div><span>
{{book.quantity}}
</span></h4>
<h4><div>
Quantity
</div><span>
{{book.quantity}}
</span></h4>
</div>
</div>
<h4><span>
{{book.format_order_id}}
</span><strong
(
click
)="
trackOrder
(
book
.
transId
)"
*
ngIf=
"(book.status == '2' || book.status == '3' || book.status == '4' || book.status == '5')"
>
Track Order
</strong></h4>
<h4
class=
"cpoint"
><span>
{{book.format_order_id}}
</span><strong
(
click
)="
trackOrder
(
book
.
transId
)"
*
ngIf=
"(book.status == '2' || book.status == '3' || book.status == '4' || book.status == '5')"
>
Track Order
</strong></h4>
<h4><div
style=
"width:auto !important;"
>
Ordered On
</div><span>
{{book.datetime | date: "EEE, MMMM dd, yyyy"}}
</span></h4>
<h4><div
style=
"width:auto !important;"
>
Ordered On
</div><span>
{{book.datetime | date: "EEE, MMMM dd, yyyy"}}
</span></h4>
</div>
</div>
<div
class=
"clear"
></div>
<div
class=
"clear"
></div>
...
@@ -38,7 +38,7 @@
...
@@ -38,7 +38,7 @@
<h4
*
ngIf =
"book.status == '7'"
>
<h4
*
ngIf =
"book.status == '7'"
>
<div
*
ngIf=
"book.status == '7'"
>
This item is Canceled
</div>
<div
*
ngIf=
"book.status == '7'"
>
This item is Canceled
</div>
</h4>
</h4>
<div
class=
"cancel
"
*
ngIf=
"(book.status == '2' || book.status == '3'|| book.status == '4')"
(
click
)="
c
ancelOrder
(
book
.
order_id
)"
>
Cancel Item
</div>
<div
class=
"cancel
cpoint"
*
ngIf=
"(book.status == '2' || book.status == '3'|| book.status == '4')"
(
click
)="
cnfC
ancelOrder
(
book
.
order_id
)"
>
Cancel Item
</div>
<div
class=
"clear"
></div>
<div
class=
"clear"
></div>
</div>
</div>
</div>
</div>
...
@@ -84,3 +84,27 @@
...
@@ -84,3 +84,27 @@
</ngx-carousel>
</ngx-carousel>
</div>
</div>
</div>
</div>
<!-- Confirm Modal PopUp-->
<button
#
confirmModal
class=
"hide"
data-toggle=
"modal"
data-target=
"#confirm"
>
Add Vehicle
</button>
<div
class=
"modal"
id=
"confirm"
>
<div
class=
"modal-dialog modal-full"
>
<div
class=
"modal-content background_transparent"
>
<div
class=
"modal-body quote_modal"
>
<div
class=
"confirm_modal_content"
>
<div
class=
"login_modal_inner"
>
<div
class=
"login_success"
>
<h4>
Do You Want to Confirm ?
</h4>
</div>
<div
class=
"row"
>
<div
class=
"col-md-12 textCenter"
>
<button
class=
"btn btn-success"
data-dismiss=
"modal"
(
click
)="
confirmCallBack
(
confirmCallBak
,
confirmParam
)"
>
Yes
</button>
<button
class=
"btn btn-danger"
data-dismiss=
"modal"
>
No
</button>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
\ No newline at end of file
src/app/purchase/orders/orders.component.ts
View file @
6183a69c
import
{
Component
,
OnInit
}
from
'@angular/core'
;
import
{
Component
,
OnInit
,
ViewChild
,
ElementRef
}
from
'@angular/core'
;
import
{
NgxCarousel
}
from
'ngx-carousel'
;
import
{
NgxCarousel
}
from
'ngx-carousel'
;
import
{
WebService
}
from
'../../provider/web.service'
;
import
{
WebService
}
from
'../../provider/web.service'
;
import
{
ImageStorage
}
from
'../../../environments/server.config'
;
import
{
ImageStorage
}
from
'../../../environments/server.config'
;
...
@@ -19,6 +19,10 @@ export class OrdersComponent implements OnInit {
...
@@ -19,6 +19,10 @@ export class OrdersComponent implements OnInit {
imageServer
:
string
;
imageServer
:
string
;
trend_loader
:
boolean
;
trend_loader
:
boolean
;
trendingProductData
:
any
;
trendingProductData
:
any
;
confirmParam
:
string
=
''
;
confirmCallBak
:
string
=
''
;
@
ViewChild
(
"confirmModal"
)
public
confirmModalRef
:
ElementRef
;
public
carouselTile
:
NgxCarousel
;
public
carouselTile
:
NgxCarousel
;
...
@@ -84,12 +88,9 @@ export class OrdersComponent implements OnInit {
...
@@ -84,12 +88,9 @@ export class OrdersComponent implements OnInit {
});
});
}
}
cancelOrder
(
odrId
){
cancelOrder
(
params
){
if
(
odrId
<
0
){
return
false
;
}
this
.
loader
=
true
;
this
.
loader
=
true
;
this
.
webService
.
post_data
(
'cancelOrder'
,
{
"order_id"
:
odrId
}
).
subscribe
(
response
=>
{
this
.
webService
.
post_data
(
'cancelOrder'
,
params
).
subscribe
(
response
=>
{
if
(
response
.
status
==
'success'
){
if
(
response
.
status
==
'success'
){
this
.
getMyOrders
();
this
.
getMyOrders
();
}
}
...
@@ -97,6 +98,37 @@ export class OrdersComponent implements OnInit {
...
@@ -97,6 +98,37 @@ export class OrdersComponent implements OnInit {
})
})
}
}
cnfCancelOrder
(
odrId
){
if
(
odrId
<
0
){
return
false
;
}
this
.
showConfirmPopUp
(
'cancelOrder'
,{
"order_id"
:
odrId
});
}
showConfirmPopUp
(
fn_name
:
string
,
param
:
any
){
if
(
fn_name
===
''
){
return
false
;
}
if
(
param
){
param
=
JSON
.
stringify
(
param
);
}
this
.
confirmParam
=
param
;
this
.
confirmCallBak
=
fn_name
;
this
.
confirmModalRef
.
nativeElement
.
click
();
}
confirmCallBack
(
fn_name
:
string
,
param
:
string
){
if
(
fn_name
===
''
||
!
this
[
fn_name
]){
return
false
;
}
if
(
param
!==
''
){
param
=
JSON
.
parse
(
param
);
this
[
fn_name
](
param
);
}
else
{
this
[
fn_name
]();
}
}
trendingProducts
(){
trendingProducts
(){
this
.
trend_loader
=
true
;
this
.
trend_loader
=
true
;
this
.
webService
.
get_data
(
'getTrendingPrdts'
).
subscribe
(
response
=>
{
this
.
webService
.
get_data
(
'getTrendingPrdts'
).
subscribe
(
response
=>
{
...
...
src/app/purchase/productdetails/productdetails.component.html
View file @
6183a69c
...
@@ -46,8 +46,8 @@
...
@@ -46,8 +46,8 @@
<div
class=
"count_btn"
(
click
)="
add
()"
>
+
</div>
<div
class=
"count_btn"
(
click
)="
add
()"
>
+
</div>
</div>
</div>
<div
class=
"btn_bay"
>
<div
class=
"btn_bay"
>
<button
class=
"btn_cart btn"
>
Add to Cart
</button>
<button
class=
"btn_cart btn"
(
click
)="
addToCart
(
productDetails
.
amount
)"
*
ngIf=
"loginDetails && cartValue == '1'"
>
Add to Cart
</button>
<
!-- <button class="btn_buy btn" (click)="goToPage('address')">Buy Now</button> --
>
<
button
class=
"btn_cart btn"
(
click
)="
goCart
()"
*
ngIf=
"loginDetails && cartValue == '2'"
>
Go to Cart
</button
>
<button
class=
"btn_buy btn"
(
click
)="
buyProduct
(
productDetails
.
amount
)"
>
{{loginDetails?'Buy Now':'Login And Continue'}}
</button>
<button
class=
"btn_buy btn"
(
click
)="
buyProduct
(
productDetails
.
amount
)"
>
{{loginDetails?'Buy Now':'Login And Continue'}}
</button>
</div>
</div>
</div>
</div>
...
...
src/app/purchase/productdetails/productdetails.component.ts
View file @
6183a69c
...
@@ -29,6 +29,7 @@ export class ProductdetailsComponent implements OnInit {
...
@@ -29,6 +29,7 @@ export class ProductdetailsComponent implements OnInit {
page
:
number
=
1
;
page
:
number
=
1
;
reviewArray
:
any
=
new
Array
();
reviewArray
:
any
=
new
Array
();
total_page
:
number
=
1
;
total_page
:
number
=
1
;
cartValue
:
number
=
1
;
@
ViewChild
(
"indexLoginModal"
)
loginModalRef
:
ElementRef
;
@
ViewChild
(
"indexLoginModal"
)
loginModalRef
:
ElementRef
;
...
@@ -88,6 +89,7 @@ export class ProductdetailsComponent implements OnInit {
...
@@ -88,6 +89,7 @@ export class ProductdetailsComponent implements OnInit {
this
.
productDetails
=
response
.
data
;
this
.
productDetails
=
response
.
data
;
this
.
reviewArray
=
response
.
data
.
reviews
.
data
;
this
.
reviewArray
=
response
.
data
.
reviews
.
data
;
this
.
total_page
=
response
.
data
.
reviews
.
meta
.
total_pages
;
this
.
total_page
=
response
.
data
.
reviews
.
meta
.
total_pages
;
this
.
cartValue
=
(
this
.
productDetails
.
cart_id
>
0
)
?
2
:
1
;
if
(
this
.
productDetails
.
images
.
length
>
0
){
if
(
this
.
productDetails
.
images
.
length
>
0
){
thisObj
.
productDetails
.
images
.
forEach
(
function
(
data
)
{
thisObj
.
productDetails
.
images
.
forEach
(
function
(
data
)
{
image
=
thisObj
.
imageServer
+
data
.
image
;
image
=
thisObj
.
imageServer
+
data
.
image
;
...
@@ -145,6 +147,27 @@ export class ProductdetailsComponent implements OnInit {
...
@@ -145,6 +147,27 @@ export class ProductdetailsComponent implements OnInit {
this
.
goToPage
(
'address'
,
''
);
this
.
goToPage
(
'address'
,
''
);
}
}
addToCart
(
amount
){
if
(
!
this
.
loginDetails
){
this
.
loginModalRef
.
nativeElement
.
click
();
return
false
;
}
this
.
loader
=
true
;
this
.
product_data
=
{
product_id
:
this
.
product_id
,
quantity
:
this
.
count
,
amount
:
this
.
count
*
amount
,
customer_id
:
this
.
loginDetails
.
customer_id
};
this
.
webService
.
post_data
(
'addToCart'
,
this
.
product_data
).
subscribe
(
response
=>
{
if
(
response
.
status
==
'success'
){
if
(
response
.
data
>
0
){
this
.
cartValue
=
2
;
}
}
this
.
loader
=
false
;
});
}
goCart
(){
this
.
goToPage
(
'cart'
,
''
);
}
latestPrdtDtls
(
prdt_id
){
latestPrdtDtls
(
prdt_id
){
this
.
goToPage
(
'productdetails'
,{
"product_id"
:
prdt_id
});
this
.
goToPage
(
'productdetails'
,{
"product_id"
:
prdt_id
});
}
}
...
...
src/app/purchase/productlist/productlist.component.ts
View file @
6183a69c
...
@@ -31,8 +31,8 @@ export class ProductlistComponent implements OnInit {
...
@@ -31,8 +31,8 @@ export class ProductlistComponent implements OnInit {
this
.
loader
=
true
;
this
.
loader
=
true
;
this
.
productArray
=
[];
this
.
productArray
=
[];
this
.
filterParam
=
{
"key"
:
''
,
"brand_id"
:
Array
(),
"minPrice"
:
''
,
"maxPrice"
:
''
,
'page'
:
1
};
this
.
filterParam
=
{
"key"
:
''
,
"brand_id"
:
Array
(),
"minPrice"
:
''
,
"maxPrice"
:
''
,
'page'
:
1
};
this
.
imageServer
=
ImageStorage
;
this
.
imageServer
=
ImageStorage
;
route
.
params
.
subscribe
(
val
=>
{
route
.
params
.
subscribe
(
val
=>
{
this
.
route
.
queryParams
.
subscribe
(
params
=>
{
this
.
route
.
queryParams
.
subscribe
(
params
=>
{
this
.
searchKey
=
params
[
'key'
];
this
.
searchKey
=
params
[
'key'
];
...
...
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