任一存 hai 1 ano
pai
achega
51a7f9889c
Modificáronse 2 ficheiros con 81 adicións e 75 borrados
  1. 11 5
      README.md
  2. 70 70
      src/app.vue

+ 11 - 5
README.md

@@ -1,14 +1,20 @@
-# 澳门分支
+# 分支
 v1.0.0
 
-# 澳门 测试环境url
+# 测试环境 展示端 url
 https://zhongmian.4dage.com/index.html?m=KJ-t-eur-jQNf6bUbybH
 
-# 澳门 测试环境部署位置
+# 测试环境 展示端 部署位置
 WinSCP连接221.4.210.172,/Default/aws/中免/aws-中免-18.156.200.112/var/www/html/zhongmian-test/dist/
 
-# 澳门 正式环境url
+# 测试环境 后台 url
+https://zhongmian.4dage.com/cdf/epg.html?m=KJ-t-eur-jQNf6bUbybH#/
+
+# 测试环境 场景编辑器 url
+https://zhongmian.4dage.com/cdf/epg.html?m=KJ-t-eur-jQNf6bUbybH#/
+
+# 正式环境url
 https://vr.cdfmembers.com/index.html?m=eur-KJ-UuYn0F0iY6
 
-# 澳门 正式环境部署位置?
+# 正式环境部署位置?
 WinSCP连接221.4.210.172,/Default/aws/中免/aws-中免-18.156.200.112/var/www/html/zhongmian/

+ 70 - 70
src/app.vue

