tremble 3 éve
szülő
commit
73acae34aa
1 módosított fájl, 15 hozzáadás és 19 törlés
  1. 15 19
      src/app.vue

+ 15 - 19
src/app.vue

@@ -206,20 +206,19 @@ watch(
     let $minmap = document.querySelector("[xui_min_map]");
     if ($minmap) {
       setTimeout(async () => {
-        if (role.value == "leader" || !role.value) {
-          return;
-        }
-        await nextTick();
-        if (isshoppingguide.value) {
-          $minmap.classList.add("gudieDisabled");
-        } else {
-          $minmap.classList.remove("gudieDisabled");
-          // wxShare({
-          //   title: `cdf澳門上葡京店~`,
-          //   desc: "cdf澳門上葡京店~",
-          //   link: window.location.href.split("#")[0],
-          //   imgUrl: "https://glp-vr.cdfmembers.com/cdf/file/91dd5305525f463286f03a31abd1c154.jpg",
-          // });
+        if (role.value == "customer") {
+          await nextTick();
+          if (isshoppingguide.value) {
+            $minmap.classList.add("gudieDisabled");
+          } else {
+            $minmap.classList.remove("gudieDisabled");
+            // wxShare({
+            //   title: `cdf澳門上葡京店~`,
+            //   desc: "cdf澳門上葡京店~",
+            //   link: window.location.href.split("#")[0],
+            //   imgUrl: "https://glp-vr.cdfmembers.com/cdf/file/91dd5305525f463286f03a31abd1c154.jpg",
+            // });
+          }
         }
       });
     }
@@ -341,8 +340,6 @@ const guideclicktag = (tag) => {
   return;
 };
 
-
-
 onMounted(async () => {
   apis.burying_point({ type: 0 });
 
@@ -411,7 +408,7 @@ onMounted(async () => {
           if (tag.type == "coupon") {
             try {
               if (isshoppingguide.value) {
-                  return;
+                return;
               }
               document.querySelector(`[data-tag-id="${tag.sid}"] .tag-icon`).style.display = "none";
               let hotcontent = typeof tag.hotContent == "string" ? JSON.parse(tag.hotContent) : tag.hotContent;
@@ -421,7 +418,6 @@ onMounted(async () => {
                 `/pages/showactivity/showactivity?pageId=${hotcontent.couponLink}`
               );
               apis.burying_point({ type: 2 });
-
             } catch (error) {}
           } else if (tag.type == "waterfall") {
             store.commit("tag/setTagClickType", {
@@ -432,7 +428,7 @@ onMounted(async () => {
           } else if (tag.type == "applet_link") {
             try {
               if (isshoppingguide.value) {
-                  return;
+                return;
               }
               let hotcontent = typeof tag.hotContent == "string" ? JSON.parse(tag.hotContent) : tag.hotContent;
               browser.openLink(