You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1 line
18 KiB
1 line
18 KiB
1 year ago
|
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-chat-customer_list-index"],{"1c6c":function(t,e,i){"use strict";var n=i("d630"),a=i.n(n);a.a},"29f8":function(t,e,i){"use strict";i("7a82");var n=i("4ea4").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,i("d3b7"),i("99af"),i("d401"),i("25f0");var a=n(i("c61e")),s=n(i("f272")),o=i("c6c3"),r=i("26cb"),u={name:"CustomerList",components:{emptyPage:a.default,authorize:s.default},data:function(){return{list:[],productId:0,orderId:"",type:0,timer:null,page:1,limit:9999,mer_id:"",loading:!1,clear:!1,isAuto:!1,isShowAuth:!1}},computed:(0,r.mapGetters)(["isLogin","viewColor"]),onLoad:function(t){this.type=t.type,this.mer_id=t.mer_id,this.isLogin?this.getList(this.mer_id):(this.isAuto=!0,this.isShowAuth=!0)},onShow:function(t){this.isLogin?this.liveUpdate():(this.isAuto=!0,this.isShowAuth=!0)},onHide:function(){this.timer&&(clearInterval(this.timer),this.timer=null),this.clear=!0},onUnload:function(){this.timer&&(clearInterval(this.timer),this.timer=null),this.clear=!0},methods:{onLoadFun:function(){this.isShowAuth=!1,this.getList(this.mer_id),this.liveUpdate()},authColse:function(t){this.isShowAuth=t},getList:function(t){var e=this;this.loading=!0,0==this.type?(0,o.serviceList)({page:this.page,limit:this.limit}).then((function(t){if(e.list=t.data.list,400==t.status)return clearInterval(e.timer),e.timer=null,e.$util.Tips({title:t.message})})).finally((function(t){return e.loading=!1,e.$util.Tips({title:t})})).catch((function(t){return e.$util.Tips({title:t})})):(0,o.serviceUserList)(t,{page:this.page,limit:this.limit}).then((function(t){if(e.list=t.data.list,400==t.status)return clearInterval(e.timer),e.timer=null,e.$util.Tips({title:t.message})})).finally((function(t){return e.loading=!1,clearInterval(e.timer),e.timer=null,e.$util.Tips({title:t})})).catch((function(t){return clearInterval(e.timer),e.timer=null,e.$util.Tips({title:t})}))},liveUpdate:function(){var t=this;this.clear=!1,t.timer&&(clearInterval(t.timer),t.timer=null),t.timer=setInterval((function(){t.clear?clearInterval(t.timer):!t.loading&&t.getList(t.mer_id)}),5e3)},goPage:function(t){t.num=0,0==this.type?uni.navigateTo({url:"/pages/chat/customer_list/chat?mer_id=".concat(t.mer_id)}):uni.navigateTo({url:"/pages/chat/customer_list/chat?userId=".concat(t.user.uid,"&mer_id=").concat(t.mer_id)})}},changeTitle:function(t){this.mer_id=t.detail.value.toString()}};e.default=u},"493d":function(t,e,i){"use strict";i.r(e);var n=i("e933"),a=i.n(n);for(var s in n)["default"].indexOf(s)<0&&function(t){i.d(e,t,(function(){return n[t]}))}(s);e["default"]=a.a},"5f8f":function(t,e,i){"use strict";i.r(e);var n=i("29f8"),a=i.n(n);for(var s in n)["default"].indexOf(s)<0&&function(t){i.d(e,t,(function(){return n[t]}))}(s);e["default"]=a.a},6229:function(t,e,i){"use strict";i.d(e,"b",(function(){return n})),i.d(e,"c",(function(){return a})),i.d(e,"a",(function(){}));var n=function(){var t=this.$createElement,e=this._self._c||t;return e("v-uni-view",{staticClass:"empty-box"},[e("v-uni-image",{attrs:{src:"/static/images/empty-box.png"}}),e("v-uni-view",{staticClass:"txt"},[this._v(this._s(this.title))])],1)},a=[]},"713e":function(t,e,i){"use strict";var n=i("93e4"),a=i.n(n);a.a},8669:function(t,e,i){var n=i("24fb");e=n(!1),e.push([t.i,'@charset "UTF-8";\n/**\n * 这里是uni-app内置的常用样式变量\n *\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\n *\n */\n/**\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\n *\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\n */\n/* 颜色变量 */\n/* 行为相关颜色 *
|