合并自建站代码到话费修改

pull/1/head
袁野 3 years ago
parent f982a05ef2
commit 3f0dfc65e3
  1. 21
      src/app/pipes/chlid-recharge-status.pipe.ts
  2. 23
      src/app/pipes/pay-status.pipe.ts

@ -0,0 +1,21 @@
import { Pipe, PipeTransform } from '@angular/core';
@Pipe({
name: 'chlidRechargeStatus'
})
export class ChlidRechargeStatusPipe implements PipeTransform {
transform(value: number): string {
switch (value) {
case 101:
return '充值成功';
case 102:
return '充值中';
case 103:
return '充值失败';
case 104:
return '未充值';
}
}
}

@ -0,0 +1,23 @@
import { Pipe, PipeTransform } from '@angular/core';
@Pipe({
name: 'payStatus'
})
export class PayStatusPipe implements PipeTransform {
transform(value: number): string {
switch (value) {
case 101:
return '待支付';
case 102:
return '已支付';
case 100:
return '已完成';
case 104:
return '已取消';
case 105:
return '已退款';
}
}
}
Loading…
Cancel
Save