wupengfei
2025-11-07 3ca05e91e64acb6a0cc1eb7cbf912f6db49629d5
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]}`;
  }
}