@@ -370,82 +370,82 @@ onMounted(async () => {
       },
     })
     .then((view) => {
-            view.on('click', (e) => {
-        var tag = e.data;
-        // 聚焦當前點擊的熱點
-        view.focus(tag.sid).then(() => {
-          if (tag.type == 'coupon') {
-            try {
-              if (isshoppingguide.value) {
-                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;
-              browser.openLink(
-                '/subPackage/pages/activity/activity?pageId=' + hotcontent.couponLink,
-                `https://m.cdfmembers.com/shop/600667208/showactivity?pageId=${hotcontent.couponLink}`,
-                `/pages/showactivity/showactivity?pageId=${hotcontent.couponLink}`,
-                `https://glp.cdfmembers.com/showactivity/${hotcontent.couponLink}`
-              );
-              apis.burying_point({ type: 2 });
-            } catch (error) {}
-          } else if (tag.type == 'waterfall') {
-            store.commit('tag/setTagClickType', {
-              type: 'waterfall',
-              data: tag,
-            });
-            guideclicktag(tag);
-          } else if (tag.type == 'applet_link') {
-            try {
-              if (isshoppingguide.value) {
-                return;
-              }
-              let hotcontent = typeof tag.hotContent == 'string' ? JSON.parse(tag.hotContent) : tag.hotContent;
-              browser.openLink(
-                '/subPackage/pages/home/home?pageType=2&pageId=' + hotcontent.liveLink,
-                `https://m.cdfmembers.com/shop/600667208/showactivity?pageId=${hotcontent.liveLink}`,
-                `/pages/showactivity/showactivity?pageId=${hotcontent.liveLink}`,
-                `https://m.cdfmembers.com/shop/600667208/showactivity?pageId=${hotcontent.liveLink}`,
-              );
-            } catch (error) {}
-          } else if (tag.type == 'link_scene') {
-            guideclicktag(tag);
-            let sceneFirstView = tag.hotContent.sceneFirstView;
-            window.location.href = jumpNewScene(sceneFirstView);
-          }
-        });
-      });
-
-      view.on('focus', (e) => {
-        document.querySelectorAll('[xui_tags_view] >div').forEach((el) => {
-          if (el.getAttribute('data-tag-type') == 'link_scene' || el.getAttribute('data-tag-type') == 'commodity') {
-            el.querySelector('.tag-body').classList.remove('show');
-            el.style.zIndex = 'auto';
-          }
-        });
-        if (e.data.type == 'commodity' || e.data.type == 'link_scene') {
-          e.target.style.zIndex = '999';
-          e.target.querySelector('.tag-body').classList.add('show');
-          e.target.querySelector('.tag-commodity').removeEventListener('click', onClickTagInfo);
-                    e.target.querySelector('.tag-commodity').addEventListener('click', onClickTagInfo);
-
-          setTimeout(() => {
-            if (tagid) {
-              const clickTarget = document.querySelector(`[data-id="${tagid}"]`)
-              if (clickTarget) {
-                clickTarget.click();
-              }
-              tagid = null;
+      view.on('click', (e) => {
+      var tag = e.data;
+      // 聚焦當前點擊的熱點
+      view.focus(tag.sid).then(() => {
+        if (tag.type == 'coupon') {
+          try {
+            if (isshoppingguide.value) {
+              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;
+            browser.openLink(
+              '/subPackage/pages/activity/activity?pageId=' + hotcontent.couponLink,
+              `https://m.cdfmembers.com/shop/600667208/showactivity?pageId=${hotcontent.couponLink}`,
+              `/pages/showactivity/showactivity?pageId=${hotcontent.couponLink}`,
+              `https://glp.cdfmembers.com/showactivity/${hotcontent.couponLink}`
+            );
+            apis.burying_point({ type: 2 });
+          } catch (error) {}
+        } else if (tag.type == 'waterfall') {
+          store.commit('tag/setTagClickType', {
+            type: 'waterfall',
+            data: tag,
+          });
+          guideclicktag(tag);
+        } else if (tag.type == 'applet_link') {
+          try {
+            if (isshoppingguide.value) {
+              return;
             }
-          }, 2000);
+            let hotcontent = typeof tag.hotContent == 'string' ? JSON.parse(tag.hotContent) : tag.hotContent;
+            browser.openLink(
+              '/subPackage/pages/home/home?pageType=2&pageId=' + hotcontent.liveLink,
+              `https://m.cdfmembers.com/shop/600667208/showactivity?pageId=${hotcontent.liveLink}`,
+              `/pages/showactivity/showactivity?pageId=${hotcontent.liveLink}`,
+              `https://m.cdfmembers.com/shop/600667208/showactivity?pageId=${hotcontent.liveLink}`,
+            );
+          } catch (error) {}
+        } else if (tag.type == 'link_scene') {
+          guideclicktag(tag);
+          let sceneFirstView = tag.hotContent.sceneFirstView;
+          window.location.href = jumpNewScene(sceneFirstView);
         }
       });
+    });
 
-      view.on('rendered', (e) => {
-        tagid && view.focus(tagid);
-      }); //dom渲染完成
+    view.on('focus', (e) => {
+      document.querySelectorAll('[xui_tags_view] >div').forEach((el) => {
+        if (el.getAttribute('data-tag-type') == 'link_scene' || el.getAttribute('data-tag-type') == 'commodity') {
+          el.querySelector('.tag-body').classList.remove('show');
+          el.style.zIndex = 'auto';
+        }
+      });
+      if (e.data.type == 'commodity' || e.data.type == 'link_scene') {
+        e.target.style.zIndex = '999';
+        e.target.querySelector('.tag-body').classList.add('show');
+        e.target.querySelector('.tag-commodity').removeEventListener('click', onClickTagInfo);
+                  e.target.querySelector('.tag-commodity').addEventListener('click', onClickTagInfo);
+
+        setTimeout(() => {
+          if (tagid) {
+            const clickTarget = document.querySelector(`[data-id="${tagid}"]`)
+            if (clickTarget) {
+              clickTarget.click();
+            }
+            tagid = null;
+          }
+        }, 2000);
+      }
     });
 
+    view.on('rendered', (e) => {
+      tagid && view.focus(tagid);
+    }); //dom渲染完成
+  });
+
   app.use('TourPlayer');
 
   app.TourManager.on('loaded', (list) => {