(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["subpackage/diyComponents/swiperBg"],{"0555":function(t,i,n){},"11eb":function(t,i,n){"use strict";n.r(i);var a=n("a691"),e=n.n(a);for(var o in a)["default"].indexOf(o)<0&&function(t){n.d(i,t,(function(){return a[t]}))}(o);i["default"]=e.a},"436f":function(t,i,n){"use strict";var a=n("0555"),e=n.n(a);e.a},"66a5":function(t,i,n){"use strict";n.d(i,"b",(function(){return a})),n.d(i,"c",(function(){return e})),n.d(i,"a",(function(){}));var a=function(){var t=this,i=t.$createElement,n=(t._self._c,t.dataConfig.isHide?null:t.__get_style([t.swiperBgStyle])),a=t.dataConfig.isHide?null:t.dataConfig.swiperConfig.list.length,e=!t.dataConfig.isHide&&a?t.__get_style([t.colorBgStyle]):null,o=!t.dataConfig.isHide&&a&&t.imageH?t.__map(t.dataConfig.swiperConfig.list,(function(i,n){var a=t.__get_orig(i),e=t.__get_style([t.imageStyle]);return{$orig:a,s2:e}})):null,r=!t.dataConfig.isHide&&a?t.__get_style([t.dotStyle]):null,l=!t.dataConfig.isHide&&a&&2==t.dataConfig.docConfig.tabVal?t.__get_style([t.progressWidth,t.dotItemStyle]):null,s=!t.dataConfig.isHide&&a&&2==t.dataConfig.docConfig.tabVal?t.__get_style([t.progressValue,t.dotItemActiveStyle]):null,g=!t.dataConfig.isHide&&a&&2!=t.dataConfig.docConfig.tabVal?t.__map(t.dataConfig.swiperConfig.list,(function(i,n){var a=t.__get_orig(i),e=t.__get_style([t.active==n?t.dotItemActiveStyle:t.dotItemStyle]);return{$orig:a,s6:e}})):null;t.$mp.data=Object.assign({},{$root:{s0:n,g0:a,s1:e,l0:o,s3:r,s4:l,s5:s,l1:g}})},e=[]},a691:function(t,i,n){"use strict";(function(t){var a=n("47a9");Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var e=a(n("7ca3")),o={name:"swiperBg",props:{dataConfig:{type:Object,default:function(){}},isSortType:{type:String|Number,default:0}},data:function(){return(0,e.default)({circular:!0,autoplay:!0,interval:3e3,duration:500,imgUrls:[],bgColor:"",marginTop:0,paddinglr:0,docConfig:0,imgConfig:0,imageH:0,isColor:0,txtStyle:0,dotColor:"",current:1,active:0,swiperMargin:""},"swiperMargin","")},computed:{swiperBgStyle:function(){return{padding:"".concat(2*this.dataConfig.topConfig.val,"rpx ").concat(2*this.dataConfig.prConfig.val,"rpx ").concat(2*this.dataConfig.bottomConfig.val,"rpx"),marginTop:"".concat(2*this.dataConfig.mbConfig.val,"rpx")}},colorBgStyle:function(){var t={background:this.dataConfig.bgColor.color[0].item};return 1==this.dataConfig.styleConfig.tabVal&&(t["height"]="50%"),t},imageStyle:function(){return{borderRadius:"".concat(2*this.dataConfig.filletImg.val,"rpx")}},dotStyle:function(){var t={};return this.dataConfig.docPosition.tabVal&&(t["justify-content"]=1==this.dataConfig.docPosition.tabVal?"center":"flex-end"),t},dotItemStyle:function(){var t={};return this.dataConfig.toneConfig.tabVal&&(t["background"]=this.dataConfig.dotBgColor.color[0].item),t},dotItemActiveStyle:function(){var t={};return this.dataConfig.toneConfig.tabVal&&(t["background"]=this.dataConfig.dotColor.color[0].item),t},progressWidth:function(){return{width:"".concat(20*this.dataConfig.swiperConfig.list.length,"rpx")}},progressValue:function(){return{width:"".concat(this.current/this.dataConfig.swiperConfig.list.length*100,"%")}}},watch:{imageH:function(t,i){this.imageH=t}},created:function(){this.imgUrls=this.dataConfig.swiperConfig.list,2==this.dataConfig.styleConfig.tabVal&&(this.swiperMargin="55rpx")},mounted:function(){var i=this;if(this.imgUrls.length){var n=this;this.$nextTick((function(a){t.getImageInfo({src:n.setDomain(n.imgUrls[0].img),success:function(t){if(t&&t.height>0){var a=t.height*((750-4*i.dataConfig.prConfig.val)/t.width);n.$set(n,"imageH",a)}else n.$set(n,"imageH",375)},fail:function(t){n.$set(n,"imageH",375)}})}))}},methods:{bannerfun:function(t){this.active=t.detail.current,this.current=t.detail.current+1},setDomain:function(t){return t=t?t.toString():"",t.indexOf("https://")>-1?t:t.replace("http://","https://")},goDetail:function(t){var i=t.info[0].value;this.$util.JumpPath(i)}}};i.default=o}).call(this,n("df3c")["default"])},d716:function(t,i,n){"use strict";n.r(i);var a=n("66a5"),e=n("11eb");for(var o in e)["default"].indexOf(o)<0&&function(t){n.d(i,t,(function(){return e[t]}))}(o);n("436f");var r=n("828b"),l=Object(r["a"])(e["default"],a["b"],a["c"],!1,null,null,null,!1,a["a"],void 0);i["default"]=l.exports}}]);
;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
    'subpackage/diyComponents/swiperBg-create-component',
    {
        'subpackage/diyComponents/swiperBg-create-component':(function(module, exports, __webpack_require__){
            __webpack_require__('df3c')['createComponent'](__webpack_require__("d716"))
        })
    },
    [['subpackage/diyComponents/swiperBg-create-component']]
]);
