|
-(window.webpackJsonp=window.webpackJsonp||[]).push([[9],{152:function(e,n,t){},162:function(e,n,t){"use strict";var i=t(152);t.n(i).a},164:function(e,n,t){"use strict";t.r(n);t(12),t(17);var i={data:function(){return{imgs:["/js/2018_10_28/images/01.png","/js/2018_10_28/images/02.png","/js/2018_10_28/images/03.png"],key:[37,38,39,40]}},methods:{replacement:function(e){for(var n=this,t=0;t<3;t++)this.$refs.img[t].src="/js/2018_10_28/images/0".concat(t+1,".png");this.$nextTick(function(){n.$refs.img[e].src="/js/2018_10_28/images/04.png"})},keydown:function(e){for(var n=this.keys.length;n--;)if(e.keyCode===this.keys[n])return void preventDefault(e)},preventDefault:function(e){(e=e||window.event).preventDefault&&e.preventDefault(),e.returnValue=!1},wheel:function(e){this.preventDefault(e)},noScroll:function(){window.addEventListener&&window.addEventListener("DOMMouseScroll",this.wheel,!1),window.onmousewheel=document.onmousewheel=this.wheel,document.onkeydown=this.keydown},scroll:function(){window.removeEventListener&&window.removeEventListener("DOMMouseScroll",this.wheel,!1),window.onmousewheel=document.onmousewheel=document.onkeydown=null}}},o=(t(162),t(0)),s=Object(o.a)(i,function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",{staticClass:"dynamic_replacement_image"},[t("div",{staticClass:"img-wrapper"},e._l(e.imgs,function(n,i){return t("div",{key:i},[t("img",{ref:"img",refInFor:!0,attrs:{src:n,alt:""},on:{click:function(n){e.replacement(i)}}})])})),e._v(" "),t("div",{staticClass:"mutai",on:{click:e.noScroll}},[t("div",{staticClass:"scroll",on:{click:e.scroll}},[e._v("scroll")])])])},[],!1,null,"5c8df165",null);s.options.__file="dynamic_replacement_image.vue";n.default=s.exports}}]);
|
|
|