嗨森逛PC管理端
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.
high-web/src/app/pipes/display-area.pipe.ts

20 lines
347 B

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 '消费券';
}
}
}