From 52af2aad8f51545ec3fd5f32b09dad12f65b2b63 Mon Sep 17 00:00:00 2001
From: zzc <1761997216@qq.com>
Date: Mon, 2 Feb 2026 16:49:53 +0800
Subject: [PATCH] feat: PrivacyPopup
---
api/auth.js | 7 +
components/PrivacyPopup/PrivacyPopup.vue | 178 +++++++++++++++++++++++
pages/index/index.vue | 4 +
3 files changed, 189 insertions(+)
create mode 100644 components/PrivacyPopup/PrivacyPopup.vue
diff --git a/api/auth.js b/api/auth.js
index edfb612..935d672 100644
--- a/api/auth.js
+++ b/api/auth.js
@@ -22,3 +22,10 @@ export const updateUserInfo = async (body) => {
data: body,
});
};
+
+export const reportPrivacy = async () => {
+ return request({
+ url: "/api/common/privacy/report",
+ method: "POST",
+ });
+};
diff --git a/components/PrivacyPopup/PrivacyPopup.vue b/components/PrivacyPopup/PrivacyPopup.vue
new file mode 100644
index 0000000..d2fcc80
--- /dev/null
+++ b/components/PrivacyPopup/PrivacyPopup.vue
@@ -0,0 +1,178 @@
+
+
+
+
+
+
+
diff --git a/pages/index/index.vue b/pages/index/index.vue
index e55335d..681d9cc 100644
--- a/pages/index/index.vue
+++ b/pages/index/index.vue
@@ -1,5 +1,8 @@
+
+
+
@@ -108,6 +111,7 @@ import {
} from "@dcloudio/uni-app";
import { getBavBarHeight } from "@/utils/system";
import { getRecommendList } from "@/api/system";
+import PrivacyPopup from "@/components/PrivacyPopup/PrivacyPopup.vue";
const countdownText = ref("");