(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-6508ceea"],{"011a":function(t,e,i){t.exports=i.p+"view_admin/img/no_chat.b9c3e583.png"},"060a":function(t,e,i){t.exports=i.p+"view_admin/img/no_tk.401d40f4.png"},"16b0":function(t,e,i){t.exports=i.p+"view_admin/media/notice.51a07ae7.wav"},3537:function(t,e,i){},4112:function(t,e,i){t.exports=i.p+"view_admin/img/no_user.a09b282b.png"},"468b":function(t,e,i){t.exports=i.p+"view_admin/img/no_all.174e30c0.png"},"5f70":function(t,e,i){t.exports=i.p+"view_admin/img/no_fh.977a0fb8.png"},"6db4":function(t,e,i){!function(t,e){"use strict";function i(t,e,i){document.addEventListener?t.addEventListener(e,i):t.attachEvent("on"+e,i)}function n(t,e,i){document.addEventListener?t.removeEventListener(e,i):t.detachEvent("on"+e,i)}function o(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}function s(t,e){return t(e={exports:{}},e.exports),e.exports}function r(){var t={},e=0,i=0,n=0;return{add:function(o,s){s||(s=o,o=0),o>i?i=o:o(t||14))return e=i,!0}},f={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{ref:"stripContainer",staticClass:"happy-scroll-strip",class:[t.horizontal?"happy-scroll-strip--horizontal":"happy-scroll-strip--vertical"],style:[t.initLocation],on:{"!wheel":function(e){return e.stopPropagation(),t.handlerWheel(e)}}},[i("div",{ref:"strip",staticClass:"happy-scroll-bar",style:[t.translate,o({},t.config.sizeAttr,t.length+"px"),t.initSize,{background:t.color},{opacity:t.isOpacity}],on:{mousedown:function(e){return e.stopPropagation(),t.handlerMouseDown(e)}}})])},staticRenderFns:[],name:"happy-scroll-strip",props:{horizontal:Boolean,left:Boolean,top:Boolean,move:{type:Number,default:0},size:{type:[Number,String],default:4},minLengthV:{type:Number,default:40},minLengthH:{type:Number,default:40},color:{type:String,default:"rgba(51,51,51,0.2)"},throttle:{type:Number,default:14}},data:function(){return{config:{},startMove:!1,binded:!1,length:0,percentage:0,maxOffset:0,currentOffset:0,moveThrottle:h(this.throttle)}},watch:{currentOffset:function(t){0===t?this.emitLocationEvent("start",0):t===this.maxOffset&&this.emitLocationEvent("end",t/this.percentage)}},computed:{initSize:function(){return o({},this.horizontal?"height":"width",this.size+"px")},isOpacity:function(){return this.percentage<1?1:0},translate:function(){var t=this.move*this.percentage;if(this.$refs.stripContainer)return t<0&&(t=0),t>this.maxOffset&&(t=this.maxOffset),this.currentOffset=t,{transform:this.config.translate+"("+t+"px)"}},initLocation:function(){return this.horizontal?this.top?{top:0,bottom:"auto"}:"":this.left?{left:0,right:"auto"}:""}},methods:{emitLocationEvent:function(t,e){var i=this.horizontal?"horizontal":"vertical";this.$emit(i+"-"+t,e)},computeStrip:function(t,e){var i=this.$refs.stripContainer[this.config.client];this.length=i*(e/t);var n=this.horizontal?this.minLengthH:this.minLengthV;n<1&&(n*=i),this.length=this.lengththis.maxOffset&&(t=this.maxOffset),e&&t>0&&t4?t:void 0}())},e.isLegacyOpera=function(){return!!window.opera}})),v=s((function(t){(t.exports={}).getOption=function(t,e,i){var n=t[e];return void 0!==n&&null!==n||void 0===i?n:i}})),m=function(t){function e(){for(c=!0;l.size();){var t=l;l=r(),t.process()}c=!1}function i(){a=function(t){return setTimeout(t,0)}(e)}var n=(t=t||{}).reporter,o=v.getOption(t,"async",!0),s=v.getOption(t,"auto",!0);s&&!o&&(n&&n.warn("Invalid options combination. auto=true and async=false is invalid. Setting async=true."),o=!0);var a,l=r(),c=!1;return{add:function(t,e){!c&&s&&o&&0===l.size()&&i(),l.add(t,e)},force:function(t){c||(void 0===t&&(t=o),a&&(function(t){clearTimeout(t)}(a),a=null),t?i():e())}}},b="_erd",y={initState:function(t){return t[b]={},a(t)},getState:a,cleanState:function(t){delete t[b]}},w=p.forEach,S=function(t){function e(t,e,i){if(t.addEventListener)t.addEventListener(e,i);else{if(!t.attachEvent)return s.error("[scroll] Don't know how to add event listeners.");t.attachEvent("on"+e,i)}}function i(t,e,i){if(t.removeEventListener)t.removeEventListener(e,i);else{if(!t.detachEvent)return s.error("[scroll] Don't know how to remove event listeners.");t.detachEvent("on"+e,i)}}function n(t){return a(t).container.childNodes[0].childNodes[0].childNodes[0]}function o(t){return a(t).container.childNodes[0].childNodes[0].childNodes[1]}var s=(t=t||{}).reporter,r=t.batchProcessor,a=t.stateHandler.getState,l=t.idHandler;if(!r)throw new Error("Missing required dependency: batchProcessor");if(!s)throw new Error("Missing required dependency: reporter.");var c=function(){var t=document.createElement("div");t.style.cssText="position: absolute; width: 1000px; height: 1000px; visibility: hidden; margin: 0; padding: 0;";var e=document.createElement("div");e.style.cssText="position: absolute; width: 500px; height: 500px; overflow: scroll; visibility: none; top: -1500px; left: -1500px; visibility: hidden; margin: 0; padding: 0;",e.appendChild(t),document.body.insertBefore(e,document.body.firstChild);var i=500-e.clientWidth,n=500-e.clientHeight;return document.body.removeChild(e),{width:i,height:n}}(),u="erd_scroll_detection_container";return function(t,e){if(!document.getElementById(t)){var i=e+"_animation",n="/* Created by the element-resize-detector library. */\n";n+="."+e+" > div::-webkit-scrollbar { display: none; }\n\n",n+="."+e+"_animation_active { -webkit-animation-duration: 0.1s; animation-duration: 0.1s; -webkit-animation-name: "+i+"; animation-name: "+i+"; }\n",n+="@-webkit-keyframes "+i+" { 0% { opacity: 1; } 50% { opacity: 0; } 100% { opacity: 1; } }\n",function(e,i){i=i||function(t){document.head.appendChild(t)};var n=document.createElement("style");n.innerHTML=e,n.id=t,i(n)}(n+="@keyframes "+i+" { 0% { opacity: 1; } 50% { opacity: 0; } 100% { opacity: 1; } }")}}("erd_scroll_detection_scrollbar_style",u),{makeDetectable:function(t,i,d){function h(){if(t.debug){var e=Array.prototype.slice.call(arguments);if(e.unshift(l.get(i),"Scroll: "),s.log.apply)s.log.apply(null,e);else for(var n=0;nn&&(i=t.biggerMoveH.toLocaleLowerCase()),"start"===i&&(t.moveY=0,t.slideYChange(t.moveY)),"end"===i&&(t.moveY=e.clientHeight,t.slideYChange(t.moveY)),n=e.clientHeight,i="",e.clientWidtho&&(i=t.biggerMoveV.toLocaleLowerCase()),"start"===i&&(t.moveX=0,t.slideXChange(t.moveX)),"end"===i&&(t.moveX=e.clientWidth,t.slideXChange(t.moveX)),o=e.clientWidth}))}},setContainerSize:function(){this.initSize={width:this.$refs["happy-scroll"].clientWidth+20+"px",height:this.$refs["happy-scroll"].clientHeight+20+"px"}},checkScrollMode:function(){if(void 0===x._happyJS._isScrollNotUseSpace){var t=this.$slots.default[0].elm,e=this.$refs.container;(t.offsetHeight>e.clientHeight||t.offsetWidth>e.clientWidth)&&(e.offsetWidth>e.clientWidth||e.offsetHeight>e.clientHeight?x._happyJS._isScrollNotUseSpace=!1:x._happyJS._isScrollNotUseSpace=!0,this.isScrollNotUseSpace=x._happyJS._isScrollNotUseSpace)}}},beforeCreate:function(){var t=x._happyJS=x._happyJS||{};this.isScrollNotUseSpace=t._isScrollNotUseSpace},created:function(){var t,e,i,n,o,s,r,a,l;this.updateSyncScroll=(t=function(){this.$emit("update:scrollTop",this.moveY),this.$emit("update:scrollLeft",this.moveX)},e=this.throttle,l=function l(){var c=(new Date).getTime()-r;c=0?n=setTimeout(l,e-c):(n=null,i||(a=t.apply(s,o),n||(s=o=null)))},function(){s=this,o=arguments,r=(new Date).getTime();var c=i&&!n;return n||(n=setTimeout(l,e)),c&&(a=t.apply(s,o),s=o=null),a})},mounted:function(){var t=this;this.setContainerSize(),this.$nextTick((function(){t.computeStripX(),t.computeStripY(),t.checkScrollMode(),t.initBrowserSize(),t.$nextTick((function(){t.scrollTop&&(t.$refs.container.scrollTop=+t.scrollTop),t.scrollLeft&&(t.$refs.container.scrollLeft=+t.scrollLeft)}))})),this.resizeListener(),this.$watch("browserHSize",this.setContainerSize),this.$watch("browserVSize",this.setContainerSize)}};"undefined"!=typeof window&&window.Vue&&Vue.component("happy-scroll",L);var z={install:function(t){t.component("happy-scroll",L)},version:"2.1.1"};t.default=z,t.HappyScroll=L,t.version="2.1.1",Object.defineProperty(t,"__esModule",{value:!0})}(e,i("a026"))},"7a1a":function(t,e,i){"use strict";i.d(e,"a",(function(){return o}));var n=i("b6bd");function o(){return Object(n.a)({url:"service/info",method:"get",kefu:!0})}},"88fd":function(t,e,i){},"8b1f":function(t,e,i){"use strict";var n={name:"empty",props:{status:{type:String|Number,default:1},msg:{type:String,default:""}}},o=(i("e2fd"),i("2877")),s=Object(o.a)(n,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"empty-wrapper"},[1==t.status?[n("img",{attrs:{src:i("011a"),alt:""}})]:t._e(),2==t.status?[n("img",{attrs:{src:i("4112"),alt:""}})]:t._e(),3==t.status?[n("img",{attrs:{src:i("468b"),alt:""}})]:t._e(),4==t.status?[n("img",{attrs:{src:i("ea87"),alt:""}})]:t._e(),5==t.status?[n("img",{attrs:{src:i("5f70"),alt:""}})]:t._e(),6==t.status?[n("img",{attrs:{src:i("060a"),alt:""}})]:t._e(),n("p",[t._v(t._s(t.msg))])],2)}),[],!1,null,"345b1430",null);e.a=s.exports},"8d75":function(t,e,i){"use strict";var n=i("3537");i.n(n).a},a9d3:function(t,e,i){"use strict";i.r(e);var n=i("c276"),o=i("49ea"),s=i("42e3"),r=i("7a1a"),a=i("6db4"),l=i("2f62"),c=i("8b1f"),u=(i("2d959"),i("d708"));function d(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,n)}return i}function h(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}var f=i("16b0"),p=(f=new Audio(f),{name:"chat_list.vue",components:{HappyScroll:a.HappyScroll,empty:c.a},data:function(){return{roterPre:u.a.roterPre,ops:{vuescroll:{mode:"native",enable:!1,tips:{deactive:"Push to Load",active:"Release to Load",start:"Loading...",beforeDeactive:"Load Successfully!"},auto:!1,autoLoadDistance:0,pullRefresh:{enable:!1},pushLoad:{enable:!0,auto:!0,autoLoadDistance:10}},bar:{background:"#393232",opacity:".5",size:"5px"}},list:[],page:1,limit:10,isScroll:!0,searchTxt:"",isOpen:!0,kefuInfo:{},isOnLine:!1,tabCur:0,tabList:[{key:0,title:"用户列表"},{key:1,title:"游客列表"}],wsLogin:JSON.parse(sessionStorage.getItem("wsLogin")),pageWs:""}},filters:{toDay:function(t){if(!t)return"";var e=new Date,i=(e.getFullYear(),(e.getMonth()+1<10?"0"+(e.getMonth()+1):e.getMonth()+1)+"-"),n=(e.getDate()<10?"0"+e.getDate():e.getDate())+" ",o=(e.getHours()<10?"0"+e.getHours():e.getHours())+":",s=e.getMinutes()<10?"0"+e.getMinutes():e.getMinutes();return e.getSeconds(),e.getSeconds(),i+n+o+s}},created:function(){Promise.all([this.getKefuInfo(),this.getList()]),void 0===this.bus.pageWs?(this.bus.pageWs=Object(o.a)(!0),this.wsKefuLogin()):this.wsStart()},mounted:function(){window.addEventListener("beforeunload",(function(t){sessionStorage.setItem("wsLogin",!1)})),this.wsLogin=JSON.parse(sessionStorage.getItem("wsLogin"))||!1},methods:function(t){for(var e=1;e0&&f.play(),i.recored.id){var n=!1;e.list.forEach((function(t,o,s){if(i.recored.id==t.id&&(n=!0,i.recored.is_tourist==e.tabCur)){var r=i.recored;s.splice(o,1),s.unshift(r)}})),n||i.recored.is_tourist==t.tabCur&&t.userList.unshift(i.recored),i.recored.is_tourist!=t.tabCur&&i.recored.id&&t.$Notice.info({title:t.tabCur?"用户发来消息啦!":"游客发来消息啦!"})}})),i.$on("timeout",(function(e){setTimeout((function(){t.wsRestart()}),2e3)}))})).catch((function(e){setTimeout((function(e){t.wsRestart()}),2e3)}))},wsRestart:function(){this.bus.pageWs=Object(o.a)(!0),this.wsKefuLogin()},changeClass:function(t){this.tabCur!=t.key&&(this.tabCur=t.key,this.page=1,this.list=[],this.isScroll=!0,this.getList())},changOnline:function(t){this.kefuInfo.online=t,this.isOnLine=!1,this.bus.pageWs.then((function(e){e.send({type:"online",data:{online:t}})}))},getKefuInfo:function(){var t=this;Object(r.a)().then((function(e){t.kefuInfo=e.data,window.document.title="".concat(e.data.site_name," - 消息列表")}))},getList:function(){var t=this;this.isScroll&&Object(s.H)({nickname:this.searchTxt,page:this.page,limit:this.limit,is_tourist:this.tabCur}).then((function(e){t.isScroll=e.data.length>=t.limit,t.list=t.list.concat(e.data),t.page++,e.data.length&&setTimeout((function(){t.$refs.vs.refresh()}),100)}))},outLogin:function(){var t=this;this.$Modal.confirm({title:"退出登录确认",content:"您确定退出登录当前账户吗?打开的标签页和个人设置将会保存。",onOk:function(){t.logoutKefu({confirm:!1,vm:t})},onCancel:function(){}})},bindSearch:function(t){this.page=1,this.list=[],this.isScroll=!0,this.getList()},goPage:function(t){this.$router.push({path:"".concat(u.a.routePreKF,"/mobile_chat"),query:{toUid:t.to_uid,nickname:t.nickname,is_tourist:this.tabCur}})},handleBeforeDeactivate:function(t,e,i){this.getList(),i()}})}),g=(i("8d75"),i("2877")),v=Object(g.a)(p,(function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"chat-list"},[i("div",{staticClass:"head-box"},[i("div",{staticClass:"hd"},[i("div",{staticClass:"left-wrapper"},[i("img",{directives:[{name:"lazy",rawName:"v-lazy",value:t.kefuInfo.avatar,expression:"kefuInfo.avatar"}]}),i("div",{staticClass:"info",on:{click:function(e){t.isOnLine=!t.isOnLine}}},[i("div",[t._v(t._s(t.kefuInfo.nickname))]),i("div",{staticClass:"status"},[i("span",{staticClass:"doc",class:{off:!t.kefuInfo.online}}),i("span",[t._v(t._s(t.kefuInfo.online?"在线":"离线"))])])]),i("div",{directives:[{name:"show",rawName:"v-show",value:t.isOnLine,expression:"isOnLine"}],staticClass:"down-wrapper"},[i("div",{staticClass:"item",on:{click:function(e){return t.changOnline(1)}}},[i("span",{staticClass:"dot green"}),t._v("在线\n "),t.kefuInfo.online?i("span",{staticClass:"iconfont iconduihao"}):t._e()]),i("div",{staticClass:"item",on:{click:function(e){return t.changOnline(0)}}},[i("span",{staticClass:"dot"}),t._v("离线\n "),t.kefuInfo.online?t._e():i("span",{staticClass:"iconfont iconduihao"})])])]),i("div",{staticClass:"right-wrapper",on:{click:t.outLogin}},[t._m(0),i("div",{staticClass:"ml-add"},[t._v("退出登录")])])]),i("div",{staticClass:"tab-box"},t._l(t.tabList,(function(e,n){return i("div",{staticClass:"tab-item",class:{on:t.tabCur==e.key},on:{click:function(i){return t.changeClass(e)}}},[t._v(t._s(e.title))])})),0),i("div",{staticClass:"search-box"},[i("Input",{attrs:{placeholder:"搜索用户名称"},on:{"on-enter":t.bindSearch},model:{value:t.searchTxt,callback:function(e){t.searchTxt=e},expression:"searchTxt"}})],1)]),t.list.length>0?i("div",{staticClass:"list-box"},[i("vue-scroll",{ref:"vs",attrs:{ops:t.ops},on:{"load-before-deactivate":t.handleBeforeDeactivate}},[t._l(t.list,(function(e,n){return i("div",{key:n,staticClass:"item",on:{click:function(i){return t.goPage(e)}}},[i("div",{staticClass:"left-wrapper"},[i("div",{staticClass:"img-box"},[i("img",{directives:[{name:"lazy",rawName:"v-lazy",value:e.avatar,expression:"item.avatar"}]}),i("div",{staticClass:"online",class:{on:e.online}})]),i("div",{staticClass:"info"},[i("div",{staticClass:"title"},[i("span",{staticClass:"line1"},[t._v(t._s(e.nickname))]),2==e.type?[i("span",{staticClass:"label"},[t._v("小程序")])]:t._e(),3==e.type?[i("span",{staticClass:"label h5"},[t._v("H5")])]:t._e(),1==e.type?[i("span",{staticClass:"label wx"},[t._v("公众号")])]:t._e(),0==e.type?[i("span",{staticClass:"label pc"},[t._v("PC端")])]:t._e()],2),1==e.message_type?i("div",{staticClass:"msg line1"},[t._v(t._s(e.message))]):t._e(),2==e.message_type?i("div",{staticClass:"msg"},[t._v("[表情]")]):t._e(),3==e.message_type?i("div",{staticClass:"msg"},[t._v("[图片]")]):t._e(),5==e.message_type?i("div",{staticClass:"msg"},[t._v("[商品]")]):t._e(),6==e.message_type?i("div",{staticClass:"msg"},[t._v("[订单]")]):t._e(),7==e.message_type?i("div",{staticClass:"msg"},[t._v("[退款订单]")]):t._e()])]),i("div",{staticClass:"right-wrapper"},[i("div",{staticClass:"time"},[t._v(t._s(t._f("toDay")(e.update_time)))]),e.mssage_num>0?i("span",{staticClass:"num"},[t._v(t._s(e.mssage_num))]):t._e()])])})),i("div",{staticClass:"slot-load",attrs:{slot:"load-deactive"},slot:"load-deactive"}),i("div",{staticClass:"slot-load",attrs:{slot:"load-active"},slot:"load-active"},[t._v("下滑加载更多")])],2)],1):i("empty",{attrs:{status:"3",msg:"暂无用户列表"}})],1)}),[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"icon-box"},[e("span",{staticClass:"iconfont icontuichu"})])}],!1,null,"9100baa0",null);e.default=v.exports},e2fd:function(t,e,i){"use strict";var n=i("88fd");i.n(n).a},ea87:function(t,e,i){t.exports=i.p+"view_admin/img/no_zf.e61fe9b5.png"}}]);