(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["subpackage/diyComponents/liveBroadcast"],{"0419":function(t,i,a){"use strict";a.r(i);var e=a("9700"),n=a("8cfe");for(var o in n)["default"].indexOf(o)<0&&function(t){a.d(i,t,(function(){return n[t]}))}(o);a("8a41");var r=a("828b"),l=Object(r["a"])(n["default"],e["b"],e["c"],!1,null,null,null,!1,e["a"],void 0);i["default"]=l.exports},"0a4c":function(t,i,a){"use strict";(function(t){var e=a("47a9");Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var n,o=e(a("7ca3")),r=a("8f59"),l=(a("769c"),a("4d38")),c=a("7e2d");function s(t,i){var a=Object.keys(t);if(Object.getOwnPropertySymbols){var e=Object.getOwnPropertySymbols(t);i&&(e=e.filter((function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable}))),a.push.apply(a,e)}return a}function f(t){for(var i=1;i<arguments.length;i++){var a=null!=arguments[i]?arguments[i]:{};i%2?s(Object(a),!0).forEach((function(i){(0,o.default)(t,i,a[i])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(a)):s(Object(a)).forEach((function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(a,i))}))}return t}var u=(n={computed:f(f({},(0,r.mapGetters)(["uid"])),{},{customParams:function(){return encodeURIComponent(JSON.stringify({pid:this.uid}))}}),name:"liveBroadcast",props:{dataConfig:{type:Object,default:function(){}},refreshTime:{type:Number,default:0}},data:function(){return{imgHost:l.HTTP_REQUEST_URL,listStyle:0,mbConfig:0,liveList:[],bg:"",titleColor:"",prConfig:"",boxShadow:"",itemStyle:0,siteData:{}}},watch:{refreshTime:function(){this.getLiveList()}}},(0,o.default)(n,"computed",{liveWrapperStyle:function(){return{padding:"".concat(2*this.dataConfig.topConfig.val,"rpx ").concat(2*this.dataConfig.prConfig.val,"rpx ").concat(2*this.dataConfig.bottomConfig.val,"rpx"),"margin-top":"".concat(2*this.dataConfig.mbConfig.val,"rpx"),background:this.dataConfig.bottomBgColor.color[0].item}},liveStyle:function(){var t="".concat(2*this.dataConfig.fillet.val,"rpx");return this.dataConfig.fillet.type&&(t="".concat(2*this.dataConfig.fillet.valList[0].val,"rpx ").concat(2*this.dataConfig.fillet.valList[1].val,"rpx ").concat(2*this.dataConfig.fillet.valList[3].val,"rpx ").concat(2*this.dataConfig.fillet.valList[2].val,"rpx")),{"border-radius":t,background:"linear-gradient(90deg, ".concat(this.dataConfig.moduleColor.color[0].item," 0%, ").concat(this.dataConfig.moduleColor.color[1].item," 100%)")}},liveItemStyle:function(){var t="".concat(2*this.dataConfig.filletImg.val,"rpx");return this.dataConfig.filletImg.type&&(t="".concat(2*this.dataConfig.filletImg.valList[0].val,"rpx ").concat(2*this.dataConfig.filletImg.valList[1].val,"rpx ").concat(2*this.dataConfig.filletImg.valList[3].val,"rpx ").concat(2*this.dataConfig.fillet.valList[2].val,"rpx")),{"border-radius":t}},imgStyle:function(){var t="".concat(2*this.dataConfig.filletImg.val,"rpx");return this.dataConfig.filletImg.type&&(t="".concat(2*this.dataConfig.filletImg.valList[0].val,"rpx ").concat(2*this.dataConfig.filletImg.valList[1].val,"rpx ").concat(2*this.dataConfig.filletImg.valList[3].val,"rpx ").concat(2*this.dataConfig.filletImg.valList[2].val,"rpx")),t},anchorShow:function(){return this.dataConfig.checkboxInfo.type.includes(1)},titleShow:function(){return this.dataConfig.checkboxInfo.type.includes(0)}}),(0,o.default)(n,"mounted",(function(){this.getLiveList(),this.siteData=this.$Cache.get("BASIC_CONFIG")})),(0,o.default)(n,"methods",{getLiveList:function(){var t=this;(0,c.getLiveRoomeList)({page:1,limit:10}).then((function(i){t.liveList=i.data.list}))},toRoom:function(i){return 102==i.live_status?this.$util.Tips({title:"直播尚未开始"}):103==i.live_status?this.$util.Tips({title:"直播已结束，去看看其他直播吧"}):void(0==i.live_type?t.navigateTo({url:"plugin-private://wx2b03c6e691cd7370/pages/live-player-plugin?room_id=".concat(i.room_id,"&custom_params=").concat(this.customParams)}):t.navigateTo({url:"/pages/activity/liveRoom/index?room_id=".concat(i.id)}))}}),n);i.default=u}).call(this,a("df3c")["default"])},3290:function(t,i,a){},"8a41":function(t,i,a){"use strict";var e=a("3290"),n=a.n(e);n.a},"8cfe":function(t,i,a){"use strict";a.r(i);var e=a("0a4c"),n=a.n(e);for(var o in e)["default"].indexOf(o)<0&&function(t){a.d(i,t,(function(){return e[t]}))}(o);i["default"]=n.a},9700:function(t,i,a){"use strict";a.d(i,"b",(function(){return n})),a.d(i,"c",(function(){return o})),a.d(i,"a",(function(){return e}));var e={easyLoadimage:function(){return a.e("components/easy-loadimage/easy-loadimage").then(a.bind(null,"94dd"))}},n=function(){var t=this.$createElement,i=(this._self._c,!this.dataConfig.isHide&&this.liveList.length),a=this.__get_style([this.liveWrapperStyle]),e=this.__get_style([this.liveStyle]);this.$mp.data=Object.assign({},{$root:{g0:i,s0:a,s1:e}})},o=[]}}]);
;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
    'subpackage/diyComponents/liveBroadcast-create-component',
    {
        'subpackage/diyComponents/liveBroadcast-create-component':(function(module, exports, __webpack_require__){
            __webpack_require__('df3c')['createComponent'](__webpack_require__("0419"))
        })
    },
    [['subpackage/diyComponents/liveBroadcast-create-component']]
]);
