From fb8db39ccdca6ca638b3e133d186cb3fe6a558bc Mon Sep 17 00:00:00 2001
From: Lou <luzhiping@qqyjz.com>
Date: Mon, 04 Mar 2024 17:43:08 +0800
Subject: [PATCH] 更新

---
 common/common.js |   23 +++++++++++++++++++++++
 1 files changed, 23 insertions(+), 0 deletions(-)

diff --git a/common/common.js b/common/common.js
index 8429715..0ad6457 100644
--- a/common/common.js
+++ b/common/common.js
@@ -29,6 +29,15 @@
 	}
 }
 
+/**
+ * 
+ *  显示完整路径
+ */
+export const setFullUrl = (str) => {
+	return `${minioBaseUrl}${str}`
+}
+
+
 
 export const showTips = (text, icon) => {
 	uni.showToast({
@@ -65,4 +74,18 @@
 		arr.push(i.name);
 	}
 	return arr.join(",")
+}
+
+//转换标签颜色
+export const setLabelColor = (color) => {
+	let obj = {
+		'red': '#EA1F1F',
+		'yellow': '#FFB42B',
+		'green': '#30D17C'
+	}
+	for (let i in obj) {
+		if (color == i) {
+			return obj[i]
+		}
+	}
 }
\ No newline at end of file

--
Gitblit v1.9.3