pages-chat-customer_list-index.e943e5c3.js 9.2 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-chat-customer_list-index"],{"35cc":function(t,e,i){"use strict";var n=i("3641"),a=i.n(n);a.a},3641:function(t,e,i){var n=i("c1d6");"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var a=i("4f06").default;a("085dfbbc",n,!0,{sourceMap:!1,shadowMode:!1})},"41ef":function(t,e,i){var n=i("e2ec");"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var a=i("4f06").default;a("22d90459",n,!0,{sourceMap:!1,shadowMode:!1})},"4c4d":function(t,e,i){"use strict";i.r(e);var n=i("8b27"),a=i.n(n);for(var s in n)"default"!==s&&function(t){i.d(e,t,(function(){return n[t]}))}(s);e["default"]=a.a},"7faf":function(t,e,i){"use strict";var n=i("41ef"),a=i.n(n);a.a},8572:function(t,e,i){"use strict";var n;i.d(e,"b",(function(){return a})),i.d(e,"c",(function(){return s})),i.d(e,"a",(function(){return n}));var a=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("v-uni-view",{staticClass:"empty-box"},[i("v-uni-image",{attrs:{src:"/static/images/empty-box.png"}}),i("v-uni-view",{staticClass:"txt"},[t._v(t._s(t.title))])],1)},s=[]},"8b27":function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n={props:{title:{type:String,default:"暂无记录"}}};e.default=n},b871:function(t,e,i){"use strict";i.r(e);var n=i("8572"),a=i("4c4d");for(var s in a)"default"!==s&&function(t){i.d(e,t,(function(){return a[t]}))}(s);i("35cc");var r,c=i("f0c5"),o=Object(c["a"])(a["default"],n["b"],n["c"],!1,null,"6b1a6701",null,!1,n["a"],r);e["default"]=o.exports},c1d6: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/* 行为相关颜色 */\n/* 背景颜色 */\n/* 边框颜色 */\n/* 尺寸变量 */\n/* 文字尺寸 */\n/* 图片尺寸 */\n/* Border Radius */\n/* 水平间距 */\n/* 垂直间距 */\n/* 透明度 */\n/* 文章场景相关 */.empty-box[data-v-6b1a6701]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;flex-direction:column;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-align:center;-webkit-align-items:center;align-items:center;margin-top:%?200?%}.empty-box uni-image[data-v-6b1a6701]{width:%?414?%;height:%?240?%}.empty-box .txt[data-v-6b1a6701]{font-size:%?26?%;color:#999}',""]),t.exports=e},c5cb:function(t,e,i){"use strict";var n;i.d(e,"b",(function(){return a})),i.d(e,"c",(function(){return s})),i.d(e,"a",(function(){return n}));var a=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"CustomerList"},[t._l(t.list,(function(e,n){return 0==t.type&&t.list.length>0?[i("div",{key:n+"_0",staticClass:"item acea-row",on:{click:function(i){arguments[0]=i=t.$handleEvent(i),t.goPage(e)}}},[i("v-uni-view",{staticClass:"logo"},[i("v-uni-image",{attrs:{src:e.merchant.mer_avatar,mode:""}})],1),i("v-uni-view",{staticClass:"info"},[i("v-uni-view",{staticClass:"name"},[t._v(t._s(e.merchant.mer_name))]),1==e.last.msn_type?i("v-uni-view",{staticClass:"con line1"},[t._v(t._s(e.last.msn))]):t._e(),2==e.last.msn_type?i("v-uni-view",{staticClass:"con line1"},[t._v("[表情]")]):t._e(),3==e.last.msn_type?i("v-uni-view",{staticClass:"con line1"},[t._v("[图片]")]):t._e(),4==e.last.msn_type?i("v-uni-view",{staticClass:"con line1"},[t._v("[商品]")]):t._e(),5==e.last.msn_type||6==e.last.msn_type?i("v-uni-view",{staticClass:"con line1"},[t._v("[订单]")]):t._e()],1),i("v-uni-view",{staticClass:"right-box"},[i("v-uni-view",{staticClass:"time"},[t._v(t._s(e.last&&e.last.create_time))]),e.num>0?i("v-uni-view",{staticClass:"num"},[t._v(t._s(e.num))]):t._e()],1)],1)]:t._e()})),t._l(t.list,(function(e,n){return 1==t.type&&t.list.length>0?[i("div",{key:n+"_0",staticClass:"item acea-row",on:{click:function(i){arguments[0]=i=t.$handleEvent(i),t.goPage(e)}}},[i("v-uni-view",{staticClass:"logo"},[e.user.avatar?i("v-uni-image",{attrs:{src:e.user.avatar,mode:""}}):i("v-uni-image",{attrs:{src:"/static/images/f.png",mode:""}})],1),i("v-uni-view",{staticClass:"info"},[i("v-uni-view",{staticClass:"name"},[t._v(t._s(e.user.nickname))]),1==e.last.msn_type?i("v-uni-view",{staticClass:"con line1"},[t._v(t._s(e.last.msn))]):t._e(),2==e.last.msn_type?i("v-uni-view",{staticClass:"con line1"},[t._v("[表情]")]):t._e(),3==e.last.msn_type?i("v-uni-view",{staticClass:"con line1"},[t._v("[图片]")]):t._e(),4==e.last.msn_type||7==e.last.msn_type?i("v-uni-view",{staticClass:"con line1"},[t._v("[商品]")]):t._e(),5==e.last.msn_type||6==e.last.msn_type?i("v-uni-view",{staticClass:"con line1"},[t._v("[订单]")]):t._e()],1),i("v-uni-view",{staticClass:"right-box"},[i("v-uni-view",{staticClass:"time"},[t._v(t._s(e.last&&e.last.create_time))]),e.num>0?i("v-uni-view",{staticClass:"num"},[t._v(t._s(e.num))]):t._e()],1)],1)]:t._e()})),0==t.list.length?[i("emptyPage",{attrs:{title:"暂无数据~"}})]:t._e()],2)},s=[]},d111:function(t,e,i){"use strict";i.r(e);var n=i("ef3c"),a=i.n(n);for(var s in n)"default"!==s&&function(t){i.d(e,t,(function(){return n[t]}))}(s);e["default"]=a.a},e2ec: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/* 行为相关颜色 */\n/* 背景颜色 */\n/* 边框颜色 */\n/* 尺寸变量 */\n/* 文字尺寸 */\n/* 图片尺寸 */\n/* Border Radius */\n/* 水平间距 */\n/* 垂直间距 */\n/* 透明度 */\n/* 文章场景相关 */.CustomerList .item[data-v-0fa5b1a2]{-webkit-box-align:center;-webkit-align-items:center;align-items:center;border-bottom:1px solid #eee;padding:%?20?% %?30?%;background-color:#fff}.CustomerList .item .logo uni-image[data-v-0fa5b1a2]{width:%?88?%;height:%?88?%;-webkit-border-radius:50%;border-radius:50%}.CustomerList .item .info[data-v-0fa5b1a2]{width:%?334?%;margin-left:%?20?%}.CustomerList .item .info .con[data-v-0fa5b1a2]{margin-top:%?10?%;color:#999;font-size:%?24?%}.CustomerList .item .right-box[data-v-0fa5b1a2]{-webkit-box-flex:1;-webkit-flex:1;flex:1;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;flex-direction:column;-webkit-box-align:end;-webkit-align-items:flex-end;align-items:flex-end;font-size:%?20?%;color:#bbb}.CustomerList .item .right-box .time[data-v-0fa5b1a2]{margin-bottom:%?10?%}.CustomerList .item .right-box .num[data-v-0fa5b1a2]{min-width:6px;background-color:#e93323;-webkit-border-radius:15px;border-radius:15px;font-size:10px;padding:0 4px;font-size:%?20?%;color:#fff}',""]),t.exports=e},ef3c:function(t,e,i){"use strict";var n=i("4ea4");i("99af"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a=n(i("b871")),s=i("5e22"),r={name:"CustomerList",components:{emptyPage:a.default},data:function(){return{list:[],productId:0,orderId:"",type:0,timer:null,page:1,limit:9999}},onLoad:function(t){this.type=t.type},onShow:function(t){this.getList(),this.liveUpdate()},onHide:function(){this.timer&&(clearInterval(this.timer),this.timer=null)},onUnload:function(){this.timer&&(clearInterval(this.timer),this.timer=null)},methods:{getList:function(){var t=this;0==this.type?(0,s.serviceList)({page:this.page,limit:this.limit}).then((function(e){t.list=e.data.list})):(0,s.serviceUserList)({page:this.page,limit:this.limit}).then((function(e){t.list=e.data.list}))},liveUpdate:function(){this.timer&&(clearInterval(this.timer),this.timer=null);var t=this;this.timer=setInterval((function(){t.getList()}),5e3)},goPage:function(t){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)})}}};e.default=r},f0b6:function(t,e,i){"use strict";i.r(e);var n=i("c5cb"),a=i("d111");for(var s in a)"default"!==s&&function(t){i.d(e,t,(function(){return a[t]}))}(s);i("7faf");var r,c=i("f0c5"),o=Object(c["a"])(a["default"],n["b"],n["c"],!1,null,"0fa5b1a2",null,!1,n["a"],r);e["default"]=o.exports}}]);