(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["components/diy/slides/slides"],{"286c":function(t,i,e){"use strict";e.r(i);var n=e("bd03"),r=e("e4d4");for(var o in r)["default"].indexOf(o)<0&&function(t){e.d(i,t,(function(){return r[t]}))}(o);e("bff3");var h=e("828b"),a=Object(h["a"])(r["default"],n["b"],n["c"],!1,null,"59355c4c",null,!1,n["a"],void 0);i["default"]=a.exports},7727:function(t,i,e){"use strict";(function(t){var n=e("47a9");Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var r=n(e("7eb4")),o=n(e("ee10")),h={props:{options:{type:Object,default:function(){return{name:"slides",data:[],style:{pdt:0,pdb:0,pdlr:0,mgt:0,mglr:0,bgColor:"",height:200,indicator:1,indicatorActiveColor:"#fff",indicatorInactiveColor:"#AAAAAA",interval:3e3,radius:4}}}}},name:"search",data:function(){return{index:0,heightArr:[],showHeight:200,screenWidth:0,isInit:!1,isAuto:!0,imgRatioCache:{}}},created:function(){t.$on("pageHide",this.handlePageHide),t.$on("pageShow",this.handlePageShow)},mounted:function(){this.initScreenWidth(),this.options.data&&this.options.data.length>0&&this.initHeight()},beforeDestroy:function(){t.$off("pageHide",this.handlePageHide),t.$off("pageShow",this.handlePageShow)},watch:{options:{handler:function(t){this.showHeight=t.style.height,t.data.length>0&&(0==this.index&&t.data[0].height&&(this.showHeight=t.data[0].height),this.screenWidth&&this.initHeight())},deep:!0,immediate:!0}},methods:{initScreenWidth:function(){var i=t.getSystemInfoSync(),e=375/i.windowWidth;this.screenWidth=i.windowWidth*e-2*this.options.style.pdlr-2*this.options.style.mglr},handlePageHide:function(){this.isAuto=!1},handlePageShow:function(){this.isAuto=!0},initHeight:function(){var t=this;this.heightArr=this.options.data.map((function(i,e){return i.height?i.height:(t.getHeight(i.thumb,e),t.options.style.height)}))},getHeight:function(i,e){var n=this;return(0,o.default)(r.default.mark((function o(){return r.default.wrap((function(r){while(1)switch(r.prev=r.next){case 0:if(!n.isVideo(i)){r.next=4;break}return n.heightArr[e]=9*n.screenWidth/16,n.isInit||0!=e||(n.isInit=!0,n.showHeight=n.heightArr[e]),r.abrupt("return");case 4:if(n.isImage(i)){r.next=8;break}return n.heightArr[e]=n.options.style.height,n.isInit||0!=e||(n.isInit=!0,n.showHeight=n.heightArr[e]),r.abrupt("return");case 8:if(void 0===n.imgRatioCache[i]){r.next=13;break}return n.heightArr[e]=n.screenWidth*n.imgRatioCache[i],n.isInit||0!=e||(n.isInit=!0,n.showHeight=n.heightArr[e]),r.abrupt("return");case 13:t.getImageInfo({src:i,success:function(t){var r=t.height/t.width;n.imgRatioCache[i]=r,n.heightArr[e]=n.screenWidth*r,n.isInit||0!=e||(n.isInit=!0,n.showHeight=n.heightArr[e])},fail:function(t){n.heightArr[e]=n.options.style.height,n.isInit||0!=e||(n.isInit=!0,n.showHeight=n.heightArr[e])}});case 14:case"end":return r.stop()}}),o)})))()},isVideo:function(t){return/\.(mp4|avi|mov|wmv|flv|mkv|webm|mpg|mpeg|m4v|3gp|3g2|m3u8|ts|m3u|m4a|m4b|m4p|m4r|m4v|mxf|ogv|ogg|wav|mp3|aac|m4a|m4b|m4p|m4r|m4v|mxf|ogv|ogg|wav|mp3|aac|m4a|m4b|m4p|m4r|m4v|mxf|ogv|ogg|wav|mp3|aac)$/i.test(t)},isImage:function(t){return/\.(jpg|jpeg|png|gif|bmp|webp)$/i.test(t)},change:function(i){var e=this,n=i.current,r=i.source;["autoplay","touch"].includes(r)&&(t.$u.debounce((function(){e.showHeight=e.heightArr[n]}),100),this.index=n)},jump:function(t){return!!this.options.data[t]&&("wxapp-contact"!=this.options.data[t].link.url&&void this.$util.jump(this.options.data[t].link))}}};i.default=h}).call(this,e("df3c")["default"])},bd03:function(t,i,e){"use strict";e.d(i,"b",(function(){return r})),e.d(i,"c",(function(){return o})),e.d(i,"a",(function(){return n}));var n={uSwiper:function(){return Promise.all([e.e("common/vendor"),e.e("uni_modules/uview-ui/components/u-swiper/u-swiper")]).then(e.bind(null,"ac77"))}},r=function(){var t=this.$createElement;this._self._c},o=[]},bff3:function(t,i,e){"use strict";var n=e("c8d9"),r=e.n(n);r.a},c8d9:function(t,i,e){},e4d4:function(t,i,e){"use strict";e.r(i);var n=e("7727"),r=e.n(n);for(var o in n)["default"].indexOf(o)<0&&function(t){e.d(i,t,(function(){return n[t]}))}(o);i["default"]=r.a}}]);
;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
    'components/diy/slides/slides-create-component',
    {
        'components/diy/slides/slides-create-component':(function(module, exports, __webpack_require__){
            __webpack_require__('df3c')['createComponent'](__webpack_require__("286c"))
        })
    },
    [['components/diy/slides/slides-create-component']]
]);
