can be triggered on other pages, but it cannot be triggered in this interface. The effect is to click on the picture to enter the corresponding video. The above two titles can be clicked, but the following cannot trigger
.
related codes
function tabLoad (obj,oJson) {
var This=this; //
var oDir=oJson.dir?oJson.dir:"y";
var oPrevent=oJson.prevent!="undefinde"?oJson.prevent:true;
console.log(oJson);
if(!oJson.prevent){
document.addEventListener("mousedown",function(e){e.preventDefault();},false);
document.addEventListener("mousemove",function(e){e.preventDefault();},false);
document.addEventListener("mouseup",function(e){e.preventDefault();},false);
}
this.target=oJson.flag?oJson.flag:false;
this.link=oJson.link; //
this.aLink=oJson.data; //
this.oGetMessage=this.getWindow();
this.oParent=document.querySelector(obj);
this.oClassFinc=this.oParent.querySelector(".classIfication");
this.aLi=this.oParent.querySelectorAll("li");
this.oIndex=oJson.add?oJson.add:0;//
this.oVideo=this.oParent.querySelector(".All_video");
this.oSwiper=this.oParent.querySelector(".swiper_video");
this.aJieS=this.oParent.querySelectorAll(".jiepan_swiper");
this.oJp=this.oParent.querySelectorAll(".jiepan");
this.oWidth=this.oJp[0].offsetWidth;
this.oSwiper.style.width=this.oWidth*this.oJp.length+"px";
this.oSwiper.style.transform="translateX(-"+this.oIndex*this.oJp.length+"px)";
//
this.oFn=oDir=="y"?"offsetHeight":"offsetWidth";
this.oPage=oDir=="y"?"pageY":"pageX";
this.dir=oDir=="y"?"Y":"X";
this.oTran=oDir=="y"?"translateY":"translateX";
this.setHeight();//
window.onresize=function(){ //
This.oGetMessage=This.getWindow();
This.setHeight();
};
for(var i=0;i<this.aLi.length;iPP){
(function(index){
This.aJieS[i].style.cssText="";
This.aJieS[i].dataset.translateX=0;
This.aJieS[i].dataset.translateY=0;
This.aJieS[i].indexs=0;
This.aJieS[i].index=index;
This.aJieS[i].innerHTML="";
This.aJieS[i].Loding=false;
This.aLi[i].flag=true;
This.aLi[i].className="";
if(!This.aLi[i].addEvent){
This.aLi[i].addEventListener("mouseup",This.iOpen.bind(This,index),false);
This.aLi[i].addEvent=true;
}
}(i))
};
this.iOpen(this.oIndex);//
};
this was originally a mobile app, improving to the pc side. Debugging found that it could not be triggered when it came to the mousedowm event. It is useless to click on it. Solve