You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

10 lines
3.4 KiB

(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["components/banner"],{"1b6d":function(t,n,e){"use strict";e.r(n);var i=e("3585"),o=e.n(i);for(var u in i)["default"].indexOf(u)<0&&function(t){e.d(n,t,(function(){return i[t]}))}(u);n["default"]=o.a},3585:function(t,n,e){"use strict";(function(t){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var i=e("8f59"),o={name:"banner",props:{list:{type:Array,default:function(){return[]}},height:{type:Number,default:function(){return 400}},indicatorType:{type:String,default:function(){return"dot"}},indicatorColor:{type:String,default:function(){return"#FEFFFE"}},indicatorActiveColor:{type:String,default:function(){return"#fff"}},indicatorStyle:{type:String,default:function(){return"center"}},circular:{type:Boolean,default:function(){return!0}},autoplay:{type:Boolean,default:function(){return!1}},previousMargin:{type:Number,default:function(){return 0}},nextMargin:{type:Number,default:function(){return 0}},dotWidth:{type:Number,default:function(){return 12}},dotBottom:{type:Number,default:function(){return 20}},margin:{type:Number,default:function(){return 0}},borderRadius:{type:Number,default:function(){return 0}}},created:function(){this.videoContexts=t.createVideoContext("video_id",this)},data:function(){return{showSwiper:!0,activeIndex:0,videoContexts:{},playVideo:!1}},watch:{list:function(t,n){var e=this;this.activeIndex=0,this.showSwiper=!1,setTimeout((function(){e.$nextTick((function(){e.showSwiper=!0}))}))}},computed:(0,i.mapState)({configInfo:function(t){return t.config.configInfo},commonOptions:function(t){return t.user.commonOptions}}),methods:{handerChange:function(t){var n=t.detail.current;this.activeIndex=n;var e=this.list.findIndex((function(t){return"video"==t.jump_type}));-1!=e&&(n!=e+1&&n!=this.list.length-1||(this.videoContexts.pause(),this.playVideo=!1))},changeItem:function(t){var n=t.jump_type,e=void 0===n?"":n;"video"!=e&&this.$emit("change",t)},playCurrent:function(){this.videoContexts.play(),this.playVideo=!0},onPlay:function(t){},onPause:function(t){},onEnded:function(t){},onError:function(t){},onTimeUpdate:function(t){},onWaiting:function(t){},onProgress:function(t){},onLoadedMetaData:function(t){}}};n.default=o}).call(this,e("df3c")["default"])},"6db6":function(t,n,e){"use strict";var i=e("a5c9"),o=e.n(i);o.a},8822:function(t,n,e){"use strict";e.r(n);var i=e("a4d0"),o=e("1b6d");for(var u in o)["default"].indexOf(u)<0&&function(t){e.d(n,t,(function(){return o[t]}))}(u);e("6db6");var r=e("828b"),a=Object(r["a"])(o["default"],i["b"],i["c"],!1,null,null,null,!1,i["a"],void 0);n["default"]=a.exports},a4d0:function(t,n,e){"use strict";e.d(n,"b",(function(){return i})),e.d(n,"c",(function(){return o})),e.d(n,"a",(function(){}));var i=function(){var t=this,n=t.$createElement,e=(t._self._c,t.showSwiper?t.list.length:null),i=t.showSwiper?t.list.length:null,o=t.showSwiper?t.list.length>1&&"number"==t.indicatorType&&!t.playVideo:null,u=t.showSwiper&&o?t.list.length:null,r=t.showSwiper?t.list.length>1&&"dot"==t.indicatorType:null;t.$mp.data=Object.assign({},{$root:{g0:e,g1:i,g2:o,g3:u,g4:r}})},o=[]},a5c9:function(t,n,e){}}]);
;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
'components/banner-create-component',
{
'components/banner-create-component':(function(module, exports, __webpack_require__){
__webpack_require__('df3c')['createComponent'](__webpack_require__("8822"))
})
},
[['components/banner-create-component']]
]);