pull/1/head
袁野 2 years ago
parent 6e78f33311
commit fd07af98c3
  1. 19
      src/app/pipes/recharge-pipe/platform.pipe.ts

@ -0,0 +1,19 @@
import { Pipe, PipeTransform } from '@angular/core';
@Pipe({
name: 'platform'
})
export class PlatformPipe implements PipeTransform {
transform(value: number): string {
switch (value) {
case 1:
return '尖椒';
case 2:
return '龙阅';
case 3:
return '城宇';
}
}
}
Loading…
Cancel
Save