You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
import { Pipe, PipeTransform } from '@angular/core';
|
|
|
|
@Pipe({
|
|
name: 'displayArea'
|
|
})
|
|
export class DisplayAreaPipe implements PipeTransform {
|
|
|
|
transform(value: any): string {
|
|
switch (value) {
|
|
case 1:
|
|
return '赠券专区';
|
|
case 2:
|
|
return '金币专区';
|
|
case null:
|
|
return '消费券';
|
|
}
|
|
}
|
|
|
|
}
|
|
|