(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-kefu-index"],{"4fd6":function(t,e,a){"use strict";a.r(e);var n=a("f199"),i=a("7f25");for(var s in i)"default"!==s&&function(t){a.d(e,t,(function(){return i[t]}))}(s);a("fe80");var c,o=a("f0c5"),u=Object(o["a"])(i["default"],n["b"],n["c"],!1,null,"5bc2c744",null,!1,n["a"],c);e["default"]=u.exports},"7f25":function(t,e,a){"use strict";a.r(e);var n=a("c0a2"),i=a.n(n);for(var s in n)"default"!==s&&function(t){a.d(e,t,(function(){return n[t]}))}(s);e["default"]=i.a},"98f9":function(t,e,a){var n=a("ee07");"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var i=a("4f06").default;i("7accbc82",n,!0,{sourceMap:!1,shadowMode:!1})},c0a2:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n={data:function(){return{pageLoad:!1,pageData:[],content:""}},onLoad:function(){this.getPage();var t=this;setInterval((function(){t.getPage()}),1e4)},methods:{getPage:function(){var t=this;this.app.get({url:this.app.apiHost+"/index.php?m=kefu&a=data&ajax=1",dataType:"json",success:function(e){t.pageLoad=!0,t.pageData=e.data,console.log(e.data)}})},submit:function(){var t=this;if(""==this.content)return!1;t.app.post({url:t.app.apiHost+"/index.php?m=kefu&a=save&ajax=1",data:{content:this.content},success:function(e){e.error?uni.showToast({title:e.message}):(t.content="",t.getPage())}})}}};e.default=n},ee07:function(t,e,a){var n=a("24fb");e=n(!1),e.push([t.i,".w200[data-v-5bc2c744]{max-width:200px}.kf-content[data-v-5bc2c744]{border:1px solid #eee;padding:5px 8px;border-radius:10px;font-size:14px;color:#646464;background-color:#fff;max-width:80%}",""]),t.exports=e},f199:function(t,e,a){"use strict";var n;a.d(e,"b",(function(){return i})),a.d(e,"c",(function(){return s})),a.d(e,"a",(function(){return n}));var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("v-uni-view",[a("v-uni-view",{staticClass:"main-body"},[t.pageLoad?a("v-uni-view",{staticClass:"list",attrs:{id:"app"}},t._l(t.pageData.list,(function(e,n){return a("v-uni-view",{key:n,staticClass:"pd-10"},["user"==e.tablename?a("v-uni-view",[a("v-uni-view",{staticClass:"flex"},[a("v-uni-view",{staticClass:"flex-1"}),a("v-uni-view",{staticClass:"cl2"},[t._v("我")])],1),a("v-uni-view",{staticClass:"flex"},[a("v-uni-view",{staticClass:"flex-1"}),a("v-uni-view",{staticClass:"kf-content mgr-20"},[t._v(t._s(e.content))])],1)],1):a("v-uni-view",[a("v-uni-view",{staticClass:"cl2 mgb-5"},[t._v("客服")]),a("v-uni-view",{staticClass:"kf-content mgl-20"},[t._v(t._s(e.content))])],1)],1)})),1):t._e(),a("v-uni-view",{staticClass:"footer-row"}),a("v-uni-view",{staticStyle:{position:"fixed",bottom:"0",left:"0",right:"0"}},[a("v-uni-view",{staticClass:"input-flex"},[a("v-uni-input",{staticClass:"input-flex-text",attrs:{type:"text"},model:{value:t.content,callback:function(e){t.content=e},expression:"content"}}),a("v-uni-view",{staticClass:"input-flex-btn",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.submit.apply(void 0,arguments)}}},[t._v("发送")])],1)],1)],1)],1)},s=[]},fe80:function(t,e,a){"use strict";var n=a("98f9"),i=a.n(n);i.a}}]);