liveRoomList.50bbc278.js 35 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["liveRoomList"],{1337:function(t,e,r){"use strict";r("a78e")},"5a0c":function(t,e,r){!function(e,r){t.exports=r()}(0,(function(){"use strict";var t=1e3,e=6e4,r=36e5,n="millisecond",i="second",o="minute",a="hour",s="day",u="week",c="month",l="quarter",f="year",h="date",d="Invalid Date",p=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,y=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,v={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_")},m=function(t,e,r){var n=String(t);return!n||n.length>=e?t:""+Array(e+1-n.length).join(r)+t},g={s:m,z:function(t){var e=-t.utcOffset(),r=Math.abs(e),n=Math.floor(r/60),i=r%60;return(e<=0?"+":"-")+m(n,2,"0")+":"+m(i,2,"0")},m:function t(e,r){if(e.date()<r.date())return-t(r,e);var n=12*(r.year()-e.year())+(r.month()-e.month()),i=e.clone().add(n,c),o=r-i<0,a=e.clone().add(n+(o?-1:1),c);return+(-(n+(r-i)/(o?i-a:a-i))||0)},a:function(t){return t<0?Math.ceil(t)||0:Math.floor(t)},p:function(t){return{M:c,y:f,w:u,d:s,D:h,h:a,m:o,s:i,ms:n,Q:l}[t]||String(t||"").toLowerCase().replace(/s$/,"")},u:function(t){return void 0===t}},w="en",b={};b[w]=v;var A=function(t){return t instanceof L},S=function t(e,r,n){var i;if(!e)return w;if("string"==typeof e){var o=e.toLowerCase();b[o]&&(i=o),r&&(b[o]=r,i=o);var a=e.split("-");if(!i&&a.length>1)return t(a[0])}else{var s=e.name;b[s]=e,i=s}return!n&&i&&(w=i),i||!n&&w},O=function(t,e){if(A(t))return t.clone();var r="object"==typeof e?e:{};return r.date=t,r.args=arguments,new L(r)},x=g;x.l=S,x.i=A,x.w=function(t,e){return O(t,{locale:e.$L,utc:e.$u,x:e.$x,$offset:e.$offset})};var L=function(){function v(t){this.$L=S(t.locale,null,!0),this.parse(t)}var m=v.prototype;return m.parse=function(t){this.$d=function(t){var e=t.date,r=t.utc;if(null===e)return new Date(NaN);if(x.u(e))return new Date;if(e instanceof Date)return new Date(e);if("string"==typeof e&&!/Z$/i.test(e)){var n=e.match(p);if(n){var i=n[2]-1||0,o=(n[7]||"0").substring(0,3);return r?new Date(Date.UTC(n[1],i,n[3]||1,n[4]||0,n[5]||0,n[6]||0,o)):new Date(n[1],i,n[3]||1,n[4]||0,n[5]||0,n[6]||0,o)}}return new Date(e)}(t),this.$x=t.x||{},this.init()},m.init=function(){var t=this.$d;this.$y=t.getFullYear(),this.$M=t.getMonth(),this.$D=t.getDate(),this.$W=t.getDay(),this.$H=t.getHours(),this.$m=t.getMinutes(),this.$s=t.getSeconds(),this.$ms=t.getMilliseconds()},m.$utils=function(){return x},m.isValid=function(){return!(this.$d.toString()===d)},m.isSame=function(t,e){var r=O(t);return this.startOf(e)<=r&&r<=this.endOf(e)},m.isAfter=function(t,e){return O(t)<this.startOf(e)},m.isBefore=function(t,e){return this.endOf(e)<O(t)},m.$g=function(t,e,r){return x.u(t)?this[e]:this.set(r,t)},m.unix=function(){return Math.floor(this.valueOf()/1e3)},m.valueOf=function(){return this.$d.getTime()},m.startOf=function(t,e){var r=this,n=!!x.u(e)||e,l=x.p(t),d=function(t,e){var i=x.w(r.$u?Date.UTC(r.$y,e,t):new Date(r.$y,e,t),r);return n?i:i.endOf(s)},p=function(t,e){return x.w(r.toDate()[t].apply(r.toDate("s"),(n?[0,0,0,0]:[23,59,59,999]).slice(e)),r)},y=this.$W,v=this.$M,m=this.$D,g="set"+(this.$u?"UTC":"");switch(l){case f:return n?d(1,0):d(31,11);case c:return n?d(1,v):d(0,v+1);case u:var w=this.$locale().weekStart||0,b=(y<w?y+7:y)-w;return d(n?m-b:m+(6-b),v);case s:case h:return p(g+"Hours",0);case a:return p(g+"Minutes",1);case o:return p(g+"Seconds",2);case i:return p(g+"Milliseconds",3);default:return this.clone()}},m.endOf=function(t){return this.startOf(t,!1)},m.$set=function(t,e){var r,u=x.p(t),l="set"+(this.$u?"UTC":""),d=(r={},r[s]=l+"Date",r[h]=l+"Date",r[c]=l+"Month",r[f]=l+"FullYear",r[a]=l+"Hours",r[o]=l+"Minutes",r[i]=l+"Seconds",r[n]=l+"Milliseconds",r)[u],p=u===s?this.$D+(e-this.$W):e;if(u===c||u===f){var y=this.clone().set(h,1);y.$d[d](p),y.init(),this.$d=y.set(h,Math.min(this.$D,y.daysInMonth())).$d}else d&&this.$d[d](p);return this.init(),this},m.set=function(t,e){return this.clone().$set(t,e)},m.get=function(t){return this[x.p(t)]()},m.add=function(n,l){var h,d=this;n=Number(n);var p=x.p(l),y=function(t){var e=O(d);return x.w(e.date(e.date()+Math.round(t*n)),d)};if(p===c)return this.set(c,this.$M+n);if(p===f)return this.set(f,this.$y+n);if(p===s)return y(1);if(p===u)return y(7);var v=(h={},h[o]=e,h[a]=r,h[i]=t,h)[p]||1,m=this.$d.getTime()+n*v;return x.w(m,this)},m.subtract=function(t,e){return this.add(-1*t,e)},m.format=function(t){var e=this,r=this.$locale();if(!this.isValid())return r.invalidDate||d;var n=t||"YYYY-MM-DDTHH:mm:ssZ",i=x.z(this),o=this.$H,a=this.$m,s=this.$M,u=r.weekdays,c=r.months,l=function(t,r,i,o){return t&&(t[r]||t(e,n))||i[r].slice(0,o)},f=function(t){return x.s(o%12||12,t,"0")},h=r.meridiem||function(t,e,r){var n=t<12?"AM":"PM";return r?n.toLowerCase():n},p={YY:String(this.$y).slice(-2),YYYY:this.$y,M:s+1,MM:x.s(s+1,2,"0"),MMM:l(r.monthsShort,s,c,3),MMMM:l(c,s),D:this.$D,DD:x.s(this.$D,2,"0"),d:String(this.$W),dd:l(r.weekdaysMin,this.$W,u,2),ddd:l(r.weekdaysShort,this.$W,u,3),dddd:u[this.$W],H:String(o),HH:x.s(o,2,"0"),h:f(1),hh:f(2),a:h(o,a,!0),A:h(o,a,!1),m:String(a),mm:x.s(a,2,"0"),s:String(this.$s),ss:x.s(this.$s,2,"0"),SSS:x.s(this.$ms,3,"0"),Z:i};return n.replace(y,(function(t,e){return e||p[t]||i.replace(":","")}))},m.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},m.diff=function(n,h,d){var p,y=x.p(h),v=O(n),m=(v.utcOffset()-this.utcOffset())*e,g=this-v,w=x.m(this,v);return w=(p={},p[f]=w/12,p[c]=w,p[l]=w/3,p[u]=(g-m)/6048e5,p[s]=(g-m)/864e5,p[a]=g/r,p[o]=g/e,p[i]=g/t,p)[y]||g,d?w:x.a(w)},m.daysInMonth=function(){return this.endOf(c).$D},m.$locale=function(){return b[this.$L]},m.locale=function(t,e){if(!t)return this.$L;var r=this.clone(),n=S(t,e,!0);return n&&(r.$L=n),r},m.clone=function(){return x.w(this.$d,this)},m.toDate=function(){return new Date(this.valueOf())},m.toJSON=function(){return this.isValid()?this.toISOString():null},m.toISOString=function(){return this.$d.toISOString()},m.toString=function(){return this.$d.toUTCString()},v}(),j=L.prototype;return O.prototype=j,[["$ms",n],["$s",i],["$m",o],["$H",a],["$W",s],["$M",c],["$y",f],["$D",h]].forEach((function(t){j[t[1]]=function(e){return this.$g(e,t[0],t[1])}})),O.extend=function(t,e){return t.$i||(t(e,L,O),t.$i=!0),O},O.locale=S,O.isDayjs=A,O.unix=function(t){return O(1e3*t)},O.en=b[w],O.Ls=b,O.p={},O}))},"5d51":function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACwAAAAsCAYAAAAehFoBAAAAAXNSR0IArs4c6QAAAwtJREFUWEflmT1MVEEQgL+941/BCxqiiOBp1MAJJ8HEBInGAIUGlRDBv8bCxkQjaGXjT6wBjSY2FpYGGwW0QRqgsDGKEbAwEn6CoREBI6Lcrdl7nByHx709ft5dmO7lzex8O29238yuIEhkc50Lm7yIFOVANpAarLPCz5PAIEK24RWPxYnGnkB/wv8gm6oTSNlWj5SXAPsKQ5kd3oMQj/g5dF3UPPutjHzAs7CvkLLU7EirrNfO1PAxBW0At157gJSXVxlCz50QD0VFwxXhy1lBdxSlQaiJeJC4hWytbUSKWr3pWqQt5D0hW+o+Ai6LEHTd9ijgCQu2Ll1Qv/6kApaRWlthtwaB0zLhxyh4PeEDbouD9RkwMRJeN4TG0iK8qxz2HIXJUXj7xAAPJamboeiCAfzpJXxujwh6acCuSnAeMhzPTMOHJhh5txBkaxHkV0NcgvHuSwf0PrcAOC4R3GdhS8Gc8/4u6H0B0gMqBfIqYXvx3PuR99D9FDy+0kBblhZhvzvnYcitANtszTQ2AH3NkHcSHKrgw8jxvhbo79CGDDTQB84shA1ZIGzzHSuwdGdomG/98H1g/nuvF8aH4KuqDMyJHvC+c5C139zIOlqDb4z8NyHmgZMcUHbTxJARqEgJr2/DtKrdFxfzwOk7oHgFK9Cu+wtT5j/saxz4zy/orIedpZB9AMS/DizclwZLIjw1Bu13DbiMPCiogaS08LBKw3JgBRG/DvJPQaY7PHRUAPsx1a95bxXEJ4cGjypghZmyEY7cWPjD8U8h6oBVlAvPx0CEVRq4qiCraPE8jooIb9oN7jOQ7IjyRWePh9zjkHPQ/F5sSYS9M9DTDM4So7PQEUuAdQCDdZcd2JEDJVeXgrS4bWcDjA+HHd988aPaobI7c31Z2KE1FFQ/2HbLVNtkHlj5V92G+zTYZ5tJDaaQqgpW9Xgmuw49YOXVnmgsqOAWKRJ46TWOBjQaUn3gSMCW0SYmDwNj7Lg15g60Y+3KQK2HmLqU8QEbd3Sxc+0VAB0bF4uB22S0X93+BYuRhArKq4LiAAAAAElFTkSuQmCC"},"65b2":function(t,e,r){},"675d":function(t,e,r){"use strict";r.r(e);var n=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"live-room",staticStyle:{"min-height":"100vh",overflow:"hidden"}},[r("van-sticky",{staticStyle:{height:"44px",width:"100%"},style:{height:"1"!=t.params.liveState?"78px":"44px"},attrs:{"offset-top":"0"}},[r("van-tabs",{attrs:{color:"#01C1B5","line-width":"16px","line-height":"4px"},on:{change:t.onSearch},model:{value:t.params.liveState,callback:function(e){t.$set(t.params,"liveState",e)},expression:"params.liveState"}},[r("van-tab",{attrs:{name:"1",title:"直播中"}}),r("van-tab",{attrs:{name:"0",title:"未开始"}}),r("van-tab",{attrs:{name:"2",title:"已结束"}})],1),"1"!=t.params.liveState?r("div",{staticClass:"titleWrap week",staticStyle:{height:"22px","line-height":"22px",padding:"12px 0.14rem 0"},on:{click:function(e){t.showCalendar=!0}}},[r("div",{staticClass:"calendar",class:t.showCalendar?"active":""},[r("div",[t._v(t._s(t.params.startTime)+"~"+t._s(t.params.endTime))])])]):t._e()],1),r("van-calendar",{attrs:{minDate:t.minDate,color:"#01C1B5","default-date":[t.dayjs(t.params.startTime).toDate(),t.dayjs(t.params.endTime).toDate()],type:"range","first-day-of-week":1,"get-container":"body"},on:{confirm:t.onConfirm},model:{value:t.showCalendar,callback:function(e){t.showCalendar=e},expression:"showCalendar"}}),t.dataShow?r("van-list",{key:"ing",staticStyle:{"margin-top":"0.15rem"},attrs:{finished:t.finished,"finished-text":" ","immediate-check":!1},on:{load:function(e){return t.getList()}},model:{value:t.loading,callback:function(e){t.loading=e},expression:"loading"}},t._l(t.dataList,(function(t,e){return r("div",{key:e},[r("live-room",{attrs:{item:t}})],1)})),0):r("m-empty",{attrs:{msg:"暂无数据"}})],1)},i=[],o=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("van-cell-group",{staticClass:"cell-group",attrs:{border:!1}},[n("van-cell",{staticStyle:{"border-radius":"0.1rem !important"},attrs:{center:""},scopedSlots:t._u([{key:"title",fn:function(){return[n("div",{staticClass:"title"},[n("img",{attrs:{src:r("5d51"),alt:""}}),n("p",{staticClass:"van-ellipsis",staticStyle:{width:"2.8rem"}},[t._v("\n "+t._s(t.item.roomTitle)+"\n ")])])]},proxy:!0},{key:"label",fn:function(){return[t._v("\n 直播内容:"+t._s(t.item.liveRemark)+" "),n("br"),1!=t.item.liveState?[t._v("\n 直播时间:"+t._s(t.item.liveStartTime)+"\n ")]:t._e()]},proxy:!0}])}),n("van-cell",{staticStyle:{"border-radius":"0.1rem !important"},attrs:{center:""},scopedSlots:t._u([{key:"title",fn:function(){return[n("div",{staticClass:"username"},[n("img",{attrs:{src:r("c558")}}),n("span",[t._v("主讲人:"+t._s(t.item.speakerName))])])]},proxy:!0}])},[1==t.item.liveState?n("van-button",{attrs:{round:"",size:"small",color:"#FF806F"},on:{click:t.onDetail}},[n("img",{staticClass:"svg",attrs:{src:r("9dd6"),alt:""}}),t._v("\n 进入直播\n ")]):t._e(),2==t.item.liveState?n("van-button",{staticStyle:{"min-width":"68px"},attrs:{round:"",size:"small",type:"info"},on:{click:t.onDetail}},[t._v("\n 查看回放\n ")]):t._e()],1)],1),n("van-popup",{staticStyle:{width:"90%"},attrs:{round:"",closeable:""},model:{value:t.videoStatus,callback:function(e){t.videoStatus=e},expression:"videoStatus"}},[t.videoStatus?n("preview-video",{attrs:{videoList:t.videoList}}):t._e()],1)],1)},a=[],s=r("ddf4"),u=r("e7ae");function c(t){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},c(t)}function l(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */l=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(E){s=function(t,e,r){return t[e]=r}}function u(t,e,r,n){var i=e&&e.prototype instanceof d?e:d,o=Object.create(i.prototype),a=new L(n||[]);return o._invoke=function(t,e,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return D()}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=S(a,r);if(s){if(s===h)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var u=f(t,e,r);if("normal"===u.type){if(n=r.done?"completed":"suspendedYield",u.arg===h)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(n="completed",r.method="throw",r.arg=u.arg)}}}(t,r,a),o}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(E){return{type:"throw",arg:E}}}t.wrap=u;var h={};function d(){}function p(){}function y(){}var v={};s(v,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(j([])));g&&g!==e&&r.call(g,i)&&(v=g);var w=y.prototype=d.prototype=Object.create(v);function b(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function A(t,e){function n(i,o,a,s){var u=f(t[i],t,o);if("throw"!==u.type){var l=u.arg,h=l.value;return h&&"object"==c(h)&&r.call(h,"__await")?e.resolve(h.__await).then((function(t){n("next",t,a,s)}),(function(t){n("throw",t,a,s)})):e.resolve(h).then((function(t){l.value=t,a(l)}),(function(t){return n("throw",t,a,s)}))}s(u.arg)}var i;this._invoke=function(t,r){function o(){return new e((function(e,i){n(t,r,e,i)}))}return i=i?i.then(o,o):o()}}function S(t,e){var r=t.iterator[e.method];if(void 0===r){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=void 0,S(t,e),"throw"===e.method))return h;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return h}var n=f(r,t.iterator,e.arg);if("throw"===n.type)return e.method="throw",e.arg=n.arg,e.delegate=null,h;var i=n.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,h):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,h)}function O(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function x(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function L(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(O,this),this.reset(!0)}function j(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:D}}function D(){return{value:void 0,done:!0}}return p.prototype=y,s(w,"constructor",y),s(y,"constructor",p),p.displayName=s(y,a,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===p||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,y):(t.__proto__=y,s(t,a,"GeneratorFunction")),t.prototype=Object.create(w),t},t.awrap=function(t){return{__await:t}},b(A.prototype),s(A.prototype,o,(function(){return this})),t.AsyncIterator=A,t.async=function(e,r,n,i,o){void 0===o&&(o=Promise);var a=new A(u(e,r,n,i),o);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},b(w),s(w,a,"Generator"),s(w,i,(function(){return this})),s(w,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=[];for(var r in t)e.push(r);return e.reverse(),function r(){for(;e.length;){var n=e.pop();if(n in t)return r.value=n,r.done=!1,r}return r.done=!0,r}},t.values=j,L.prototype={constructor:L,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(x),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),u=r.call(o,"finallyLoc");if(s&&u){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method="next",this.next=o.finallyLoc,h):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),h},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),x(r),h}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var i=n.arg;x(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:j(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),h}},t}function f(t,e,r,n,i,o,a){try{var s=t[o](a),u=s.value}catch(c){return void r(c)}s.done?e(u):Promise.resolve(u).then(n,i)}function h(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){f(o,n,i,a,s,"next",t)}function s(t){f(o,n,i,a,s,"throw",t)}a(void 0)}))}}var d={components:{previewVideo:u["default"]},props:["item"],data:function(){return{videoStatus:!1,videoList:[],src:""}},methods:{onDetail:function(){var t=h(l().mark((function t(){var e;return l().wrap((function(t){while(1)switch(t.prev=t.next){case 0:e=this.item,1==e.liveState?Object(s["b"])({api:"enterLiveRoom",content:{roomId:e.roomUid}}):2==e.liveState&&(this.$router.push("/previewVideo?roomUid="+e.roomUid),this.videoStatus=!0);case 2:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}()}},p=d,y=(r("1337"),r("2877")),v=Object(y["a"])(p,o,a,!1,null,"72f20825",null),m=v.exports,g=r("d678"),w=r("70e7"),b=r("5a0c"),A=r.n(b);function S(t){return S="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},S(t)}var O=["startTime","endTime"];function x(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */x=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(E){s=function(t,e,r){return t[e]=r}}function u(t,e,r,n){var i=e&&e.prototype instanceof f?e:f,o=Object.create(i.prototype),a=new L(n||[]);return o._invoke=function(t,e,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return D()}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=b(a,r);if(s){if(s===l)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var u=c(t,e,r);if("normal"===u.type){if(n=r.done?"completed":"suspendedYield",u.arg===l)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(n="completed",r.method="throw",r.arg=u.arg)}}}(t,r,a),o}function c(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(E){return{type:"throw",arg:E}}}t.wrap=u;var l={};function f(){}function h(){}function d(){}var p={};s(p,i,(function(){return this}));var y=Object.getPrototypeOf,v=y&&y(y(j([])));v&&v!==e&&r.call(v,i)&&(p=v);var m=d.prototype=f.prototype=Object.create(p);function g(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function w(t,e){function n(i,o,a,s){var u=c(t[i],t,o);if("throw"!==u.type){var l=u.arg,f=l.value;return f&&"object"==S(f)&&r.call(f,"__await")?e.resolve(f.__await).then((function(t){n("next",t,a,s)}),(function(t){n("throw",t,a,s)})):e.resolve(f).then((function(t){l.value=t,a(l)}),(function(t){return n("throw",t,a,s)}))}s(u.arg)}var i;this._invoke=function(t,r){function o(){return new e((function(e,i){n(t,r,e,i)}))}return i=i?i.then(o,o):o()}}function b(t,e){var r=t.iterator[e.method];if(void 0===r){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=void 0,b(t,e),"throw"===e.method))return l;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return l}var n=c(r,t.iterator,e.arg);if("throw"===n.type)return e.method="throw",e.arg=n.arg,e.delegate=null,l;var i=n.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,l):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,l)}function A(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function O(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function L(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(A,this),this.reset(!0)}function j(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:D}}function D(){return{value:void 0,done:!0}}return h.prototype=d,s(m,"constructor",d),s(d,"constructor",h),h.displayName=s(d,a,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===h||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,d):(t.__proto__=d,s(t,a,"GeneratorFunction")),t.prototype=Object.create(m),t},t.awrap=function(t){return{__await:t}},g(w.prototype),s(w.prototype,o,(function(){return this})),t.AsyncIterator=w,t.async=function(e,r,n,i,o){void 0===o&&(o=Promise);var a=new w(u(e,r,n,i),o);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},g(m),s(m,a,"Generator"),s(m,i,(function(){return this})),s(m,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=[];for(var r in t)e.push(r);return e.reverse(),function r(){for(;e.length;){var n=e.pop();if(n in t)return r.value=n,r.done=!1,r}return r.done=!0,r}},t.values=j,L.prototype={constructor:L,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(O),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),u=r.call(o,"finallyLoc");if(s&&u){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method="next",this.next=o.finallyLoc,l):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),l},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),O(r),l}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var i=n.arg;O(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:j(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),l}},t}function L(t){return E(t)||D(t)||B(t)||j()}function j(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function D(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function E(t){if(Array.isArray(t))return H(t)}function k(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function P(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?k(Object(r),!0).forEach((function(e){$(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):k(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function $(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function M(t,e){if(null==t)return{};var r,n,i=T(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(i[r]=t[r])}return i}function T(t,e){if(null==t)return{};var r,n,i={},o=Object.keys(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||(i[r]=t[r]);return i}function Y(t,e,r,n,i,o,a){try{var s=t[o](a),u=s.value}catch(c){return void r(c)}s.done?e(u):Promise.resolve(u).then(n,i)}function C(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){Y(o,n,i,a,s,"next",t)}function s(t){Y(o,n,i,a,s,"throw",t)}a(void 0)}))}}function _(t,e){return G(t)||N(t,e)||B(t,e)||I()}function I(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function B(t,e){if(t){if("string"===typeof t)return H(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?H(t,e):void 0}}function H(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function N(t,e){var r=null==t?null:"undefined"!==typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,i,o=[],a=!0,s=!1;try{for(r=r.call(t);!(a=(n=r.next()).done);a=!0)if(o.push(n.value),e&&o.length===e)break}catch(u){s=!0,i=u}finally{try{a||null==r["return"]||r["return"]()}finally{if(s)throw i}}return o}}function G(t){if(Array.isArray(t))return t}var Q=A()().startOf("month").format("YYYY-MM-DD"),U=A()().endOf("month").format("YYYY-MM-DD"),W={components:{liveRoom:m,MEmpty:g["a"]},data:function(){var t=this.$route.query,e=sessionStorage.getItem("liveRoomListTab");return{minDate:new Date(2e3,0,1),showCalendar:!1,dataList:[],dataLoading:!1,dataShow:!0,loading:!1,finished:!1,params:{endTime:U,startTime:Q,page:1,rows:20,liveState:0==t.t?"0":e||"1"},hiddenProperty:null,pageStatusTimer:null}},mounted:function(){this.hiddenProperty="hidden"in document?"hidden":"webkitHidden"in document?"webkitHidden":"mozHidden"in document?"mozHidden":null,this.visibilityChangeEvent=this.hiddenProperty.replace(/hidden/i,"visibilitychange"),document.addEventListener(this.visibilityChangeEvent,this.onVisibilityChange),document.title="直播间",this.getList()},methods:{dayjs:A.a,onVisibilityChange:function(){var t=this;document[this.hiddenProperty]?this.pageStatusTimer=setInterval((function(){document[t.hiddenProperty]||(clearInterval(t.pageStatusTimer),t.onSearch())}),1e3):(clearInterval(this.pageStatusTimer),this.onSearch())},onConfirm:function(t){var e=_(t,2),r=e[0],n=e[1];this.params.startTime=A()(r).format("YYYY-MM-DD"),this.params.endTime=A()(n).format("YYYY-MM-DD"),this.showCalendar=!1,this.onSearch()},onSearch:function(){sessionStorage.setItem("liveRoomListTab",this.params.liveState),this.dateShow=!0,this.loading=!1,this.finished=!1,this.params.page=1,this.dataList=[],this.getList()},getList:function(){var t=C(x().mark((function t(){var e,r,n,i,o,a,s,u;return x().wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(t.prev=0,!this.dataLoading){t.next=3;break}return t.abrupt("return");case 3:return this.dataLoading=!0,r=this.params,n=r.startTime,i=r.endTime,o=M(r,O),a=P({},o),"1"!=this.params.liveState&&(a.startTime=n,a.endTime=i),t.next=9,Object(w["a"])(a);case 9:if(s=t.sent,this.dataLoading=!1,u=s.data,this.loading=!1,!(this.dataList.length>0&&1==u.pageNo)){t.next=15;break}return t.abrupt("return");case 15:(e=this.dataList).push.apply(e,L(u.rows||[])),this.params.page>=Math.ceil(u.total/this.params.rows)&&(this.finished=!0),this.params.page++,this.dataList.length<=0?this.dataShow=!1:this.dataShow=!0,t.next=23;break;case 21:t.prev=21,t.t0=t["catch"](0);case 23:case"end":return t.stop()}}),t,this,[[0,21]])})));function e(){return t.apply(this,arguments)}return e}()},beforeDestroy:function(){clearInterval(this.pageStatusTimer),document.removeEventListener(this.visibilityChangeEvent,this.onVisibilityChange)}},V=W,F=(r("9903"),Object(y["a"])(V,n,i,!1,null,"651d0f42",null));e["default"]=F.exports},9903:function(t,e,r){"use strict";r("65b2")},"9dd6":function(t,e,r){t.exports=r.p+"img/audio.8f8f3d19.svg"},a78e:function(t,e,r){},c558:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAeCAYAAAA2Lt7lAAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAAGKADAAQAAAABAAAAHgAAAABtdYANAAADQUlEQVRIDa1WTWjUUBD+Jo0VlVoRxEI9WEGw2pNolfoDgnhTaasHD5Z6Kx5sl4qodenWtYo/y3ryqKIoWLQgHoX6B1ZrPYluvQiKaG+14qGyScZ5bze72c3L5uKDJDPffDNf8vLeJISYwZyykJ4/DvZ6wGjVdEIOZN1BsvEGUcqrVYJqBflSYh3+eneF0xHBe43F1lE6k/0SEYcVFeCxVL0Uf1yjuErtUBzNjSgUKYBPc8OS0xaRF4TbitwgVrKNAjw2VgdQX4kVa1BfISdMNArg87u1AK8M06MQ4eqccNwswM7SMDUGicgxC9TXfwPBjSlZDiuuyjEMowCdvjwv3AkDPwqaKOaE4kYBzVpkn5DrQigjDCygwA1HBIkUoLOZGZkmESHHmKlBiQlHcyNINXeyyuHzg1vB7i0wb6qoQfQRddRL57LTFXiVowWYmTA6uA0ut4JY9oCMXStu056UvnsdT5/cAjiFXgQ7h+S1aSJiReVnKRuvfvUqG0yuCOcwlHmr4sTZgRWYh7QE3q0J/onsfTSceeq76soXEu3qKnc9pa7+4HRiL1yvgiusl2jEQQu/6UqouMpk95BfQLsj/YflCZ+rg5UdHK7XHXQLttyw1JaX7B0IBwUh7vS3P48MDAnyQN7DEn2IXcTElXZO6DTWYG+/JT1+tTmIVci9KU4bHxNeeUFoWzA1Rud2RtYAmiKXqU4uTZP1UPsVpyLmWIbpKRNrCwBdegrqEBYQTK8ueF3lcmErTqBJPpc79Fon+lpKF1tjamkDa0q4wYgTkDWAwmpiPCrl+7ZjWj0lljbiBYi79VTYVlnAtyVWWS7s2WGoCmFuRjqxHcnsJEYGfujoUGaSyduMPLeI/x22fQSeG2jv1ALPu6e48U+gWDJNxbYwLt64tvPFuyc0w3VuwuPA4V1VaWrEP4GmsXoPg7ACy5WoW3aZ7Hi9P9ZrmuFEnOr/KXiTIVYJWXY7kg3vNXjxz0bk8x8qCUZvVra59cQYqgY9V6Yp5ek/OceJfbk6XWpbWM6nQPSiup7BDza/eAFVU2qTKlTo9wPSiqlV+nnhe2BQQAPuY9kGB7MzPaawxohlNbF8L65P+d+LSO7/CPwDFM8rSIIpXcUAAAAASUVORK5CYII="},ddf4:function(t,e,r){"use strict";r.d(e,"b",(function(){return y})),r.d(e,"a",(function(){return v}));var n=r("ff51");function i(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function o(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?i(Object(r),!0).forEach((function(e){a(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):i(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function a(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function s(t,e){var r="undefined"!==typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=u(t))||e&&t&&"number"===typeof t.length){r&&(t=r);var n=0,i=function(){};return{s:i,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return a=t.done,t},e:function(t){s=!0,o=t},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw o}}}}function u(t,e){if(t){if("string"===typeof t)return c(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?c(t,e):void 0}}function c(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function l(t){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},l(t)}var f=function(){},h={},d=Object(n["b"])();d.isApp&&window.addEventListener("message",(function(t){try{var e=t.data?"object"===l(t.data)?t.data:JSON.parse(t.data):{},r=e.content.uuid||e.uuid;try{e.content&&(e.content=JSON.parse(e.content))}catch(d){}if(!r){var n,i=Object.keys(h).filter((function(t){return 0===t.indexOf(e.api)})),o=s(i);try{for(o.s();!(n=o.n()).done;){var a=n.value,u=h[a]||f;u(e)}}catch(p){o.e(p)}finally{o.f()}return}var c=h[e.content.uuid||e.uuid||e.api+e.uuid]||f;c(e)}catch(d){console.error("通信消息解析错误",d)}}));var p=window.DAYA||window.webkit&&window.webkit.messageHandlers&&window.webkit.messageHandlers.DAYA,y=function(t,e){if(d.isApp){var r=Object(n["g"])();h[r]=e||f,t.content=t.content?o(o({},t.content),{},{uuid:r}):{uuid:r},p.postMessage(JSON.stringify(t))}},v=function(t,e){if(d.isApp){var r=t+Object(n["g"])();h[r]=e||f}}}}]);