From ec9047869bd2642821d1dfc5bbd339313d910d66 Mon Sep 17 00:00:00 2001
From: MrShi <1878285526@qq.com>
Date: 星期一, 06 七月 2026 18:14:11 +0800
Subject: [PATCH] 新增功能

---
 bicycle/utils/utils.js |   12 +++++++++++-
 1 files changed, 11 insertions(+), 1 deletions(-)

diff --git a/bicycle/utils/utils.js b/bicycle/utils/utils.js
index 701a13a..d44f3fc 100644
--- a/bicycle/utils/utils.js
+++ b/bicycle/utils/utils.js
@@ -39,4 +39,14 @@
 		});
 	})
 	return promise;
-}
\ No newline at end of file
+}
+
+// 鎵嬫満鍙锋帺鐮侊紝闅愯棌涓棿鍥涗綅
+export function maskPhone(phone) {
+	const value = phone === null || phone === undefined ? '' : String(phone).trim()
+	if (!value) {
+		return ''
+	}
+
+	return value.replace(/(\d{3})\d{4}(\d{4})/, '$1****$2')
+}

--
Gitblit v1.9.3