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
2035286a
Commit
2035286a
authored
Jul 30, 2021
by
sunchao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
产品库
parent
fc2a3976
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
29 additions
and
17 deletions
+29
-17
src/app/domain/plans.ts
+2
-0
src/app/my/product/product.component.html
+9
-3
src/app/my/product/product.component.ts
+18
-14
No files found.
src/app/domain/plans.ts
View file @
2035286a
...
@@ -36,4 +36,6 @@ export class Plans {
...
@@ -36,4 +36,6 @@ export class Plans {
isActiveForProduct
?:
number
;
isActiveForProduct
?:
number
;
isActiveForPlan
?:
number
;
isActiveForPlan
?:
number
;
isActive
?:
any
;
isActive
?:
any
;
isThirdPartyPurchase
?:
any
;
thirdPartyPurchaseUrl
?:
any
;
}
}
src/app/my/product/product.component.html
View file @
2035286a
...
@@ -21,9 +21,15 @@
...
@@ -21,9 +21,15 @@
<li
*
ngFor=
"let rightItem of rightList"
>
<li
*
ngFor=
"let rightItem of rightList"
>
<h5>
<h5>
<span>
{{rightItem.tagName}}
</span>
<span>
{{rightItem.tagName}}
</span>
<span
class=
"iconfont icon-xiangxia"
<div
*
ngIf=
"rightItem.tagViewQueryInfos && rightItem.tagViewQueryInfos.length>6"
[
ngStyle
]="{'
transform
'
:
rightItem
.
showAll
?
'
rotate
(
180deg
)'
:
'
rotate
(
0
)'}"
(
click
)="
showAll
(
rightItem
)"
style=
"font-size: 12px;"
(
click
)="
showAll
(
rightItem
)"
*
ngIf=
"rightItem.tagViewQueryInfos && rightItem.tagViewQueryInfos.length>6"
></span>
>
<span>
更多
</span>
<span
class=
"iconfont icon-xiangxia"
style=
"font-size: 12px;display: inline-block;"
[
ngStyle
]="{'
transform
'
:
rightItem
.
showAll
?
'
rotate
(
180deg
)'
:
'
rotate
(
0
)'}"
></span>
</div>
</h5>
</h5>
<div
class=
"optionLists"
*
ngIf=
"rightItem.showAll && rightItem.tagViewQueryInfos"
>
<div
class=
"optionLists"
*
ngIf=
"rightItem.showAll && rightItem.tagViewQueryInfos"
>
<div
*
ngFor=
"let optItem of rightItem.tagViewQueryInfos"
<div
*
ngFor=
"let optItem of rightItem.tagViewQueryInfos"
...
...
src/app/my/product/product.component.ts
View file @
2035286a
...
@@ -189,20 +189,24 @@ export class ProductComponent implements OnInit {
...
@@ -189,20 +189,24 @@ export class ProductComponent implements OnInit {
if
(
this
.
productInfo
.
isActive
==
4
){
if
(
this
.
productInfo
.
isActive
==
4
){
this
.
router
.
navigate
([
'/productData'
,
product
.
productId
],{
queryParams
:{
planId
:
product
.
planId
}});
this
.
router
.
navigate
([
'/productData'
,
product
.
productId
],{
queryParams
:{
planId
:
product
.
planId
}});
}
else
if
(
this
.
productInfo
.
isActive
!=
4
){
}
else
if
(
this
.
productInfo
.
isActive
!=
4
){
if
(
this
.
productInfo
.
noPlanProduct
===
true
)
{
if
(
this
.
productInfo
.
isActive
==
1
&&
this
.
productInfo
.
isThirdPartyPurchase
==
1
&&
this
.
productInfo
.
thirdPartyPurchaseUrl
){
window
.
location
.
href
=
`https://
${
window
.
location
.
host
}
/life/
${
this
.
productInfo
.
productId
}
`
window
.
location
.
href
=
this
.
productInfo
.
thirdPartyPurchaseUrl
;
}
else
{
}
else
{
if
(
this
.
productInfo
.
productCategoryId
===
1
||
this
.
productInfo
.
productCategoryId
===
4
)
{
if
(
this
.
productInfo
.
noPlanProduct
===
true
)
{
window
.
location
.
href
=
`https://
${
window
.
location
.
host
}
/pdetail/
${
this
.
productInfo
.
planId
}
`
window
.
location
.
href
=
`https://
${
window
.
location
.
host
}
/life/
${
this
.
productInfo
.
productId
}
`
}
else
if
(
this
.
productInfo
.
productCategoryId
===
2
)
{
}
else
{
window
.
location
.
href
=
`https://
${
window
.
location
.
host
}
/hProductDetail/
${
this
.
productInfo
.
planId
}
?type=7`
if
(
this
.
productInfo
.
productCategoryId
===
1
||
this
.
productInfo
.
productCategoryId
===
4
)
{
}
else
if
(
this
.
productInfo
.
productCategoryId
===
5
)
{
window
.
location
.
href
=
`https://
${
window
.
location
.
host
}
/pdetail/
${
this
.
productInfo
.
planId
}
`
window
.
location
.
href
=
`https://
${
window
.
location
.
host
}
/hProductDetail/
${
this
.
productInfo
.
planId
}
?type=9`
}
else
if
(
this
.
productInfo
.
productCategoryId
===
2
)
{
}
else
{
window
.
location
.
href
=
`https://
${
window
.
location
.
host
}
/hProductDetail/
${
this
.
productInfo
.
planId
}
?type=7`
window
.
location
.
href
=
`https://
${
window
.
location
.
host
}
/life/
${
this
.
productInfo
.
productId
}
`
}
else
if
(
this
.
productInfo
.
productCategoryId
===
5
)
{
this
.
router
.
navigate
([
'/pdetail'
,
this
.
productInfo
.
planId
]);
window
.
location
.
href
=
`https://
${
window
.
location
.
host
}
/hProductDetail/
${
this
.
productInfo
.
planId
}
?type=9`
}
}
else
{
}
window
.
location
.
href
=
`https://
${
window
.
location
.
host
}
/life/
${
this
.
productInfo
.
productId
}
`
this
.
router
.
navigate
([
'/pdetail'
,
this
.
productInfo
.
planId
]);
}
}
}
}
}
}
}
...
...
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