This commit is contained in:
dzc committed 2024-11-13 07:02:40 +08:00
1 parent 328489c6dd
commit 037dd3a17f
28 files changed
+958 -275

No files matched your search

+4
View File
@@ -1,7 +1,11 @@
export * from "./use-copy";
export * from "./use-enum";
export * from "./use-img";
export * from "./use-page";
export * from "./use-phone";
export * from "./use-unit";
+5
View File
@@ -0,0 +1,5 @@
export const useCopy = async (str: string | undefined) => {
if (str == undefined) return;
const res = await uni.setClipboardData({ data: str });
uni.showToast({ title: "复制成功", icon: "none" });
};
+4
View File
@@ -0,0 +1,4 @@
export const useMakePhoneCall = (str: string | undefined) => {
if (str == undefined) return;
uni.makePhoneCall({ phoneNumber: str });
};