1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-27827e9c"],{"16a2":function(t,e,i){"use strict";var s=i("be7f"),a=i.n(s);a.a},1848:function(t,e,i){"use strict";var s=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"back-bar border-bottom"},[i("div",{staticClass:"arrow-icon"},[i("i",{staticClass:"el-icon-arrow-left",on:{click:function(e){t.$router.go(-1)}}})]),t._v("\n "+t._s(t.title)+"\n "),t._t("default")],2)},a=[],o=(i("cadf"),i("551c"),i("097d"),{name:"backBar",props:["title"]}),n=o,l=(i("1ef0"),i("2877")),c=Object(l["a"])(n,s,a,!1,null,"43578a1d",null);c.options.__file="index.vue";e["a"]=c.exports},"1ef0":function(t,e,i){"use strict";var s=i("a8b4"),a=i.n(s);a.a},a8b4:function(t,e,i){},be7f:function(t,e,i){},d5e1:function(t,e,i){"use strict";i.r(e);var s=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"chat-room"},[i("div",{staticClass:"mini-wrap moblie-wrap"},[i("div",{staticClass:"mini-body"},[i("div",{staticClass:"box"},[i("back-bar",{attrs:{title:t.isPrivate?t.group.privateName:t.group.groupName}},[t.isPrivate?t._e():i("span",{staticClass:"group-set-icon el-icon-more"})]),i("chat-pin",t._b({on:{pinMsgClose:t.pinMsgClose,scrollToView:t.scrollToView}},"chat-pin",t.pinMsg,!1)),i("div",{ref:"msgBox",staticClass:"box-bd"},[i("div",{ref:"scrollWrap",staticClass:"scroller",on:{scroll:function(e){return e.preventDefault(),t.handleScroll(e)}}},[i("div",{ref:"msgWrap",staticClass:"msg-wrap"},[t.lockEnd?i("div",{staticClass:"msg-top-more"},[i("em",[t._v("没有更多了")])]):t._e(),t.lockMore&&!t.lockEnd?i("div",{staticClass:"msg-top-load"},[i("i",{staticClass:"msg-loading-icon"})]):t._e(),t.group.chatList.length?t._l(t.group.pinList,function(e,s){return i("msg-item",t._b({key:"pin"+s,on:{quoteMsg:t.quoteMsg,deleteMsg:t.deleteMsg}},"msg-item",e,!1))}):t._e(),t._l(t.group.chatList,function(e){return i("msg-item",t._b({key:e.hash,attrs:{msgItem:e},on:{quoteMsg:t.quoteMsg,deleteMsg:t.deleteMsg}},"msg-item",e,!1))})],2)]),i("at-me",{staticClass:"mini",attrs:{atList:t.atList},on:{scrollToMsg:t.scrollToMsg}}),t.unreadNums>0&&t.enableScroll&&!t.isBottom?i("div",{staticClass:"msg-unread",on:{click:t.doSetRead}},[i("em",[i("i",{staticClass:"el-icon-d-arrow-right"}),t._v(t._s(t.unreadNums)+"条未读消息")])]):t._e()],1),i("div",{staticClass:"box-ft"},[t.atShow?i("chat-at",{ref:"chatAt",attrs:{curInd:t.atInd,filterList:t.filterMembers},on:{atperson:t.atPerson}}):t._e(),i("div",{staticClass:"input-con"},[i("div",{staticClass:"more-icon",on:{click:function(e){return e.stopPropagation(),t.handleMoreClick(e)}}}),i("form",{staticClass:"input-wrap",on:{submit:t.handleSend}},[i("textarea",{directives:[{name:"model",rawName:"v-model",value:t.inputMsg,expression:"inputMsg"}],ref:"chatInput",attrs:{cols:"1",rows:"1",placeholder:"Write a message"},domProps:{value:t.inputMsg},on:{keydown:[function(e){return"button"in e||!t._k(e.keyCode,"up",38,e.key,["Up","ArrowUp"])?(e.preventDefault(),t.handleUp(e)):null},function(e){return"button"in e||!t._k(e.keyCode,"down",40,e.key,["Down","ArrowDown"])?(e.preventDefault(),t.handleDown(e)):null},function(e){return"button"in e||!t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])?"button"in e&&0!==e.button?null:t.handleLeft(e):null},function(e){return"button"in e||!t._k(e.keyCode,"right",39,e.key,["Right","ArrowRight"])?"button"in e&&2!==e.button?null:t.handleRight(e):null},function(e){return"button"in e||!t._k(e.keyCode,"delete",[8,46],e.key,["Backspace","Delete"])?t.handleDel(e):null},function(e){return"button"in e||!t._k(e.keyCode,"esc",27,e.key,"Escape")?t.handleEsc(e):null},function(e){return"button"in e||!t._k(e.keyCode,"enter",13,e.key,"Enter")?t.handleKeyDown(e):null}],focus:t.handleFocus,blur:t.handleBlur,input:function(e){e.target.composing||(t.inputMsg=e.target.value)}}})]),i("div",{staticClass:"emoji-icon",on:{click:function(e){return e.stopPropagation(),t.handleEmojiClick(e)}}}),i("div",{staticClass:"btn-send",on:{click:t.handleSend}},[t._v("发送")])]),i("div",{directives:[{name:"show",rawName:"v-show",value:t.toolShow,expression:"toolShow"}],staticClass:"tool-wrap",on:{click:function(t){t.stopPropagation()}}},[i("div",{staticClass:"tool-item"},[i("div",{staticClass:"icon-box",on:{click:t.$packetSend}},[i("i",{staticClass:"packet-icon"})]),i("span",{staticClass:"type"},[t._v("红包")])]),i("div",{staticClass:"tool-item"},[i("div",{staticClass:"icon-box"},[i("i",{staticClass:"picture-icon"}),i("input",{ref:"inputFile1",attrs:{type:"file",name:"res",accept:"image/*"},on:{change:t.handleFile}})]),i("span",{staticClass:"type"},[t._v("图片")])]),i("div",{staticClass:"tool-item"},[i("div",{staticClass:"icon-box"},[i("i",{staticClass:"audio-icon"}),i("input",{ref:"inputFile2",attrs:{type:"file",name:"res",accept:"audio/*"},on:{change:t.handleFile}})]),i("span",{staticClass:"type"},[t._v("音频")])]),i("div",{staticClass:"tool-item"},[i("div",{staticClass:"icon-box"},[i("i",{staticClass:"video-icon"}),i("input",{ref:"inputFile3",attrs:{type:"file",name:"res",accept:"video/*"},on:{change:t.handleFile}})]),i("span",{staticClass:"type"},[t._v("视频")])])]),t.emojiShow?i("div",{staticClass:"emoji-wrap"},[i("emoji-list",{on:{addEmoji:t.addEmoji}})],1):t._e()],1)],1)])])])},a=[],o=i("1848"),n=i("2f35"),l=i("4e81"),c=i("a1aa"),r=i("9360"),u=i("34d0"),d=i("8869"),p=i("3868"),m={name:"h5ChatRoom",mixins:[d["a"],d["b"],p["a"],p["b"]],components:{msgItem:n["a"],emojiList:l["a"],chatAt:c["a"],chatPin:u["a"],atMe:r["a"],backBar:o["a"]},data:function(){return{emojiShow:!1,toolShow:!1}},methods:{handleEmojiClick:function(){this.toolShow=!1,this.emojiShow=!this.emojiShow},handleMoreClick:function(){this.emojiShow=!1,this.toolShow=!this.toolShow}}},h=m,f=(i("16a2"),i("2877")),v=Object(f["a"])(h,s,a,!1,null,"cc6a9504",null);v.options.__file="chatRoom.vue";e["default"]=v.exports}}]);
|