1 line
154 KiB
JavaScript
1 line
154 KiB
JavaScript
|
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-index-detail~pages-index-history"],{"035a":function(e,t,n){"use strict";n("7a82");var r=n("4ea4").default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=r(n("0cb6")),i=r(n("b746")),o=r(n("0622")),s={en:a.default,"zh-Hans":i.default,"zh-Hant":o.default};t.default=s},"0622":function(e){e.exports=JSON.parse('{"uni-load-more.contentdown":"上拉顯示更多","uni-load-more.contentrefresh":"正在加載...","uni-load-more.contentnomore":"沒有更多數據了"}')},"0cb6":function(e){e.exports=JSON.parse('{"uni-load-more.contentdown":"Pull up to show more","uni-load-more.contentrefresh":"loading...","uni-load-more.contentnomore":"No more data"}')},"14d1":function(e,t,n){"use strict";n("7a82"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default={pages:[{path:"pages/index/index",style:{navigationBarTitleText:"客服助手"}},{path:"pages/index/login",style:{navigationStyle:"custom"}},{path:"pages/index/history",style:{navigationBarTitleText:"客服助手",enablePullDownRefresh:!0}},{path:"pages/index/detail",style:{navigationBarTitleText:"客服助手",enablePullDownRefresh:!1}},{path:"pages/index/my",style:{navigationBarTitleText:"客服助手",enablePullDownRefresh:!1}},{path:"pages/index/wechat",style:{navigationBarTitleText:"客服助手",enablePullDownRefresh:!1}},{path:"pages/index/visitorChat",style:{navigationBarTitleText:"扫码直接聊天",enablePullDownRefresh:!1}},{path:"pages/index/webview",style:{navigationStyle:"custom"}}],globalStyle:{navigationBarTextStyle:"black",navigationBarTitleText:"客服助手",navigationBarBackgroundColor:"#F8F8F8",backgroundColor:"#F8F8F8"},tabBar:{selectedColor:"#4687f2",list:[{pagePath:"pages/index/index",iconPath:"static/comment.png",selectedIconPath:"static/comment-s.png",text:"会话"},{pagePath:"pages/index/history",iconPath:"static/browse.png",selectedIconPath:"static/browse-s.png",text:"访客"},{pagePath:"pages/index/my",iconPath:"static/user.png",selectedIconPath:"static/user-s.png",text:"我的"}]}}},1826:function(e,t,n){"use strict";var r=n("42bc"),a=n.n(r);a.a},1939:function(e,t,n){var r=n("b68d");r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals);var a=n("4f06").default;a("3f82e0f4",r,!0,{sourceMap:!1,shadowMode:!1})},"19e3":function(e,t,n){"use strict";var r=n("1939"),a=n.n(r);a.a},2909:function(e,t,n){"use strict";n("7a82"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,r.default)(e)||(0,a.default)(e)||(0,i.default)(e)||(0,o.default)()};var r=s(n("6005")),a=s(n("db90")),i=s(n("06c5")),o=s(n("3427"));function s(e){return e&&e.__esModule?e:{default:e}}},3242:function(e,t,n){"use strict";n("7a82");var r=n("4ea4").default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n("e9c4"),n("d3b7");var a=r(n("d4ec")),i=r(n("bee2")),o=function(){function e(t,n){(0,a.default)(this,e),this.url=t,this.data=null,this.isCreate=!1,this.isConnect=!1,this.isInitiative=!1,this.timeoutNumber=n,this.heartbeatTimer=null,this.reconnectTimer=null,this.socketExamples=null,this.againTime=3,this.reconnectNum=0}return(0,i.default)(e,[{key:"initSocket",value:function(){var e=this;this.socketExamples=uni.connectSocket({url:e.url,header:{"content-type":"application/json"},success:function(t){e.isCreate=!0,console.log(t)},fail:function(t){console.error(t),e.isCreate=!1}}),this.createSocket()}},{key:"createSocket",value:function(){var e=this;if(this.isCreate){console.log("WebSocket 开始初始化");try{this.socketExamples.onOpen((function(){console.log("WebSocket 连接成功"),e.isConnect=!0,clearInterval(e.heartbeatTimer),clearTimeout(e.reconnectTimer),e.heartbeatCheck()})),this.socketExamples.onMessage((function(e){uni.$emit("message",e)})),this.socketExamples.onClose((function(){console.log("WebSocket 关闭了"),uni.showToast({icon:"loading",title:"服务重连"+e.reconnectNum+"次",duration:2e3}),e.isConnect=!1,e.reconnect()})),this.socketExamples.onError((function(t){console.log("WebSocket
|