pull/1/head
袁野 3 years ago
parent f0c2c6cfa4
commit 2896c7a6cb
  1. 19
      src/app/pipes/show-type.pipe.ts

@ -0,0 +1,19 @@
import { Pipe, PipeTransform } from '@angular/core';
@Pipe({
name: 'showType'
})
export class ShowTypePipe implements PipeTransform {
transform(value: number): string {
switch (value) {
case 1:
return '小程序';
case 2:
return 'H5';
case 3:
return '银联';
}
}
}
Loading…
Cancel
Save