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"
[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"
......
...@@ -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]);
}
}
}
} }
} }
......
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