(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["components/diy-components/diy-live"],{"0cde":function(e,n,i){"use strict";var t=i("72c0"),o=i.n(t);o.a},"0fd5":function(e,n,i){"use strict";(function(e){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var i={components:{},name:"diy-live",props:{value:{type:Object,default:function(){return{}}}},data:function(){return{loading:!0,skeletonConfig:{headHeight:"200rpx"},liveInfo:{banner:"",anchor_img:""}}},created:function(){this.getLiveInfo()},watch:{componentRefresh:function(e){this.getLiveInfo()}},methods:{getLiveInfo:function(){var e=this;this.$api.sendRequest({url:"/live/api/live/info",success:function(n){0==n.code&&n.data?(e.liveInfo=n.data,e.getLiveStatus()):e.liveInfo=null,e.loading=!1}})},entryRoom:function(n){e.navigateTo({url:"plugin-private://wx2b03c6e691cd7370/pages/live-player-plugin?room_id=".concat(n)})},getLiveStatus:function(){var e=this,n=requirePlugin("live-player-plugin");n.getLiveStatus({room_id:this.liveInfo.roomid}).then((function(n){var i=n.liveStatus;i&&i!=e.liveInfo.live_status&&e.changeLiveStatus(i)})).catch((function(e){console.log("get live status",e)}));var i=setInterval((function(){n.getLiveStatus({room_id:e.liveInfo.roomid}).then((function(n){var t=n.liveStatus;t&&t!=e.liveInfo.live_status&&e.changeLiveStatus(t),e.$util.inArray(t,[103,104,106,107])&&clearInterval(i)})).catch((function(e){console.log("get live status",e)}))}),6e4)},changeLiveStatus:function(e){var n=this;this.$api.sendRequest({url:"/live/api/live/modifyLiveStatus",data:{room_id:this.liveInfo.roomid,status:e},success:function(e){0==e.code&&n.getLiveInfo()}})}}};n.default=i}).call(this,i("3223")["default"])},"2aef":function(e,n,i){},3193:function(e,n,i){"use strict";i.d(n,"b",(function(){return o})),i.d(n,"c",(function(){return a})),i.d(n,"a",(function(){return t}));var t={xSkeleton:function(){return Promise.all([i.e("common/vendor"),i.e("uni_modules/x-skeleton/components/x-skeleton/x-skeleton")]).then(i.bind(null,"1226"))}},o=function(){var e=this,n=e.$createElement,i=(e._self._c,e.liveInfo&&""!=e.liveInfo.banner?e.$util.img(e.liveInfo.banner):null),t=e.liveInfo&&""==e.liveInfo.banner?e.$util.img("public/uniapp/live/live_default_banner.png"):null,o=e.liveInfo&&(e.value.isShowAnchorInfo||e.value.isShowLiveGood)&&e.value.isShowAnchorInfo&&""!=e.liveInfo.anchor_img?e.$util.img(e.liveInfo.anchor_img):null,a=e.liveInfo&&(e.value.isShowAnchorInfo||e.value.isShowLiveGood)&&e.value.isShowAnchorInfo&&""==e.liveInfo.anchor_img?e.$util.getDefaultImage():null,l=e.liveInfo&&(e.value.isShowAnchorInfo||e.value.isShowLiveGood)&&e.value.isShowLiveGood?e.liveInfo.goods.length:null;e._isMounted||(e.e0=function(n){e.liveInfo.banner=e.$util.img("public/uniapp/live/live_default_banner.png")},e.e1=function(n){e.liveInfo.anchor_img=e.$util.getDefaultImage().head}),e.$mp.data=Object.assign({},{$root:{g0:i,g1:t,g2:o,g3:a,g4:l}})},a=[]},"5aa0":function(e,n,i){"use strict";var t=i("2aef"),o=i.n(t);o.a},"72c0":function(e,n,i){},be05:function(e,n,i){"use strict";i.r(n);var t=i("0fd5"),o=i.n(t);for(var a in t)["default"].indexOf(a)<0&&function(e){i.d(n,e,(function(){return t[e]}))}(a);n["default"]=o.a},fa93:function(e,n,i){"use strict";i.r(n);var t=i("3193"),o=i("be05");for(var a in o)["default"].indexOf(a)<0&&function(e){i.d(n,e,(function(){return o[e]}))}(a);i("5aa0"),i("0cde");var l=i("828b"),u=Object(l["a"])(o["default"],t["b"],t["c"],!1,null,"42399e20",null,!1,t["a"],void 0);n["default"]=u.exports}}]);
;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
    'components/diy-components/diy-live-create-component',
    {
        'components/diy-components/diy-live-create-component':(function(module, exports, __webpack_require__){
            __webpack_require__('df3c')['createComponent'](__webpack_require__("fa93"))
        })
    },
    [['components/diy-components/diy-live-create-component']]
]);
