From 3ed2cb78a690b64c3b2646d35e1500081186dfa3 Mon Sep 17 00:00:00 2001
From: huzheng12 <52150713+huzheng12@users.noreply.github.com>
Date: Mon, 06 May 2024 00:21:32 +0800
Subject: [PATCH] first commit

---
 src/components/footer/index.vue |   14 ++++++++++++++
 1 files changed, 14 insertions(+), 0 deletions(-)

diff --git a/src/components/footer/index.vue b/src/components/footer/index.vue
index 70d189d..dedb782 100644
--- a/src/components/footer/index.vue
+++ b/src/components/footer/index.vue
@@ -113,6 +113,14 @@
       profile: {},
     };
   },
+  created() {
+    this.$nextTick(() => {
+      // 禁用右键
+      document.oncontextmenu = new Function("event.returnValue=false");
+      // 禁用选择
+      document.onselectstart = new Function("event.returnValue=false");
+    });
+  },
   mounted() {
     this.home = {
       inactive: require(`@/assets/3x/资源 10@3x.png`),
@@ -159,6 +167,7 @@
 .van-tabbar-item__icon img {
   height: 56px;
   width: 56px;
+  pointer-events: none;
 }
 
 ::v-deep .van-tabbar-item__icon {
@@ -190,6 +199,11 @@
 // }
 
 .tabbar-footer {
+  -webkit-user-select: none; /* Safari */
+  -moz-user-select: none; /* Firefox */
+  -ms-user-select: none; /* IE10+/Edge */
+  user-select: none; /* Standard syntax */
+
   position: relative;
   .bgc {
     position: absolute;

--
Gitblit v1.9.3