chunk-7bbde94a.a7935ea8.js 6.9 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-7bbde94a"],{"17f6":function(t,e,i){"use strict";var o=i("cecb"),s=i.n(o);s.a},"1eac":function(t,e,i){},5119:function(t,e,i){"use strict";var o=function(){var t=this,e=t.$createElement,i=t._self._c||e;return 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(t._s(t.$t("chat.redpack")))])]),i("div",{staticClass:"tool-item"},[i("div",{staticClass:"icon-box"},[i("i",{staticClass:"picture-icon"}),i("input",{ref:"inputFile1",attrs:{type:"file",accept:"image/*"},on:{change:t.handleFile}})]),i("span",{staticClass:"type"},[t._v(t._s(t.$t("chat.image")))])]),i("div",{staticClass:"tool-item"},[i("div",{staticClass:"icon-box"},[i("i",{staticClass:"audio-icon"}),i("input",{ref:"inputFile2",attrs:{type:"file",accept:"audio/*"},on:{change:t.handleFile}})]),i("span",{staticClass:"type"},[t._v(t._s(t.$t("chat.audio")))])]),i("div",{staticClass:"tool-item"},[i("div",{staticClass:"icon-box"},[i("i",{staticClass:"video-icon"}),i("input",{ref:"inputFile3",attrs:{type:"file",accept:"video/*"},on:{change:t.handleFile}})]),i("span",{staticClass:"type"},[t._v(t._s(t.$t("chat.video")))])])])},s=[],n=i("33f8"),a={name:"toolbar",props:{toolShow:Boolean,meechatType:Object(n["o"])()},methods:{handleFile:function(t){this.$emit("handleFile",t)},resetInput:function(){this.$refs.inputFile1&&(this.$refs.inputFile1.value=null),this.$refs.inputFile2&&(this.$refs.inputFile2.value=null),this.$refs.inputFile3&&(this.$refs.inputFile3.value=null)}}},l=a,c=(i("838e"),i("fc05")),r=Object(c["a"])(l,o,s,!1,null,"5557f4dc",null);e["a"]=r.exports},"838e":function(t,e,i){"use strict";var o=i("1eac"),s=i.n(o);s.a},cecb:function(t,e,i){},d5e1:function(t,e,i){"use strict";i.r(e);var o=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.group.membersNum+")",url:!t.isPrivate&&t.group.url?t.group.url:""}},[t.isPrivate||0==t.isJoinGroup?t._e():i("span",{staticClass:"group-set-icon el-icon-more",on:{click:function(e){return t.$router.push("/groupSet/"+t.group.groupId)}}})]),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._s(t.$t("chat.noMore")))])]):t._e(),t.lockMore&&!t.lockEnd?i("div",{staticClass:"msg-top-load"},[i("i",{staticClass:"msg-loading-icon"})]):t._e(),t._l(t.group.chatList,function(e){return i("msg-item",t._b({key:e.hash,attrs:{isMobile:!0,isAdmin:t.isAdmin,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}}),i("div",{directives:[{name:"show",rawName:"v-show",value:t.unreadNums>0&&t.enableScroll&&!t.isBottom,expression:"unreadNums > 0 && enableScroll && !isBottom"}],staticClass:"msg-unread",on:{click:t.doSetRead}},[i("em",[i("i",{staticClass:"el-icon-d-arrow-right"}),t._v(t._s(t.unreadNums)+t._s(t.$t("chat.unreadMsg")))])])],1),0==t.isJoinGroup?i("div",{staticClass:"box-ft"},[i("div",{staticClass:"btn-join",on:{click:function(e){return t.joinGroup()}}},[t._v(t._s(t.$t("chat.joinGroup")))])]):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",style:{height:t.inputHeight},attrs:{cols:"1",rows:"1",placeholder:"Write a message"},domProps:{value:t.inputMsg},on:{input:[function(e){e.target.composing||(t.inputMsg=e.target.value)},t.handleInput],keydown:[function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"up",38,e.key,["Up","ArrowUp"])?null:(e.preventDefault(),t.handleUp(e))},function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"down",40,e.key,["Down","ArrowDown"])?null:(e.preventDefault(),t.handleDown(e))},function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])?null:"button"in e&&0!==e.button?null:t.handleLeft(e)},function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"right",39,e.key,["Right","ArrowRight"])?null:"button"in e&&2!==e.button?null:t.handleRight(e)},function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"delete",[8,46],e.key,["Backspace","Delete","Del"])?null:t.handleDel(e)},function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"esc",27,e.key,["Esc","Escape"])?null:t.handleEsc(e)},function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.handleKeyDown(e)}],focus:t.handleFocus,blur:t.handleBlur}})]),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(t._s(t.$t("chat.send")))])]),i("toolbar",{ref:"toolbar",attrs:{toolShow:t.toolShow},on:{handleFile:t.handleFile}}),i("emoji",{directives:[{name:"show",rawName:"v-show",value:t.emojiShow,expression:"emojiShow"}],attrs:{emojiShow:t.emojiShow},on:{addEmoji:t.addEmoji,closeEmojiList:t.closeEmojiList}})],1)],1),i("div",{directives:[{name:"show",rawName:"v-show",value:t.isLoadingRoom,expression:"isLoadingRoom"}],staticClass:"pub-loading"})])])])},s=[],n=i("1848"),a=i("2f35"),l=i("4e81"),c=i("a1aa"),r=i("9360"),u=i("34d0"),d=i("5119"),h=i("8869"),p=i("3868"),m={name:"h5ChatRoom",mixins:[h["c"],p["a"],h["d"],p["b"],p["c"]],components:{msgItem:a["a"],emoji:l["a"],chatAt:c["a"],chatPin:u["a"],atMe:r["a"],backBar:n["a"],toolbar:d["a"]},data:function(){return{emojiShow:!1,toolShow:!1,inputHeight:18}},watch:{inputMsg:function(t,e){var i=this,o=this.$refs.chatInput;this.inputHeight="auto",this.$nextTick(function(){i.inputHeight=Math.max(18,Math.min(o.scrollHeight,75))+"px"})}},methods:{handleEmojiClick:function(){this.toolShow=!1,this.emojiShow=!this.emojiShow,this.checkNeedToBottom()},handleMoreClick:function(){this.emojiShow=!1,this.toolShow=!this.toolShow,this.checkNeedToBottom()},checkNeedToBottom:function(){var t=this;this.isBottom&&this.$nextTick(function(){t.resizeToBottom()})},quoteMsg:function(t){this.inputMsg=t}}},f=m,v=(i("17f6"),i("fc05")),g=Object(v["a"])(f,o,s,!1,null,"126bd8fe",null);e["default"]=g.exports}}]);