1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["liveRoomList"],{2105:function(t,e,r){},"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",h="year",f="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+)?$/,v=/\[([^\]]+)]|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,y={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:h,w:u,d:s,D:f,h:a,m:o,s:i,ms:n,Q:l}[t]||String(t||"").toLowerCase().replace(/s$/,"")},u:function(t){return void 0===t}},A="en",w={};w[A]=y;var b=function(t){return t instanceof E},S=function t(e,r,n){var i;if(!e)return A;if("string"==typeof e){var o=e.toLowerCase();w[o]&&(i=o),r&&(w[o]=r,i=o);var a=e.split("-");if(!i&&a.length>1)return t(a[0])}else{var s=e.name;w[s]=e,i=s}return!n&&i&&(A=i),i||!n&&A},x=function(t,e){if(b(t))return t.clone();var r="object"==typeof e?e:{};return r.date=t,r.args=arguments,new E(r)},L=g;L.l=S,L.i=b,L.w=function(t,e){return x(t,{locale:e.$L,utc:e.$u,x:e.$x,$offset:e.$offset})};var E=function(){function y(t){this.$L=S(t.locale,null,!0),this.parse(t)}var m=y.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(L.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 L},m.isValid=function(){return!(this.$d.toString()===d)},m.isSame=function(t,e){var r=x(t);return this.startOf(e)<=r&&r<=this.endOf(e)},m.isAfter=function(t,e){return x(t)<this.startOf(e)},m.isBefore=function(t,e){return this.endOf(e)<x(t)},m.$g=function(t,e,r){return L.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=!!L.u(e)||e,l=L.p(t),d=function(t,e){var i=L.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 L.w(r.toDate()[t].apply(r.toDate("s"),(n?[0,0,0,0]:[23,59,59,999]).slice(e)),r)},v=this.$W,y=this.$M,m=this.$D,g="set"+(this.$u?"UTC":"");switch(l){case h:return n?d(1,0):d(31,11);case c:return n?d(1,y):d(0,y+1);case u:var A=this.$locale().weekStart||0,w=(v<A?v+7:v)-A;return d(n?m-w:m+(6-w),y);case s:case f: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=L.p(t),l="set"+(this.$u?"UTC":""),d=(r={},r[s]=l+"Date",r[f]=l+"Date",r[c]=l+"Month",r[h]=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===h){var v=this.clone().set(f,1);v.$d[d](p),v.init(),this.$d=v.set(f,Math.min(this.$D,v.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[L.p(t)]()},m.add=function(n,l){var f,d=this;n=Number(n);var p=L.p(l),v=function(t){var e=x(d);return L.w(e.date(e.date()+Math.round(t*n)),d)};if(p===c)return this.set(c,this.$M+n);if(p===h)return this.set(h,this.$y+n);if(p===s)return v(1);if(p===u)return v(7);var y=(f={},f[o]=e,f[a]=r,f[i]=t,f)[p]||1,m=this.$d.getTime()+n*y;return L.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=L.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)},h=function(t){return L.s(o%12||12,t,"0")},f=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:L.s(s+1,2,"0"),MMM:l(r.monthsShort,s,c,3),MMMM:l(c,s),D:this.$D,DD:L.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:L.s(o,2,"0"),h:h(1),hh:h(2),a:f(o,a,!0),A:f(o,a,!1),m:String(a),mm:L.s(a,2,"0"),s:String(this.$s),ss:L.s(this.$s,2,"0"),SSS:L.s(this.$ms,3,"0"),Z:i};return n.replace(v,(function(t,e){return e||p[t]||i.replace(":","")}))},m.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},m.diff=function(n,f,d){var p,v=L.p(f),y=x(n),m=(y.utcOffset()-this.utcOffset())*e,g=this-y,A=L.m(this,y);return A=(p={},p[h]=A/12,p[c]=A,p[l]=A/3,p[u]=(g-m)/6048e5,p[s]=(g-m)/864e5,p[a]=g/r,p[o]=g/e,p[i]=g/t,p)[v]||g,d?A:L.a(A)},m.daysInMonth=function(){return this.endOf(c).$D},m.$locale=function(){return w[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 L.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()},y}(),D=E.prototype;return x.prototype=D,[["$ms",n],["$s",i],["$m",o],["$H",a],["$W",s],["$M",c],["$y",h],["$D",f]].forEach((function(t){D[t[1]]=function(e){return this.$g(e,t[0],t[1])}})),x.extend=function(t,e){return t.$i||(t(e,E,x),t.$i=!0),x},x.locale=S,x.isDayjs=b,x.unix=function(t){return x(1e3*t)},x.en=w[A],x.Ls=w,x.p={},x}))},"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",{staticClass:"userInfo",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))]),2!=t.item.liveState?n("div",{staticClass:"tag"},[n("img",{attrs:{src:r("9e70")}}),t._v("\n "+t._s("pc"==t.item.os?"电脑直播":"手机直播")+"\n ")]):t._e()])]},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(j){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 E(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 O()}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=S(a,r);if(s){if(s===f)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=h(t,e,r);if("normal"===u.type){if(n=r.done?"completed":"suspendedYield",u.arg===f)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 h(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(j){return{type:"throw",arg:j}}}t.wrap=u;var f={};function d(){}function p(){}function v(){}var y={};s(y,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(D([])));g&&g!==e&&r.call(g,i)&&(y=g);var A=v.prototype=d.prototype=Object.create(y);function w(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function b(t,e){function n(i,o,a,s){var u=h(t[i],t,o);if("throw"!==u.type){var l=u.arg,f=l.value;return f&&"object"==c(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 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 f;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return f}var n=h(r,t.iterator,e.arg);if("throw"===n.type)return e.method="throw",e.arg=n.arg,e.delegate=null,f;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,f):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,f)}function x(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 L(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function E(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(x,this),this.reset(!0)}function D(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:O}}function O(){return{value:void 0,done:!0}}return p.prototype=v,s(A,"constructor",v),s(v,"constructor",p),p.displayName=s(v,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,v):(t.__proto__=v,s(t,a,"GeneratorFunction")),t.prototype=Object.create(A),t},t.awrap=function(t){return{__await:t}},w(b.prototype),s(b.prototype,o,(function(){return this})),t.AsyncIterator=b,t.async=function(e,r,n,i,o){void 0===o&&(o=Promise);var a=new b(u(e,r,n,i),o);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},w(A),s(A,a,"Generator"),s(A,i,(function(){return this})),s(A,"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=D,E.prototype={constructor:E,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(L),!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,f):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),f},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),L(r),f}},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;L(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:D(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}function h(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 f(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){h(o,n,i,a,s,"next",t)}function s(t){h(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=f(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,v=(r("fa8a"),r("2877")),y=Object(v["a"])(p,o,a,!1,null,"d7ddd5b2",null),m=y.exports,g=r("d678"),A=r("70e7"),w=r("5a0c"),b=r.n(w);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 x=["startTime","endTime"];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(j){s=function(t,e,r){return t[e]=r}}function u(t,e,r,n){var i=e&&e.prototype instanceof h?e:h,o=Object.create(i.prototype),a=new E(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 O()}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=w(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(j){return{type:"throw",arg:j}}}t.wrap=u;var l={};function h(){}function f(){}function d(){}var p={};s(p,i,(function(){return this}));var v=Object.getPrototypeOf,y=v&&v(v(D([])));y&&y!==e&&r.call(y,i)&&(p=y);var m=d.prototype=h.prototype=Object.create(p);function g(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=c(t[i],t,o);if("throw"!==u.type){var l=u.arg,h=l.value;return h&&"object"==S(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 w(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,w(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 b(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 E(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(b,this),this.reset(!0)}function D(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:O}}function O(){return{value:void 0,done:!0}}return f.prototype=d,s(m,"constructor",d),s(d,"constructor",f),f.displayName=s(d,a,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===f||"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(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()}))},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=D,E.prototype={constructor:E,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,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),x(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;x(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:D(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),l}},t}function E(t){return j(t)||O(t)||I(t)||D()}function D(){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 O(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function j(t){if(Array.isArray(t))return H(t)}function T(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 k(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?T(Object(r),!0).forEach((function(e){$(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):T(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=B(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 B(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 P(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){P(o,n,i,a,s,"next",t)}function s(t){P(o,n,i,a,s,"throw",t)}a(void 0)}))}}function Y(t,e){return N(t)||Q(t,e)||I(t,e)||_()}function _(){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 I(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 Q(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 N(t){if(Array.isArray(t))return t}var U=b()().startOf("month").format("YYYY-MM-DD"),V=b()().endOf("month").format("YYYY-MM-DD"),F={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:V,startTime:U,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:b.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=Y(t,2),r=e[0],n=e[1];this.params.startTime=b()(r).format("YYYY-MM-DD"),this.params.endTime=b()(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(L().mark((function t(){var e,r,n,i,o,a,s,u;return L().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,x),a=k({},o),"1"!=this.params.liveState&&(a.startTime=n,a.endTime=i),t.next=9,Object(A["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,E(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)}},G=F,W=(r("9903"),Object(v["a"])(G,n,i,!1,null,"651d0f42",null));e["default"]=W.exports},9903:function(t,e,r){"use strict";r("65b2")},"9dd6":function(t,e,r){t.exports=r.p+"img/audio.8f8f3d19.svg"},"9e70":function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAYCAMAAADNlS1EAAAAAXNSR0IArs4c6QAAAE5QTFRFAAAA/wAA/////4CA/4Vv/4Vw/4Bu/4Jt/4Bx/4Jx/4Bw/4Fw/4Fu/4Fu/4Bv/4Bw/4Bv/4Bw/4Bv/4Bw/4Fv/4Bv/4Bu/4Bv/4Bu/4BvVHULSwAAABl0Uk5TAAEBAhcZLDE0PUJ7fX+eoKerrsTI6vf3/tysAcUAAABnSURBVBjT5dFJEoAgEEPRIDiPoKC5/0VdtCjiEfzLt0pVAEDXXazWkMqNT1sp6JjmBHdObWziLkiOiI3kD7HQxQeXg8eSoyfpc2z6oW8SDJzvj2YGQfu6wwqaNbHVXONUdX9UKQA4AQMZEL6QEtP1AAAAAElFTkSuQmCC"},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="},fa8a:function(t,e,r){"use strict";r("2105")}}]);
|