Commit 2035286a by sunchao

产品库

parent fc2a3976
...@@ -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;
} }
...@@ -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"
(click)="showAll(rightItem)" style="font-size: 12px;"
>
<span>更多</span>
<span class="iconfont icon-xiangxia" style="font-size: 12px;display: inline-block;"
[ngStyle]="{'transform': rightItem.showAll? 'rotate(180deg)' : 'rotate(0)'}" [ngStyle]="{'transform': rightItem.showAll? 'rotate(180deg)' : 'rotate(0)'}"
(click)="showAll(rightItem)" *ngIf="rightItem.tagViewQueryInfos && rightItem.tagViewQueryInfos.length>6"></span> ></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"
......
...@@ -189,6 +189,9 @@ export class ProductComponent implements OnInit { ...@@ -189,6 +189,9 @@ 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.isActive == 1 && this.productInfo.isThirdPartyPurchase==1 && this.productInfo.thirdPartyPurchaseUrl){
window.location.href = this.productInfo.thirdPartyPurchaseUrl;
}else{
if (this.productInfo.noPlanProduct === true) { if (this.productInfo.noPlanProduct === true) {
window.location.href = `https://${window.location.host}/life/${this.productInfo.productId}` window.location.href = `https://${window.location.host}/life/${this.productInfo.productId}`
} else { } else {
...@@ -205,6 +208,7 @@ export class ProductComponent implements OnInit { ...@@ -205,6 +208,7 @@ export class ProductComponent implements OnInit {
} }
} }
} }
}
// 根据开始时间设置结束时间,天数应减1,当日~当日是一天 // 根据开始时间设置结束时间,天数应减1,当日~当日是一天
setInitDate() { setInitDate() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment