zx/public/static/js/pages-chat-customer_list-in...

1 line
11 KiB
JavaScript
Raw Normal View History

2024-07-02 15:32:59 +08:00
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-chat-customer_list-index"],{4926:function(t,i,e){var n=e("a31c");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var a=e("967d").default;a("f3f9cc4e",n,!0,{sourceMap:!1,shadowMode:!1})},"556a":function(t,i,e){"use strict";e("6a54");var n=e("f5bd").default;Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0,e("bf0f"),e("c223");var a=n(e("8329")),s=e("672a"),r=e("e44d"),o=e("8f59"),l={name:"CustomerList",components:{emptyPage:a.default},data:function(){return{list:[],productId:0,orderId:"",type:0,timer:null,page:1,limit:9999,mer_id:"",loading:!1,clear:!1}},computed:(0,o.mapGetters)(["isLogin","viewColor"]),onLoad:function(t){this.type=t.type,this.mer_id=t.mer_id,this.isLogin?this.getList(this.mer_id):(0,r.toLogin)()},onShow:function(t){this.isLogin?this.liveUpdate():(0,r.toLogin)()},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:{getList:function(t){var i=this;this.loading=!0,0==this.type?(0,s.serviceList)({page:this.page,limit:this.limit}).then((function(t){if(i.list=t.data.list,400==t.status)return clearInterval(i.timer),i.timer=null,i.$util.Tips({title:t.message})})).finally((function(t){return i.loading=!1,i.$util.Tips({title:t})})).catch((function(t){return i.$util.Tips({title:t})})):(0,s.serviceUserList)(t,{page:this.page,limit:this.limit}).then((function(t){if(i.list=t.data.list,400==t.status)return clearInterval(i.timer),i.timer=null,i.$util.Tips({title:t.message})})).finally((function(t){return i.loading=!1,clearInterval(i.timer),i.timer=null,i.$util.Tips({title:t})})).catch((function(t){return clearInterval(i.timer),i.timer=null,i.$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)})}}};i.default=l},"5dce":function(t,i,e){var n=e("c86c");i=n(!1),i.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/* 行为相关颜色 */\n/* 背景颜色 */\n/* 边框颜色 */\n/* 尺寸变量 */\n/* 文字尺寸 */\n/* 图片尺寸 */\n/* Border Radius */\n/* 水平间距 */\n/* 垂直间距 */\n/* 透明度 */\n/* 文章场景相关 */.empty-box[data-v-f1a26612]{display:flex;flex-direction:column;justify-content:center;align-items:center;margin-top:%?200?%}.empty-box uni-image[data-v-f1a26612]{width:%?414?%;height:%?240?%}.empty-box .txt[data-v-f1a26612]{font-size:%?26?%;color:#999}',""]),t.exports=i},"676c":function(t,i,e){"use strict";var n=e("9da7"),a=e.n(n);a.a},"6afa":function(t,i,e){"use strict";e.r(i);var n=e("ae3c"),a=e("d14a");for(var s in a)["default"].indexOf(s)<0&&function(t){e.d(i,t,(function(){return a[t]}))}(s);e("fe27");var r=e("828b"),o=Object(r["a"])(a["default"],n["b"],n["c"],!1,null,"500dd00a",null,!1,n["a"],void 0);i["default"]=o.exports},8329:function(t,i,e){"use strict";e.r(i);var n=e("d98d"),a=e("c4bf1");for(var s in a)["default"].indexOf(s)<0&&f