(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["plugin-news-video"],{"035f":function(t,e,i){var a=i("c042");a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var n=i("967d").default;n("56ff221d",a,!0,{sourceMap:!1,shadowMode:!1})},"40d0":function(t,e,i){"use strict";var a=i("035f"),n=i.n(a);n.a},"45c0":function(t,e,i){"use strict";i.r(e);var a=i("c90e"),n=i.n(a);for(var s in a)["default"].indexOf(s)<0&&function(t){i.d(e,t,(function(){return a[t]}))}(s);e["default"]=n.a},6831:function(t,e,i){"use strict";i.d(e,"b",(function(){return n})),i.d(e,"c",(function(){return s})),i.d(e,"a",(function(){return a}));var a={uEmpty:i("f174").default},n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("v-uni-view",[t.categorys.length>0?i("v-uni-view",{staticClass:"flex justify-center padding-tb-sm"},[i("v-uni-view",{staticClass:"v-tab flex"},[i("v-uni-view",{staticClass:"v-tab-active",style:{left:t.left+"px"}}),t._l(t.categorys,(function(e,a){return i("v-uni-view",{key:a,staticClass:"v-tab-it fs-28 color3",class:{on:t.cateIndex==a},attrs:{"data-index":"0"},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.onCate(a)}}},[t._v(t._s(e.title))])}))],2)],1):t._e(),i("v-uni-view",{staticClass:"flex justify-between flex-wrap padding-lr-xs"},[t._l(t.list,(function(e,a){return i("v-uni-view",{key:a,staticClass:"video-it margin-bottom-xs",on:{click:function(i){arguments[0]=i=t.$handleEvent(i),t.play(e)}}},[i("v-uni-image",{staticClass:"video-img",attrs:{src:e.thumb,mode:"aspectFill"}}),i("v-uni-view",{staticClass:"video-b flex justify-between padding-lr-xs"},[i("v-uni-text",{staticClass:"fs-24 colorf"},[t._v(t._s(e.title))])],1)],1)})),0==t.list.length?i("v-uni-view",{staticClass:"padding-xl flex justify-center align-center",staticStyle:{width:"750rpx"}},[i("u-empty",{attrs:{mode:"data",icon:"/static/nodata.png",text:"暂无数据~"}})],1):t._e()],2)],1)},s=[]},c042:function(t,e,i){var a=i("c86c");e=a(!1),e.push([t.i,"uni-page-body[data-v-46d793da]{background-color:#fff}body.?%PAGE?%[data-v-46d793da]{background-color:#fff}.v-tab[data-v-46d793da]{height:%?70?%;border-radius:%?70?%;border:1px solid #f55;position:relative}.v-tab .on[data-v-46d793da]{color:#fff}.v-tab-it[data-v-46d793da]{width:100px;height:%?70?%;line-height:%?70?%;text-align:center;position:relative;z-index:2}.v-tab-active[data-v-46d793da]{background-color:#f55;position:absolute;top:-1px;left:0;width:100px;height:%?70?%;border-radius:%?70?%;transition:left .3s}.video-it[data-v-46d793da]{position:relative;width:%?360?%;height:%?360?%}.video-b[data-v-46d793da]{width:100%;position:absolute;bottom:%?10?%;left:0}.video-img[data-v-46d793da]{width:100%;height:100%;border-radius:%?16?%}",""]),t.exports=e},c90e:function(t,e,i){"use strict";i("6a54");var a=i("f5bd").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,i("e966");var n=a(i("9b1b")),s=i("8f59"),d={data:function(){return{categorys:[],left:-1,list:[],cateIndex:0}},computed:(0,n.default)({},(0,s.mapGetters)(["base","user"])),onShareAppMessage:function(t){this.$util.handleWxappShare();var e=this.base,i=this.user,a={title:e.share_title?e.share_title:e.title,path:"/plugin/news/article"+(i&&i.id?"?sup_uid="+i.id:""),imageUrl:e.share_img?e.share_img:e.logo};return a},onShareTimeline:function(){this.$util.handleWxappShare(2);var t=this.$util.shareline();return t},onLoad:function(){this.init()},methods:{play:function(t){this.jump("./videoDetail?id="+t.id)},init:function(){var t=this;this.base.texts&&uni.setNavigationBarTitle({title:this.base.texts.video}),this.$util.get("news/video/getCategory").then((function(e){1==e.code&&(t.categorys=e.data.list),t.getList()}))},onCate:function(t){var e=100*parseInt(t);this.cateIndex=t,this.left=e,this.getList()},getList:function(){var t=this,e={};this.categorys[this.cateIndex]&&(e.category_id=this.categorys[this.cateIndex].id),this.$util.get("news/video/getList",e).then((function(e){1==e.code&&(t.list=e.data.list)}))}}};e.default=d},d476:function(t,e,i){"use strict";i.r(e);var a=i("6831"),n=i("45c0");for(var s in n)["default"].indexOf(s)<0&&function(t){i.d(e,t,(function(){return n[t]}))}(s);i("40d0");var d=i("828b"),o=Object(d["a"])(n["default"],a["b"],a["c"],!1,null,"46d793da",null,!1,a["a"],void 0);e["default"]=o.exports}}]);