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.
23 lines
452 B
23 lines
452 B
import { Pipe, PipeTransform } from '@angular/core';
|
|
|
|
@Pipe({
|
|
name: 'rechargeStatus'
|
|
})
|
|
export class RechargeStatusPipe implements PipeTransform {
|
|
|
|
transform(value: number): string {
|
|
switch (value) {
|
|
case 201:
|
|
return '充值中';
|
|
case 202:
|
|
return '充值成功';
|
|
case 203:
|
|
return '充值失败';
|
|
case 204:
|
|
return '未充值';
|
|
case 205:
|
|
return '充值异常';
|
|
}
|
|
}
|
|
|
|
}
|
|
|