Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
ydLife
Overview
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Sweet Zhang
ydLife
Commits
312ecb2e
Commit
312ecb2e
authored
Jul 20, 2021
by
Sweet Zhang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
产品资料页面
parent
ecea6eb3
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
57 additions
and
22 deletions
+57
-22
src/app/my/my-routing.module.ts
+1
-1
src/app/my/product-data/product-data.component.html
+8
-1
src/app/my/product-data/product-data.component.scss
+20
-1
src/app/my/product/product.component.html
+1
-1
src/app/my/product/product.component.ts
+27
-18
No files found.
src/app/my/my-routing.module.ts
View file @
312ecb2e
...
@@ -119,7 +119,7 @@ const myRoutes: Routes = [
...
@@ -119,7 +119,7 @@ const myRoutes: Routes = [
{
path
:
'salary_detail'
,
component
:
SalaryDetailComponent
,
canActivate
:[
AuthGuard
]},
{
path
:
'salary_detail'
,
component
:
SalaryDetailComponent
,
canActivate
:[
AuthGuard
]},
{
path
:
'salary_detail/:id'
,
component
:
SalaryFirstYearComponent
,
canActivate
:[
AuthGuard
]},
{
path
:
'salary_detail/:id'
,
component
:
SalaryFirstYearComponent
,
canActivate
:[
AuthGuard
]},
{
path
:
'product'
,
component
:
ProductComponent
,
canActivate
:[
AuthGuard
]},
{
path
:
'product'
,
component
:
ProductComponent
,
canActivate
:[
AuthGuard
]},
{
path
:
'productData'
,
component
:
ProductDataComponent
,
canActivate
:[
AuthGuard
]},
{
path
:
'productData
/:id
'
,
component
:
ProductDataComponent
,
canActivate
:[
AuthGuard
]},
];
];
@
NgModule
({
@
NgModule
({
...
...
src/app/my/product-data/product-data.component.html
View file @
312ecb2e
...
@@ -3,10 +3,17 @@
...
@@ -3,10 +3,17 @@
<h3>
产品海报
</h3>
<h3>
产品海报
</h3>
<div>
<div>
<ul>
<ul>
<li></li>
<li>
<img
src=
"./assets/images/loading_bg.png"
alt=
""
class=
"img-responsive"
>
</li>
<li>
<img
src=
"./assets/images/loading_bg.png"
alt=
""
class=
"img-responsive"
>
</li>
<li>
<img
src=
"./assets/images/loading_bg.png"
alt=
""
class=
"img-responsive"
>
</li>
</ul>
</ul>
</div>
</div>
</div>
</div>
<div
style=
"width: calc(100% + 30px); height: 8px;background: #f6f6f6;margin-left: -15px;"
></div>
<div
class=
"productDataContent"
>
<div
class=
"productDataContent"
>
<h3>
产品资料
</h3>
<h3>
产品资料
</h3>
<div>
<div>
...
...
src/app/my/product-data/product-data.component.scss
View file @
312ecb2e
.productDataContainer
{
.productDataContainer
{
padding
:
15px
;
padding
:
15px
;
.productDataContent
{
h3
{
h3
{
color
:
#444
;
color
:
#444
;
font-size
:
18px
;
font-size
:
18px
;
font-weight
:
400
;
font-weight
:
400
;
margin
:
15px
0
;
}
.productPoster
{
padding-bottom
:
18px
;
h3
{
margin-top
:
0
;
}
ul
{
display
:
flex
;
flex-wrap
:
wrap
;
li
{
min-width
:
30%
;
max-width
:
30%
;
margin-right
:
17px
;
}
li
:last-child
{
margin-right
:
0
;
}
}
}
}
.productDataContent
{
ul
{
ul
{
display
:
flex
;
display
:
flex
;
flex-wrap
:
wrap
;
flex-wrap
:
wrap
;
...
...
src/app/my/product/product.component.html
View file @
312ecb2e
...
@@ -42,7 +42,7 @@
...
@@ -42,7 +42,7 @@
</div>
</div>
</div>
</div>
<div
class=
"dataContent"
>
<div
class=
"dataContent"
>
<div>
资料
</div>
<div
(
click
)="
goData
(
1
)"
>
资料
</div>
<div>
可售
</div>
<div>
可售
</div>
</div>
</div>
</li>
</li>
...
...
src/app/my/product/product.component.ts
View file @
312ecb2e
import
{
Component
,
OnInit
}
from
'@angular/core'
;
import
{
Component
,
OnInit
}
from
'@angular/core'
;
import
{
LifeCommonService
}
from
'../../common/life-common.service'
;
import
{
LifeCommonService
}
from
'../../common/life-common.service'
;
import
{
MyService
}
from
'../../my/my.service'
;
import
{
MyService
}
from
'../../my/my.service'
;
import
{
Router
}
from
"@angular/router"
;
@
Component
({
@
Component
({
selector
:
'ydlife-product'
,
selector
:
'ydlife-product'
,
...
@@ -8,12 +9,14 @@ import { MyService } from '../../my/my.service';
...
@@ -8,12 +9,14 @@ import { MyService } from '../../my/my.service';
styleUrls
:
[
'./product.component.scss'
]
styleUrls
:
[
'./product.component.scss'
]
})
})
export
class
ProductComponent
implements
OnInit
{
export
class
ProductComponent
implements
OnInit
{
leftList
:
Array
<
any
>
;
leftList
:
Array
<
any
>
;
topList
:
Array
<
any
>
;
topList
:
Array
<
any
>
;
rightList
:
Array
<
any
>
;
rightList
:
Array
<
any
>
;
leftSelectedId
:
number
=
null
;
leftSelectedId
:
number
=
null
;
filterSelectedFlag
:
boolean
=
false
;
filterSelectedFlag
:
boolean
=
false
;
constructor
(
private
myService
:
MyService
,
public
lifeCommonService
:
LifeCommonService
)
{
}
constructor
(
private
myService
:
MyService
,
public
lifeCommonService
:
LifeCommonService
,
private
router
:
Router
)
{
}
ngOnInit
()
{
ngOnInit
()
{
this
.
lifeCommonService
.
setTitle
(
'产品库'
);
this
.
lifeCommonService
.
setTitle
(
'产品库'
);
...
@@ -41,26 +44,32 @@ export class ProductComponent implements OnInit {
...
@@ -41,26 +44,32 @@ export class ProductComponent implements OnInit {
}
}
//type:305左侧,309上侧,306筛选
//type:305左侧,309上侧,306筛选
tagViewQuery
(
type
){
tagViewQuery
(
type
)
{
const
param
=
{
const
param
=
{
isActive
:
1
,
isActive
:
1
,
tagViewType
:
type
tagViewType
:
type
}
}
this
.
myService
.
tagViewQuery
(
param
).
subscribe
((
res
)
=>
{
this
.
myService
.
tagViewQuery
(
param
).
subscribe
((
res
)
=>
{
if
(
res
[
'success'
])
{
if
(
res
[
'success'
])
{
if
(
type
==
305
)
{
if
(
type
==
305
)
{
this
.
leftList
=
res
[
'data'
][
'tagViewQueryInfos'
];
this
.
leftList
=
res
[
'data'
][
'tagViewQueryInfos'
];
}
else
if
(
type
==
309
)
{
}
else
if
(
type
==
309
)
{
this
.
topList
=
res
[
'data'
][
'tagViewQueryInfos'
];
this
.
topList
=
res
[
'data'
][
'tagViewQueryInfos'
];
}
else
{
}
else
{
this
.
rightList
=
res
[
'data'
][
'tagViewQueryInfos'
];
this
.
rightList
=
res
[
'data'
][
'tagViewQueryInfos'
];
}
}
}
}
})
})
}
}
// 筛选
// 筛选
allFilter
(){
allFilter
()
{
this
.
tagViewQuery
(
306
);
this
.
tagViewQuery
(
306
);
this
.
filterSelectedFlag
=
true
;
this
.
filterSelectedFlag
=
true
;
}
}
// 进入产品资料页面
goData
(
e
)
{
this
.
router
.
navigate
([
'/productData'
,
e
]);
}
}
}
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