| 1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-live-broadcast"],{"0a9a":function(t,e,n){"use strict";n.r(e);var i=n("95a0"),o=n.n(i);for(var a in i)"default"!==a&&function(t){n.d(e,t,(function(){return i[t]}))}(a);e["default"]=o.a},"0bc4":function(t,e,n){"use strict";function i(t){var e=/(^[1-9]\d{5}(18|19|([23]\d))\d{2}((0[1-9])|(10|11|12))(([0-2][1-9])|10|20|30|31)\d{3}[0-9Xx]$)|(^[1-9]\d{5}\d{2}((0[1-9])|(10|11|12))(([0-2][1-9])|10|20|30|31)\d{2}$)/;return!1!==e.test(t)||(console.log(t),!1)}function o(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;"string"==typeof t&&(t=(+t).toFixed(2)),"number"==typeof t&&(t=t.toFixed(2));var e=t.split(""),n=e.reverse().map((function(t,e,n){return e%3==0&&e/3>1&&e!=n.length?t+",":t}));return n=n.reverse().join(""),n}function a(t){var e=(new Date).getTime(),n=t-e;n<0&&(n*=-1);var i=Math.floor(n/1e3/60/60/24),o=Math.floor(n/1e3/60/60%24),a=Math.floor(n/1e3/60%60),s=Math.floor(n/1e3%60);return{hours:o,minutes:a,seconds:s,day:i}}function s(t){for(var e=13-(t+"").length,n=1,i=0;i<e;i++)n+="0";n=parseInt(n);var o=new Date(parseInt(t)*n),a=o.getFullYear(),s=o.getMonth()+1,c=o.getDate(),r=o.getHours(),l=o.getMinutes(),f=o.getSeconds();return a+"-"+s+"-"+c+" "+r+":"+l+":"+f}function c(t,e,n){if(!t||"string"!=typeof t)return!1;for(var i=document.getElementsByTagName(e),o=!1,a="script"==e?"src":"href",s=0;s<i.length;s++)i[s].getAttribute(a)==t&&(o=!0);if(!o){var c=document.getElementsByTagName("head")[0],r=document.createElement(e);"script"==e&&(r.type="text/javascript"),"link"==e&&(r.rel="stylesheet"),r.setAttribute(a,t),n&&(r.onload=r.onreadystatechange=function(){this.readyState&&"loaded"!==this.readyState&&"complete"!==this.readyState||(n(),r.onload=r.onreadystatechange=null)}),c.appendChild(r)}}n("d81d"),n("26e9"),n("e25e"),n("ac1f"),n("1276"),Object.defineProperty(e,"__esModule",{value:!0}),e.isCardNo=i,e.getMoneyStyle=o,e.timeComputed=a,e.getTime=s,e.getWwwJs=c},"0ce0":function(t,e,n){var i=n("c137");"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var o=n("4f06").default;o("260423fc",i,!0,{sourceMap:!1,shadowMode:!1})},"35ff":function(t,e,n){var i=n("24fb");e=i(!1),e.push([t.i,'@charset "UTF-8";\n/* 页面左右间距 */\n/* 文字尺寸 */\n/*文字颜色*/\n/* 边框颜色 */\n/*颜色*/\n/* 图片加载中颜色 */\n/* 行为相关颜色 */\n/* 功能栏字体大小 */\n/*功能栏左侧小图标*/.container[data-v-e7dcc7f0]{background-color:#fff}.top[data-v-e7dcc7f0]{width:100%;height:%?500?%}.top .course-video[data-v-e7dcc7f0]{width:100%;height:60vw}.top .course-video.errorContent[data-v-e7dcc7f0]{display:flex;justify-content:center;align-items:center;background-color:#212121;text-align:center}.top .course-video.errorContent .contentText[data-v-e7dcc7f0]{font-size:%?32?%;color:#fff}.top .course-video.errorContent .contentText .tvImg[data-v-e7dcc7f0]{width:%?75?%;height:%?64?%;margin-bottom:%?25?%}.uni-column[data-v-e7dcc7f0]{display:flex;flex-direction:column}.content[data-v-e7dcc7f0]{display:flex;flex:1\n /* margin-bottom: 100upx; */}.foot[data-v-e7dcc7f0]{box-shadow:0 -1px 5px rgba(0,0,0,.1);position:fixed;width:100%;height:auto;left:%?0?%;bottom:0;overflow:hidden}.footer[data-v-e7dcc7f0]{display:flex;flex-direction:row;width:100%;height:%?110?%;line-height:%?100?%;overflow:hidden;background-color:#fff}.footer-left[data-v-e7dcc7f0]{width:%?80?%;height:%?80?%;display:flex;justify-content:center;align-items:center}.footer-right[data-v-e7dcc7f0]{background-color:#6786fb;width:%?130?%;display:flex;justify-content:center;align-items:center;color:#1482d1;line-height:%?20?%}.footer-right uni-image[data-v-e7dcc7f0]{width:%?50?%;height:%?50?%}.footer-emotion[data-v-e7dcc7f0]{padding:%?0?% %?25?%;display:flex;justify-content:flex-end;align-items:center;color:#1482d1}.footer-center[data-v-e7dcc7f0]{border-left:%?2?% solid #ccc;padding-left:%?20?%;flex:1;display:flex;justify-content:center;align-items:center;font-size:%?26?%}.footer-center .input-text[data-v-e7dcc7f0]{font-size:%?26?%;flex:1;background:#fff;font-family:verdana!important;overflow:hidden;border-radius:%?15?%}@font-face{font-family:iconfont;\n /* project id 1134039 */src:url(http://at.alicdn.com/t/font_1134039_uait6xu86bf.eot);src:url(http://at.alicdn.com/t/font_1134039_uait6xu86bf.eot#iefix) format("embedded-opentype"),url(http://at.alicdn.com/t/font_1134039_uait6xu86bf.woff2) format("woff2"),url(http://at.alicdn.com/t/font_1134039_uait6xu86bf.woff) format("woff"),url(http://at.alicdn.com/t/font_1134039_uait6xu86bf.ttf) format("truetype"),url(http://at.alicdn.com/t/font_1134039_uait6xu86bf.svg#iconfont) format("svg")}.iconfont[data-v-e7dcc7f0]{font-family:iconfont!important;font-size:18px;font-style:normal;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.icon[data-v-e7dcc7f0]{color:#f3b72c!important}.icon-face[data-v-e7dcc7f0]:before{content:"\\e71c";font-size:%?50?%}.m-item[data-v-e7dcc7f0]{display:flex;flex-direction:row;padding-top:%?40?%}.m-left[data-v-e7dcc7f0]{display:flex;width:%?120?%;justify-content:center;align-items:flex-start}.m-content[data-v-e7dcc7f0]{display:flex;flex:1;flex-direction:column;justify-content:center;word-break:break-all;font-size:%?22?%}.m-right[data-v-e7dcc7f0]{display:flex;width:%?120?%;justify-content:center;align-items:flex-start}.head_icon[data-v-e7dcc7f0]{width:%?80?%;height:%?80?%;border-radius:100%}.m-content-head[data-v-e7dcc7f0]{position:relative}.m-content-head-right[data-v-e7dcc7f0]{display:flex;justify-content:flex-end}.m-content-head-customer[data-v-e7dcc7f0]{text-align:left;background:#f7f7fb;border:1px #f7f7fb solid;border-radius:%?20?%;padding:%?20?% %?25?%;font-size:%?26?%!important;display:inline-block}.m-content-head-customer[data-v-e7dcc7f0]:before{border:%?15?% solid transparent;border-right:%?15?% solid #f7f7fb;left:%?-26?%;width:0;height:0;position:absolute;content:" "}.m-content-head-home[data-v-e7dcc7f0]{border:%?1?% #fff solid;font-size:%?26?%!important;background:#fff;border-radius:%?20?%;padding:%?20?%;background-color:#f7f7fb}.m-content-head-home[data-v-e7dcc7f0]:after{border:%?15?% solid transparent;border-left:%?15?% solid #f7f7fb;top:%?20?%;right:%?-26?%;width:0;height:0;position:absolute;content:" "}',""]),t.exports=e},4038:function(t,e,n){"use strict";var i=n("6305"),o=n.n(i);o.a},"52d9":function(t,e,n){var i=n("24fb");e=i(!1),e.push([t.i,".emotion-box[data-v-71e876a9]{margin:0 auto;width:95%;box-sizing:border-box;padding:5px;\n\t/* border: 1px solid #b4b4b4; */background-color:#fff;overflow:hidden;overflow-y:auto}.emotion-box-line[data-v-71e876a9]{display:flex}.emotion-item[data-v-71e876a9]{flex:1;text-align:center;cursor:pointer}",""]),t.exports=e},"5df4":function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEsAAABACAYAAABSiYopAAAFSElEQVR4Xu2ca8hmUxTH//9vkhSlKfngOmjchg8uH4TMyC1kjGlCRpiGpsxIEmIKSVOGNMyUZmTkUkpyKWYYw3wYadzVMCSikJqQb/prve3n7bxn9tln73N73p5zdr1vPZ21117r96y999nrrPMQuSbpQQCnuL9j8td78PlbALsB7CFpLKYbsx8kbQBwaw+AxLq4neT5I+FpWJIUq6FvciSnOE39k/Q+gPP6BiHB340kl9OtUQ8kdOyr6D0G60UASwoIbO8hmaIZtsVg7QEw1wPlLJK7+gZL0jkAdnr8/tRgeRf20aLWN1huDfcx2TfA8kRDQQANsHwzZ4CVsJ4MsAZYCQQSRIfIGmAlEEgQHSJrgJVAIEG09ciSdCOAIwM2nQHgJAA/AvigxHbLI+13LnWH/rUk/0nw3bIqBwNYDWALyb1lfVuDJelSAE+VgCqzz3fdYC0m+YcnM7KJ5E0xSl3fVQAMmLXNJJeF+rYJ6wUAS2MMryBzO8n1kj53ae6sinkkvylx+hYAGz0yR5G0CPe2NmG1mWG16FoDwJKT+bYmnyPPCriIf6OAx0qSNhs6h/UkgJUVoiamy3UAfkmFJWk+gB0ADioYZGyRdTGA9S2tWVe76RcdWZLmOFC+HJ2xe5XkorGsWaNBC3bDKwCc5jHMkmtbAwZP74aSLHOZAiv0PMGuXUnyr7HCyg8u6RAAPxVMhXNJfhgzD1NgSQptNrZJGKjChT3zxXeb/JNk683zHiAfkzwzBpTJxMKS9BiAuwr0/glgIUl7eFraWtsNAzvKKwCu8Vy/n+RDpRY7gRhYku4A8HhA5wKSoWk/o2unsCQd7nYxn/3zSX7WFCxJiwG8HNB3LUn74qJb17CsBMBKAfJtG8kLo60umYZukwitfStIPpMynpv63a1ZkrYBuMBj5CqS61KMD01DAHcDOKBA370kH0kZayTbWWRJssob32H1PwDHk/w+xYEArB8AHF2g6wmSto5Val3Csh3JdqZ8e43kVanWB2AVqXqT5GWp42Tlu4Rli/epHmNvJvlsqhOJsOzp+okka51XO4El6WQAX3iA7HNT8PcWYdk0n0PS7qlqta5gPeoW3byxlnS7vooHCZE1l+R3VcbI9+kK1s8AjvAYnHyvk9mZis6G2WEaLWJpHVYgAgzgCST/rfKtR0TWEpKhm9LkYccJ62mStyVb7DqUwLqP5MNVdRf1GyesS0i+XcchSbYxHJbT8RxJe0jSeGsdllksaYVLBI4cCKZvY72UdCeAtRn5GVXEsXpi5TqB5YBZ5tRSMHYTGn1gLnNE0kjvbpKvl8n7rks6G8BFuWu78pHfGawqTnTRR9InAOzZpa/tJXlcZgfu7iDdhfMpY0iKeaiymuRUTqzXkRX7QsSojrbvsIbISpyKw5qVCKz2blhEfBnJzSnGTIKse/65yePLTquDtxxTVEXKJMCo4cMGg2VHBh/JGnonsuui0St0BquVc9aEYJs6tmVfzrQjxOUT4lyTbmwlucAU5l/7XQ4g+Tlbk5bNMl3rSFrV4FSbAcvd6i90ZT7zWigjCrGwelRfTaoVcpQWczQI2V4o/9K9UP5uVu9+sBocNElV4I3aYIVf0iA1hQdYCQAHWAOsBAIJoo1ElstA2m2Hnb2qtrYW+JfsnWeSX1U1rHA3TFUo6UAAHwGwCuHZ2r62L5Lk33UMrB1ZkuyG7Z06RnTUdylJ+1mGyq0JWPYg4a3KFnTX8QaSvhrXaAuagHUoAPv9h2OjR+1e8FcAp5P8rc7QtWHZ4JLsibMV287G37OxnNx7daPK/Pwf1ZRB1JMatkcAAAAASUVORK5CYII="},6305:function(t,e,n){var i=n("9653");"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var o=n("4f06").default;o("85f3d6dc",i,!0,{sourceMap:!1,shadowMode:!1})},"7ed6":function(t,e,n){var i=n("35ff");"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var o=n("4f06").default;o("35f57d0f",i,!0,{sourceMap:!1,shadowMode:!1})},"7efb":function(t,e,n){"use strict";n.r(e);var i=n("c977"),o=n.n(i);for(var a in i)"default"!==a&&function(t){n.d(e,t,(function(){return i[t]}))}(a);e["default"]=o.a},8093:function(t,e,n){"use strict";n.r(e);var i=n("ee0f"),o=n("f49d");for(var a in o)"default"!==a&&function(t){n.d(e,t,(function(){return o[t]}))}(a);n("fbf4"),n("c303");var s,c=n("f0c5"),r=Object(c["a"])(o["default"],i["b"],i["c"],!1,null,"e7dcc7f0",null,!1,i["a"],s);e["default"]=r.exports},"93f1":function(t,e,n){"use strict";n.r(e);var i=n("b263"),o=n("0a9a");for(var a in o)"default"!==a&&function(t){n.d(e,t,(function(){return o[t]}))}(a);n("4038");var s,c=n("f0c5"),r=Object(c["a"])(o["default"],i["b"],i["c"],!1,null,"fd839b84",null,!1,i["a"],s);e["default"]=r.exports},"95a0":function(t,e,n){"use strict";n("c975"),n("a9e3"),n("ac1f"),n("5319"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i={props:{message:{type:Object,default:function(){return{}}},cid:{type:[Number,String],default:""}},data:function(){return{reg:/\#[\S]{1,3}\;/gi}},methods:{emotion:function(t){var e=t.replace(/\#|\;/gi,""),n=["微笑","撇嘴","色","发呆","得意","流泪","害羞","闭嘴","睡","大哭","尴尬","发怒","调皮","呲牙","惊讶","难过","酷","冷汗","抓狂","吐","偷笑","可爱","白眼","傲慢","饥饿","困","惊恐","流汗","憨笑","大兵","奋斗","咒骂","疑问","嘘","晕","折磨","衰","骷髅","敲打","再见","擦汗","抠鼻","鼓掌","糗大了","坏笑","左哼哼","右哼哼","哈欠","鄙视","委屈","快哭了","阴险","亲亲","吓","可怜","菜刀","西瓜","啤酒","篮球","乒乓","咖啡","饭","猪头","玫瑰","凋谢","示爱","爱心","心碎","蛋糕","闪电","炸弹","刀","足球","瓢虫","便便","月亮","太阳","礼物","拥抱","强","弱","握手","胜利","抱拳","勾引","拳头","差劲","爱你","NO","OK","爱情","飞吻","跳跳","发抖","怄火","转圈","磕头","回头","跳绳","挥手","激动","街舞","献吻","左太极","右太极"],i=n.indexOf(e);return'<img src="https://res.wx.qq.com/mpres/htmledition/images/icon/emotion/'.concat(i,'.gif" align="middle">')}}};e.default=i},9653:function(t,e,n){var i=n("24fb");e=i(!1),e.push([t.i,'.m-item[data-v-fd839b84]{display:flex;flex-direction:row;padding-top:%?40?%}.m-left[data-v-fd839b84]{display:flex;width:%?120?%;justify-content:center;align-items:flex-start}.m-content[data-v-fd839b84]{display:flex;flex:1;flex-direction:column;justify-content:center;word-break:break-all}.m-right[data-v-fd839b84]{display:flex;width:%?120?%;justify-content:center;align-items:flex-start}.head_icon[data-v-fd839b84]{width:%?80?%;height:%?80?%;border-radius:100%}.m-content-head[data-v-fd839b84]{position:relative}.m-content-head-right[data-v-fd839b84]{display:flex;justify-content:flex-end}.m-content-head-home[data-v-fd839b84]{text-align:left;background:#1482d1;border:1px #1482d1 solid;border-radius:%?20?%;padding:%?20?% %?25?%;font-size:%?26?%!important;color:#fff;display:inline-block}.m-content-head-home[data-v-fd839b84]:before{border:%?15?% solid transparent;border-right:%?15?% solid #1482d1;left:%?-26?%;width:0;height:0;position:absolute;content:" "}.m-content-head-customer[data-v-fd839b84]{border:%?1?% #fff solid;font-size:%?26?%!important;background:#fff;border-radius:%?20?%;padding:%?20?%;background-color:#f7f7fb}.m-content-head-customer[data-v-fd839b84]:after{border:%?15?% solid transparent;border-left:%?15?% solid #f7f7fb;top:%?20?%;right:%?-26?%;width:0;height:0;position:absolute;content:" "}',""]),t.exports=e},"98c3":function(t,e,n){"use strict";var i=n("4ea4");n("99af"),n("c975"),n("d3b7"),n("ac1f"),n("5319"),n("498a"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=i(n("5530")),a=n("26cb"),s=i(n("93f1")),c=i(n("f3da")),r=n("f3a1e"),l=(n("0bc4"),{components:{messageShow:s.default,Emotion:c.default},data:function(){return{live_id:"",special_id:"",style:{pageHeight:0,contentViewHeight:0,footViewHeight:90,mitemHeight:0},scrollTop:0,messages:"",inputValue:"",showPannel:!1,focus:!1,socketOpen:!1,reg:/\#[\S]{1,3}\;/gi,PullUrl:"",socketTask:"",player:"",liveInfo:{is_play:!1},MsgList:[]}},computed:(0,o.default)({},(0,a.mapState)(["userInfo"])),onLoad:function(t){this.info(t)},methods:{info:function(t){var e=this;e.live_id=t.live_id,e.special_id=t.special_id;var n=uni.getSystemInfoSync();e.style.pageHeight=n.windowHeight,e.style.contentViewHeight=n.windowHeight-uni.getSystemInfoSync().screenWidth/750*620,e.connectSocketInit(),e.loadDate().then((function(t){e.$nextTick((function(){e.aliPlayShow()}))}))},aliPlayShow:function(){this.player=new Aliplayer({id:"aliplay",source:this.PullUrl,width:"100%",height:"56.25vw",autoplay:!0,isLive:!0,rePlay:!1,playsinline:!0,preload:!0,autoPlayDelay:"",controlBarVisibility:"hover",useH5Prism:!0,skinLayout:[{name:"errorDisplay",align:"tlabs",x:0,y:0},{name:"infoDisplay"},{name:"controlBar",align:"blabs",x:0,y:0,children:[{name:"liveDisplay",align:"tlabs",x:15,y:6},{name:"fullScreenButton",align:"tr",x:10,y:10},{name:"volume",align:"tr",x:5,y:10}]}]},(function(t){console.log("The player is created")})),this.bindEvevt()},bindEvevt:function(){var t=this;this.player.on("onM3u8Retry",(function(){t.player&&t.player.dispose(),t.live_error="主播暂时离开,请稍后.",t.live_status=-1,t.liveInfo.is_play=!1,console.log("主播暂时离开,请稍后......")})),this.player.on("liveStreamStop",(function(){console.log("直播失败或直播已结束"),t.live_error="直播失败或直播已结束",t.live_status=-1,t.liveInfo.is_play=!1,t.player&&t.player.dispose()})),this.player.on("error",(function(e){$(".prism-ErrorMessage").hide();e.paramData;t.live_error="直播失败或直播已结束",t.live_status=-1,t.liveInfo.is_play=!1,t.player&&t.player.dispose()}))},connectSocketInit:function(){var t=this,e=this;e.socketTask=uni.connectSocket({url:"ws://doctortest.igxys.com:20014",success:function(t){console.log("websocket连接成功")}}),e.socketTask.onOpen((function(n){console.log("WebSocket连接正常打开中...!"),e.socketOpen=!0,e.socketTask.onMessage((function(n){console.log("监听返回事件");var i=JSON.parse(n.data);if(e.messageType(i,"live_ing").then((function(){location.reload()})),"message"==i.type){console.log(i,"data");var o={avatar:i.userInfo.avatar,content:i.message,nickname:i.userInfo.nickname,type:i.m_type,uid:i.userInfo.uid};t.MsgList=t.MsgList.concat(o),console.log(t.MsgList)}e.$nextTick((function(){e.scrollToBottom()}))}));var i='{"type":"handshake","role":"user","uid": "'.concat(e.userInfo.uid,'","room":"').concat(e.live_id,'"}');e.socketTask.send({data:i,success:function(t){console.log("初始化消息发送成功")}})}))},messageType:function(t,e){return console.log(t),console.log(t.type,e),new Promise((function(n,i){t.type==e&&n(!0)}))},sendMessge:function(){var t=this;""==t.inputValue.trim()?t.inputValue="":(this.getInputMessage(t.inputValue),t.inputValue="",this.showPannel=!1)},getInputMessage:function(t){var e=this;if(e.socketOpen){var n='{"content":"'.concat(t,'","m_type":"1","type":"send","room":"').concat(this.live_id,'"}');console.log(n),e.socketTask.send({data:n,success:function(t){var i=JSON.parse(n);console.log("输入框消息发送成功"),console.log(i),e.$nextTick((function(){e.scrollToBottom()}))},fail:function(t){console.log(t)}})}else e.messages=t;e.setScrollH()},scrollToBottom:function(){var t=this,e=uni.createSelectorQuery().in(this);e.select("#listBox").fields({dataset:!0,size:!0,scrollOffset:!0,rect:!0},(function(e){t.scrollTop=e.height})).exec()},setScrollH:function(){uni.getSystemInfoSync().windowHeight;var t=uni.createSelectorQuery().in(this);t.select(".foot").boundingClientRect(),t.exec((function(t){var e=t[0].height;e}))},closeSocket:function(){this.socketTask.close({success:function(t){this.socketOpen=!1,console.log("关闭成功",t)},fail:function(t){console.log("关闭失败",t)}})},loadDate:function(){var t=this;return new Promise((function(e,n){(0,r.liveList)({special_id:t.special_id,live_id:t.live_id}).then((function(n){var i=n.data;t.liveInfo=i.liveInfo,t.liveInfo.is_play=1==t.liveInfo.is_play,t.PullUrl=i.PullUrl,t.liveInfo.live_status=i.live_status,e(i),t.$nextTick((function(){t.scrollToBottom()}))})).catch((function(e){n(e.message),"您还没有支付请支付后再进行观看"==e.message&&uni.navigateTo({url:"/pages/live/details?id="+t.special_id+"&type=free"})}))}))},show:function(){this.showPannel=!this.showPannel},foc:function(){this.showPannel=!1},handleEmotion:function(t){this.inputValue+=t},emotion:function(t){var e=t.replace(/\#|\;/gi,""),n=["微笑","撇嘴","色","发呆","得意","流泪","害羞","闭嘴","睡","大哭","尴尬","发怒","调皮","呲牙","惊讶","难过","酷","冷汗","抓狂","吐","偷笑","可爱","白眼","傲慢","饥饿","困","惊恐","流汗","憨笑","大兵","奋斗","咒骂","疑问","嘘","晕","折磨","衰","骷髅","敲打","再见","擦汗","抠鼻","鼓掌","糗大了","坏笑","左哼哼","右哼哼","哈欠","鄙视","委屈","快哭了","阴险","亲亲","吓","可怜","菜刀","西瓜","啤酒","篮球","乒乓","咖啡","饭","猪头","玫瑰","凋谢","示爱","爱心","心碎","蛋糕","闪电","炸弹","刀","足球","瓢虫","便便","月亮","太阳","礼物","拥抱","强","弱","握手","胜利","抱拳","勾引","拳头","差劲","爱你","NO","OK","爱情","飞吻","跳跳","发抖","怄火","转圈","磕头","回头","跳绳","挥手","激动","街舞","献吻","左太极","右太极"],i=n.indexOf(e);return'<img src="https://res.wx.qq.com/mpres/htmledition/images/icon/emotion/'.concat(i,'.gif" align="middle">')}}});e.default=l},"9b24":function(t,e,n){"use strict";var i;n.d(e,"b",(function(){return o})),n.d(e,"c",(function(){return a})),n.d(e,"a",(function(){return i}));var o=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("v-uni-view",{staticClass:"emotion-box",style:{height:t.height+"px"}},t._l(t.list,(function(e,i){return n("v-uni-view",{key:i,staticClass:"emotion-box-line"},t._l(e,(function(e,i){return n("v-uni-view",{key:i,staticClass:"emotion-item",on:{click:function(n){arguments[0]=n=t.$handleEvent(n),t.clickHandler(e)}}},[n("v-uni-rich-text",{attrs:{nodes:e.replace(/\S{1,3}/gi,t.emotion(e))}})],1)})),1)})),1)},a=[]},a061:function(t,e,n){"use strict";var i=n("f26d"),o=n.n(i);o.a},b263:function(t,e,n){"use strict";var i;n.d(e,"b",(function(){return o})),n.d(e,"c",(function(){return a})),n.d(e,"a",(function(){return i}));var o=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("v-uni-view",{staticClass:"m-item",attrs:{id:"message"+t.cid}},[n("v-uni-view",{staticClass:"m-left"},["home"==t.message.user?n("v-uni-image",{staticClass:"head_icon",attrs:{src:"/static/img/img004.png"}}):t._e()],1),n("v-uni-view",{staticClass:"m-content"},[n("v-uni-view",{staticClass:"m-content-head",class:{"m-content-head-right":"customer"==t.message.user}},[n("v-uni-view",{class:"m-content-head-"+t.message.user},[n("v-uni-rich-text",{attrs:{nodes:t.message.content.replace(this.reg,t.emotion)}})],1)],1)],1),n("v-uni-view",{staticClass:"m-right"},["customer"==t.message.user?n("v-uni-image",{staticClass:"head_icon",attrs:{src:"/static/img/img004.png"}}):t._e()],1)],1)},a=[]},c137:function(t,e,n){var i=n("24fb");e=i(!1),e.push([t.i,"@import url(https://g.alicdn.com/de/prismplayer/2.7.2/skins/default/aliplayer-min.css);"]),e.push([t.i,"",""]),t.exports=e},c303:function(t,e,n){"use strict";var i=n("7ed6"),o=n.n(i);o.a},c977:function(t,e,n){"use strict";n("c975"),n("a9e3"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i={props:{height:{type:Number,default:200}},data:function(){return{list:[["微笑","撇嘴","色","发呆","得意","流泪","害羞","闭嘴"],["睡","大哭","尴尬","发怒","调皮","呲牙","惊讶","难过"],["酷","冷汗","抓狂","吐","偷笑","可爱","白眼","傲慢"],["饥饿","困","惊恐","流汗","憨笑","大兵","奋斗","咒骂"],["疑问","嘘","晕","折磨","衰","骷髅","敲打","再见"],["擦汗","抠鼻","鼓掌","糗大了","坏笑","左哼哼","右哼哼","哈欠"],["鄙视","委屈","快哭了","阴险","亲亲","吓","可怜","菜刀"],["西瓜","啤酒","篮球","乒乓","咖啡","饭","猪头","玫瑰"],["凋谢","示爱","爱心","心碎","蛋糕","闪电","炸弹","刀"],["足球","瓢虫","便便","月亮","太阳","礼物","拥抱","强"],["弱","握手","胜利","抱拳","勾引","拳头","差劲","爱你"],["NO","OK","爱情","飞吻","跳跳","发抖","怄火","转圈"],["磕头","回头","跳绳","挥手","激动","街舞","左太极","右太极"]],reg:/\S{1,3}/gi,item:[]}},methods:{clickHandler:function(t){var e="#".concat(t,";");this.$emit("emotion",e)},emotion:function(t){var e=["微笑","撇嘴","色","发呆","得意","流泪","害羞","闭嘴","睡","大哭","尴尬","发怒","调皮","呲牙","惊讶","难过","酷","冷汗","抓狂","吐","偷笑","可爱","白眼","傲慢","饥饿","困","惊恐","流汗","憨笑","大兵","奋斗","咒骂","疑问","嘘","晕","折磨","衰","骷髅","敲打","再见","擦汗","抠鼻","鼓掌","糗大了","坏笑","左哼哼","右哼哼","哈欠","鄙视","委屈","快哭了","阴险","亲亲","吓","可怜","菜刀","西瓜","啤酒","篮球","乒乓","咖啡","饭","猪头","玫瑰","凋谢","示爱","爱心","心碎","蛋糕","闪电","炸弹","刀","足球","瓢虫","便便","月亮","太阳","礼物","拥抱","强","弱","握手","胜利","抱拳","勾引","拳头","差劲","爱你","NO","OK","爱情","飞吻","跳跳","发抖","怄火","转圈","磕头","回头","跳绳","挥手","激动","街舞","献吻","左太极","右太极"],n=e.indexOf(t);return'<img src="https://res.wx.qq.com/mpres/htmledition/images/icon/emotion/'.concat(n,'.gif" align="middle">')}}};e.default=i},ee0f:function(t,e,n){"use strict";var i;n.d(e,"b",(function(){return o})),n.d(e,"c",(function(){return a})),n.d(e,"a",(function(){return i}));var o=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("v-uni-view",{staticClass:"container"},[i("v-uni-view",{staticClass:"top"},[t.liveInfo.is_play?i("v-uni-view",{staticClass:"course-video",attrs:{id:"aliplay"}}):i("v-uni-view",{ref:"column",staticClass:"course-video errorContent",on:{touchmove:function(e){e.preventDefault(),arguments[0]=e=t.$handleEvent(e)}}},[i("v-uni-view",{staticClass:"contentText"},[i("v-uni-image",{staticClass:"tvImg",attrs:{src:n("5df4"),mode:"widthFix"}}),0==t.liveInfo.live_status?i("v-uni-view",[t._v("直播即将开始")]):2==t.liveInfo.live_status?i("v-uni-view",[t._v("直播已结束")]):1==t.liveInfo.live_status?i("v-uni-view",[t._v("讲师离开一会~马上回来")]):-1==t.liveInfo.live_status?i("v-uni-view",{domProps:{textContent:t._s(t.live_error)}},[t._v("讲师离开一会~马上回来")]):t._e()],1)],1)],1),i("v-uni-view",{staticClass:"uni-column"},[i("v-uni-view",{staticClass:"content",style:{height:t.style.contentViewHeight+"px"},attrs:{id:"content"}},[i("v-uni-scroll-view",{staticClass:"Meslist",style:{height:t.style.contentViewHeight+"px"},attrs:{id:"scrollview","scroll-y":!0,"scroll-with-animation":!0,"scroll-top":t.scrollTop}},[i("v-uni-view",{attrs:{id:"listBox"}},t._l(t.MsgList,(function(e,n){return i("v-uni-view",{key:n},[i("v-uni-view",{staticClass:"m-item",attrs:{id:"message"+n}},[i("v-uni-view",{staticClass:"m-left"},[e.uid!=t.userInfo.uid?i("v-uni-image",{staticClass:"head_icon",attrs:{src:e.avatar}}):t._e()],1),i("v-uni-view",{staticClass:"m-content"},[i("v-uni-view",{staticClass:"m-content-head",class:{"m-content-head-right":e.uid==t.userInfo.uid}},[e.uid==t.userInfo.uid?i("v-uni-view",{class:"m-content-head-home"},[i("v-uni-rich-text",{attrs:{nodes:e.content.replace(t.reg,t.emotion)}})],1):t._e(),e.uid!=t.userInfo.uid?i("v-uni-view",{class:"m-content-head-customer"},[i("v-uni-rich-text",{attrs:{nodes:e.content.replace(t.reg,t.emotion)}})],1):t._e()],1)],1),i("v-uni-view",{staticClass:"m-right"},[e.uid==t.userInfo.uid?i("v-uni-image",{staticClass:"head_icon",attrs:{src:t.userInfo.avatar}}):t._e()],1)],1)],1)})),1)],1)],1),i("v-uni-view",{staticClass:"foot"},[i("v-uni-view",{staticClass:"footheight"},[i("v-uni-view",{staticClass:"footer"},[i("v-uni-view",{staticClass:"footer-emotion",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.show.apply(void 0,arguments)}}},[i("v-uni-text",{staticClass:"icon iconfont icon-face"})],1),i("v-uni-view",{staticClass:"footer-center"},[i("v-uni-input",{staticClass:"input-text",attrs:{placeholder:"清输入您的信息",type:"text",focus:t.focus},on:{focus:function(e){arguments[0]=e=t.$handleEvent(e),t.foc.apply(void 0,arguments)}},model:{value:t.inputValue,callback:function(e){t.inputValue=e},expression:"inputValue"}})],1),i("v-uni-view",{staticClass:"footer-right",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.sendMessge.apply(void 0,arguments)}}},[i("v-uni-view",{attrs:{id:"msg-type"}},[i("v-uni-image",{attrs:{src:"/static/img/img024.png"}})],1)],1)],1),t.showPannel?i("emotion",{attrs:{height:200},on:{emotion:function(e){arguments[0]=e=t.$handleEvent(e),t.handleEmotion.apply(void 0,arguments)}}}):t._e()],1)],1)],1)],1)},a=[]},f26d:function(t,e,n){var i=n("52d9");"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var o=n("4f06").default;o("7f502338",i,!0,{sourceMap:!1,shadowMode:!1})},f3a1e:function(t,e,n){"use strict";var i=n("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.liveList=a;var o=i(n("0966"));function a(t){return(0,o.default)({url:"/api/special.live/index",method:"get",data:t})}},f3da:function(t,e,n){"use strict";n.r(e);var i=n("9b24"),o=n("7efb");for(var a in o)"default"!==a&&function(t){n.d(e,t,(function(){return o[t]}))}(a);n("a061");var s,c=n("f0c5"),r=Object(c["a"])(o["default"],i["b"],i["c"],!1,null,"71e876a9",null,!1,i["a"],s);e["default"]=r.exports},f49d:function(t,e,n){"use strict";n.r(e);var i=n("98c3"),o=n.n(i);for(var a in i)"default"!==a&&function(t){n.d(e,t,(function(){return i[t]}))}(a);e["default"]=o.a},fbf4:function(t,e,n){"use strict";var i=n("0ce0"),o=n.n(i);o.a}}]);
|