wupengfei
2025-11-07 2ead0564b60f70c4e19ab3567698c202c10c316d
1
2
3
4
5
6
7
8
9
10
import { EnumBillingMethod, BillingMethodEnumUnit } from '@12333/constants';
 
export class OrderUtils {
  static getServiceFeeText(serviceFee: number, billingMethod: EnumBillingMethod) {
    if (billingMethod === EnumBillingMethod.Face) {
      return BillingMethodEnumUnit[billingMethod];
    }
    return `${serviceFee ?? 0}${BillingMethodEnumUnit[billingMethod]}`;
  }
}