require('../common/vendor.js');(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/activity/liveRoomList/index"],{1240:function(t,e,i){"use strict";(function(t){var n=i("47a9");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=n(i("7ca3")),o=i("8f59"),a=(i("769c"),i("4d38")),c=i("7e2d");function u(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,n)}return i}function s(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?u(Object(i),!0).forEach((function(e){(0,r.default)(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):u(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}var l={name:"liveRoomList",computed:s(s({},(0,o.mapGetters)(["uid"])),{},{customParams:function(){return encodeURIComponent(JSON.stringify({pid:this.uid}))}}),components:{emptyPage:function(){i.e("components/emptyPage").then(function(){return resolve(i("398a"))}.bind(null,i)).catch(i.oe)}},data:function(){return{imgHost:a.HTTP_REQUEST_URL,page:1,isScroll:!0,liveList:[]}},onLoad:function(){this.getLiveList()},methods:{getLiveList:function(){var t=this;this.isScroll&&(0,c.getLiveRoomeList)({page:this.page,limit:10}).then((function(e){t.isScroll=e.data.list.length>=t.limit,t.page++,t.liveList=t.liveList.concat(e.data.list)})).catch((function(e){return t.isScroll=!1,t.$util.Tips({title:err})}))},formatTime:function(t){if(!t)return"";var e=new Date(t.replace(/-/g,"/")),i=e.getMonth()+1,n=e.getDate(),r=e.getHours(),o=e.getMinutes();return i+"-"+n+" "+(r<10?"0"+r:r)+":"+(o<10?"0"+o:o)},goRoom:function(e){return 102==e.live_status?this.$util.Tips({title:"直播尚未开始"}):103==e.live_status?this.$util.Tips({title:"直播已结束，去看看其他直播吧"}):void(0==e.live_type?t.navigateTo({url:"plugin-private://wx2b03c6e691cd7370/pages/live-player-plugin?room_id=".concat(e.room_id,"&custom_params=").concat(this.customParams)}):t.navigateTo({url:"/pages/activity/liveRoom/index?room_id=".concat(e.id)}))}},onReachBottom:function(){this.getLiveList()}};e.default=l}).call(this,i("df3c")["default"])},"13fd":function(t,e,i){"use strict";(function(t,e){var n=i("47a9");i("f076");n(i("3240"));var r=n(i("350a"));t.__webpack_require_UNI_MP_PLUGIN__=i,e(r.default)}).call(this,i("3223")["default"],i("df3c")["createPage"])},"30c8":function(t,e,i){"use strict";i.r(e);var n=i("1240"),r=i.n(n);for(var o in n)["default"].indexOf(o)<0&&function(t){i.d(e,t,(function(){return n[t]}))}(o);e["default"]=r.a},"350a":function(t,e,i){"use strict";i.r(e);var n=i("e20e1"),r=i("30c8");for(var o in r)["default"].indexOf(o)<0&&function(t){i.d(e,t,(function(){return r[t]}))}(o);i("459d");var a=i("828b"),c=Object(a["a"])(r["default"],n["b"],n["c"],!1,null,null,null,!1,n["a"],void 0);e["default"]=c.exports},"459d":function(t,e,i){"use strict";var n=i("9ab9"),r=i.n(n);r.a},"9ab9":function(t,e,i){},e20e1:function(t,e,i){"use strict";i.d(e,"b",(function(){return n})),i.d(e,"c",(function(){return r})),i.d(e,"a",(function(){}));var n=function(){var t=this,e=t.$createElement,i=(t._self._c,t.liveList.length),n=t.liveList.length,r=n?t.__map(t.liveList,(function(e,i){var n=t.__get_orig(e),r=t.formatTime(e.start_time);return{$orig:n,m0:r}})):null;t.$mp.data=Object.assign({},{$root:{g0:i,g1:n,l0:r}})},r=[]}},[["13fd","common/runtime","common/vendor"]]]);