From 14368e8a09c4b5793d0975f85e36a4c1d410ca36 Mon Sep 17 00:00:00 2001
From: wupengfei <834520024@qq.com>
Date: 星期五, 16 五月 2025 17:27:24 +0800
Subject: [PATCH] feat: UI

---
 packages/components/src/utils/common.ts |   38 +++++++++++++++++++++++++++++++++++++-
 1 files changed, 37 insertions(+), 1 deletions(-)

diff --git a/packages/components/src/utils/common.ts b/packages/components/src/utils/common.ts
index 12782a6..5b055b6 100644
--- a/packages/components/src/utils/common.ts
+++ b/packages/components/src/utils/common.ts
@@ -132,7 +132,7 @@
   lifePayOrderStatus?: LifeRechargeConstants.LifePayOrderStatusEnum
 ) {
   if (
-    (lifePayOrderStatus === LifeRechargeConstants.LifePayOrderStatusEnum.寰呯‘璁� &&
+    (lifePayOrderStatus === LifeRechargeConstants.LifePayOrderStatusEnum.鍏呭�间腑 &&
       payStatus === LifeRechargeConstants.LifePayStatusEnum.宸叉敮浠�) ||
     payStatus === LifeRechargeConstants.LifePayStatusEnum.寰呴��娆�
   ) {
@@ -149,3 +149,39 @@
   }
   return '';
 }
+
+export function convertOrderFrontStatus(
+  payStatus?: LifeRechargeConstants.LifePayStatusEnum,
+  lifePayOrderStatus?: LifeRechargeConstants.LifePayOrderStatusEnum,
+  lifePayRefundStatus?: LifeRechargeConstants.LifePayRefundStatusEnum
+) {
+  // if (
+  //   (lifePayOrderStatus === LifeRechargeConstants.LifePayOrderStatusEnum.鍏呭�间腑 &&
+  //     payStatus === LifeRechargeConstants.LifePayStatusEnum.宸叉敮浠�) ||
+  //   payStatus === LifeRechargeConstants.LifePayStatusEnum.寰呴��娆�
+  // ) {
+  //   return LifeRechargeConstants.LifePayOrderFrontStatusEnum.鏀粯鎴愬姛;
+  // }
+  if (
+    lifePayOrderStatus === LifeRechargeConstants.LifePayOrderStatusEnum.宸查��娆� ||
+    payStatus === LifeRechargeConstants.LifePayStatusEnum.宸查��娆�
+  ) {
+    return LifeRechargeConstants.LifePayOrderFrontStatusEnum.宸查��娆�;
+  }
+  if (lifePayOrderStatus === LifeRechargeConstants.LifePayOrderStatusEnum.寰呴��娆�) {
+    return LifeRechargeConstants.LifePayOrderFrontStatusEnum.閫�娆惧緟瀹℃牳;
+  }
+  if (
+    lifePayOrderStatus === LifeRechargeConstants.LifePayOrderStatusEnum.閫�娆惧け璐� ||
+    lifePayRefundStatus === LifeRechargeConstants.LifePayRefundStatusEnum.閫�娆鹃┏鍥�
+  ) {
+    return LifeRechargeConstants.LifePayOrderFrontStatusEnum.閫�娆惧け璐�;
+  }
+  if (
+    lifePayOrderStatus === LifeRechargeConstants.LifePayOrderStatusEnum.宸插畬鎴� &&
+    payStatus === LifeRechargeConstants.LifePayStatusEnum.宸叉敮浠�
+  ) {
+    return LifeRechargeConstants.LifePayOrderFrontStatusEnum.鍏呭�兼垚鍔�;
+  }
+  return LifeRechargeConstants.LifePayOrderFrontStatusEnum.鏀粯鎴愬姛;
+}

--
Gitblit v1.9.1