Explorar o código

手动触发导览列表

shaogen1995 %!s(int64=2) %!d(string=hai) anos
pai
achega
dc293774ec
Modificáronse 2 ficheiros con 23 adicións e 1 borrados
  1. 11 1
      scene/public/static/js/main_2020_show.js
  2. 12 0
      scene/src/views/gui/menu.vue

+ 11 - 1
scene/public/static/js/main_2020_show.js

@@ -6645,12 +6645,22 @@ window.Modernizr = function(n, e, t) {
                 $(".thumbImg").on("click", function(e) {
                     l(e);
                     var i = $(this);
+
+
                     J.updateInteraction(Se.InteractionGui, "thumbnail"),
                     J.trackAlways("showcase_gui", {
                         gui_action: "click_highlight"
                     }),
-                    t.goToHighlight([i.data("index"),0])//改
+                    t.goToHighlight([i.data("index"),0])
+                    //改
                 }),
+
+                // 手动触发 导览列表点击
+                $("#myClickBox").on('click',function(){
+                    // 改第一个0,为索引值
+                    t.goToHighlight([5,0])
+                })
+
                 $(".previous").find("a").on("click", function(e) {
                     l(e),
                     J.trackAlways("showcase_gui", {

+ 12 - 0
scene/src/views/gui/menu.vue

@@ -257,6 +257,10 @@
       <HotList v-if="openInd === 1" @close="openInd = 0" />
       <Share v-show="openInd === 2" @close="openInd = 0" :openInd="openInd" />
     </div>
+    <!-- 手动触发导览 -->
+
+    <div id='myClickBox' style="">6666</div>
+
   </div>
 </template>
 
@@ -524,4 +528,12 @@ export default {
     }
   }
 }
+#myClickBox{
+  position: fixed;
+  z-index: 999;
+  top: 50px;
+  left: 50px;
+  background-color: red;
+  color: #fff;
+}
 </style>