Commit 0dd13d49 by Sweet Zhang

无效或冻结样式修改

parent 209e8178
...@@ -20,11 +20,12 @@ ...@@ -20,11 +20,12 @@
</ul> </ul>
<ul class="detailLists"> <ul class="detailLists">
<li *ngFor="let item of lists"> <li *ngFor="let item of lists">
<div> <div [ngStyle]="{'color':item.status==1 ? '#646464' : '#ccc'}">
<p>{{item.integralRuleName}}</p> <p>{{item.integralRuleName}}</p>
<p>{{item.grantDate}}</p> <p [ngStyle]="{'color':item.status==1 ? '#8c8c8c' : '#ccc'}">{{item.grantDate}}</p>
</div> </div>
<div [ngStyle]="{'color':item.integralType=='1' ? '#E56124' : '#333','font-weight':'bold'}"><span>{{item.integralType=='1' ? '+' : ''}}</span><span>{{item.integralNumber}}</span></div> <div [ngStyle]="{'color':item.integralType=='1' ? '#E56124' : '#333','font-weight':'bold'}" *ngIf="item.status==1"><span>{{item.integralType=='1' ? '+' : ''}}</span><span>{{item.integralNumber}}</span></div>
<div [ngStyle]="{'color':'#ccc','font-weight':'bold'}" *ngIf="item.status!=1"><span>{{item.integralType=='1' ? '+' : ''}}</span><span>{{item.integralNumber}}</span></div>
</li> </li>
</ul> </ul>
</div> </div>
...@@ -9,7 +9,7 @@ import { MyService } from '../my.service'; ...@@ -9,7 +9,7 @@ import { MyService } from '../my.service';
export class IntegrationDetailComponent implements OnInit { export class IntegrationDetailComponent implements OnInit {
integralGrantInfos:Array<any>; integralGrantInfos:Array<any>;
lists:Array<any>; lists:Array<any>;
status:number = 0; status:number = 1;
searchDate:string = '2022年'; searchDate:string = '2022年';
searchDateFormat:Date = new Date(2022, 1); searchDateFormat:Date = new Date(2022, 1);
constructor(private myService:MyService) { } constructor(private myService:MyService) { }
......
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