1 line
18 KiB
JavaScript
1 line
18 KiB
JavaScript
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-chat-customer_list-index"],{"0745":function(t,e,i){"use strict";var n=i("a9de"),a=i.n(n);a.a},"0999":function(t,e,i){"use strict";var n=i("a3ea"),a=i.n(n);a.a},"104c":function(t,e,i){"use strict";i.r(e);var n=i("1b25"),a=i("5bfe");for(var s in a)["default"].indexOf(s)<0&&function(t){i.d(e,t,(function(){return a[t]}))}(s);i("0745");var o=i("f0c5"),r=Object(o["a"])(a["default"],n["b"],n["c"],!1,null,"42119758",null,!1,n["a"],void 0);e["default"]=r.exports},"18cd":function(t,e,i){"use strict";i.r(e);var n=i("a7dd"),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},"1aed":function(t,e,i){"use strict";i.r(e);var n=i("baed"),a=i("3ba7f");for(var s in a)["default"].indexOf(s)<0&&function(t){i.d(e,t,(function(){return a[t]}))}(s);i("98ca");var o=i("f0c5"),r=Object(o["a"])(a["default"],n["b"],n["c"],!1,null,"25886798",null,!1,n["a"],void 0);e["default"]=r.exports},"1b25":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,e=t.$createElement,i=t._self._c||e;return i("v-uni-view",[t.isShowAuth&&t.code?i("v-uni-view",{staticClass:"mask",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.close.apply(void 0,arguments)}}}):t._e(),t.isShowAuth&&t.code?i("v-uni-view",{staticClass:"Popup",style:"top:"+t.top+"px;"},[t.isWeixin?i("v-uni-text",{staticClass:"title"},[t._v(t._s(t.isPay?"付款提醒":"授权提醒"))]):i("v-uni-text",{staticClass:"title"},[t._v(t._s(t.title))]),t.isWeixin?i("v-uni-text",{staticClass:"tip"},[t._v(t._s(t.isPay?t.payInfo:"请授权头像等信息,以便为您提供更好的服务!"))]):i("v-uni-text",{staticClass:"tip"},[t._v(t._s(t.info))]),i("v-uni-view",{staticClass:"bottom flex"},[t.isPay?i("v-uni-text",{staticClass:"item",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.toWecahtAuth.apply(void 0,arguments)}}},[t._v("取消")]):i("v-uni-text",{staticClass:"item",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.close.apply(void 0,arguments)}}},[t._v("随便逛逛")]),i("v-uni-button",{staticClass:"item grant",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.toWecahtAuth.apply(void 0,arguments)}}},[t.isWeixin?i("v-uni-text",{staticClass:"text"},[t._v(t._s(t.isPay?"去支付":"去授权"))]):i("v-uni-text",{staticClass:"text"},[t._v("去登录")])],1)],1)],1):t._e()],1)},a=[]},"1e9b":function(t,e,i){var n=i("5e9a");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var a=i("4f06").default;a("7684bad0",n,!0,{sourceMap:!1,shadowMode:!1})},"38d7":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,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"CustomerList",style:t.viewColor},[i("v-uni-view",[t._l(t.list,(function(e,n){return 0==t.type&&t.list.length>0?[e.merchant?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&&e.merchant.mer_avatar,mode:""}})],1),i("v-uni-view",{staticClass:"info"},[i("v-uni-view",{staticClass:"name"},[t._v(t._s(e.merchant?e.merchant.mer_name:""))]),e.last&&1==e.last.msn_type?i("v-uni-view",{staticClass:"con line1"},[t._v(t._s(e.last.msn))]):t._e(),e.last&&2==e.last.msn_type?i("v-uni-view",{staticClass:"con line1"},[t._v("[表情]")]):t._e(),e.last&&3==e.last.msn_type?i("v-uni-view",{staticClass:"con line1"},[t._v("[图片]")]):t._e(),e.last&&4==e.last.msn_type?i("v-uni-view",{staticClass:"con line1"},[t._v("[商品]")]):t._e(),!e.last||5!=e.last.msn_type&&6!=e.last.msn_type?t._e():i("v-uni-view",{staticClass:"con line1"},[t._v("[订单]")])],1),i("v-uni-view",{staticClass:"right-box"},[i("v-uni-view",{staticClass:"time"},[t._v(t._s(e.last&&e.last.create_time.split(" ")[1]||""))]),e.num>0?i("v-uni-view",{staticClass:"num"},[t._v(t._s(e.num))]):t._e()],1)],1):t._e()]: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"},[i("v-uni-image",{attrs:{src:e.user&&e.user.avatar?e.user.avatar:"/static/images/f.png",mode:""}})],1),i("v-uni-view",{staticClass:"info"},[i("v-uni-view",{staticClass:"name"},[t._v(t._s(e.user&&e.user.nickname))]),e.last&&1==e.last.msn_type?i("v-uni-view",{staticClass:"con line1"},[t._v(t._s(e.last.msn))]):t._e(),e.last&&2==e.last.msn_type?i("v-uni-view",{staticClass:"con line1"},[t._v("[表情]")]):t._e(),e.last&&3==e.last.msn_type?i("v-uni-view",{staticClass:"con line1"},[t._v("[图片]")]):t._e(),!e.last||4!=e.last.msn_type&&7!=e.last.msn_type?t._e():i("v-uni-view",{staticClass:"con line1"},[t._v("[商品]")]),!e.last||5!=e.last.msn_type&&6!=e.last.msn_type?t._e():i("v-uni-view",{staticClass:"con line1"},[t._v("[订单]")])],1),i("v-uni-view",{staticClass:"right-box"},[i("v-uni-view",{staticClass:"time"},[t._v(t._s(e.last&&e.last.create_time.split(" ")[1]))]),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),i("authorize",{attrs:{isAuto:t.isAuto,isShowAuth:t.isShowAuth},on:{onLoadFun:function(e){arguments[0]=e=t.$handleEvent(e),t.onLoadFun.apply(void 0,arguments)},authColse:function(e){arguments[0]=e=t.$handleEvent(e),t.authColse.apply(void 0,arguments)}}})],1)},a=[]},"3ba7f":function(t,e,i){"use strict";i.r(e);var n=i("f700"),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},"5bfe":function(t,e,i){"use strict";i.r(e);var n=i("e40c"),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},"5e9a":function(t,e,i){var n=i("24fb");e=n(!1),e.push([t.i,'@charset "UTF-8";\r\n/**\r\n * 这里是uni-app内置的常用样式变量\r\n *\r\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\r\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\r\n *\r\n */\r\n/**\r\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\r\n *\r\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\r\n */\r\n/* 颜色变量 */\r\n/* 行为相关颜色 */\r\n/* 背景颜色 */\r\n/* 边框颜色 */\r\n/* 尺寸变量 */\r\n/* 文字尺寸 */\r\n/* 图片尺寸 */\r\n/* Border Radius */\r\n/* 水平间距 */\r\n/* 垂直间距 */\r\n/* 透明度 */\r\n/* 文章场景相关 */.empty-box[data-v-25886798]{display:flex;flex-direction:column;justify-content:center;align-items:center;margin-top:%?200?%}.empty-box uni-image[data-v-25886798]{width:%?414?%;height:%?240?%}.empty-box .txt[data-v-25886798]{font-size:%?26?%;color:#999}',""]),t.exports=e},"98ca":function(t,e,i){"use strict";var n=i("1e9b"),a=i.n(n);a.a},a3ea:function(t,e,i){var n=i("b3cd");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var a=i("4f06").default;a("32ba6314",n,!0,{sourceMap:!1,shadowMode:!1})},a7dd: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("1aed")),s=n(i("104c")),o=i("33b4"),r=i("33b4"),l=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,l.mapGetters)(["isLogin","viewColor"]),onLoad:function(t){this.type=t.type,this.getindex()},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:{getindex:function(){var t=this;(0,r.getUserInfo)().then((function(e){t.mer_id=e.data.service.mer_id,t.isLogin?t.getList(t.mer_id):(t.isAuto=!0,t.isShowAuth=!0)}))},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},a9de:function(t,e,i){var n=i("ee9e");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var a=i("4f06").default;a("0802872c",n,!0,{sourceMap:!1,shadowMode:!1})},b3cd:function(t,e,i){var n=i("24fb");e=n(!1),e.push([t.i,'@charset "UTF-8";\r\n/**\r\n * 这里是uni-app内置的常用样式变量\r\n *\r\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\r\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\r\n *\r\n */\r\n/**\r\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\r\n *\r\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\r\n */\r\n/* 颜色变量 */\r\n/* 行为相关颜色 */\r\n/* 背景颜色 */\r\n/* 边框颜色 */\r\n/* 尺寸变量 */\r\n/* 文字尺寸 */\r\n/* 图片尺寸 */\r\n/* Border Radius */\r\n/* 水平间距 */\r\n/* 垂直间距 */\r\n/* 透明度 */\r\n/* 文章场景相关 */.CustomerList .spin[data-v-5b8587de]{display:block;-webkit-transform:rotate(180deg);transform:rotate(180deg);font-size:%?36?%}.CustomerList .popupn[data-v-5b8587de]{position:fixed;width:100%;text-align:center;top:0;left:0;background:#fff;height:%?90?%;line-height:%?90?%;z-index:100}.CustomerList .popupn .title[data-v-5b8587de]{max-width:%?560?%;margin:0 auto;position:relative}.CustomerList .popupn .iconfont[data-v-5b8587de]{display:inline-block;position:relative;top:%?4?%;right:0}.CustomerList .popupn .mer_logo[data-v-5b8587de]{width:%?34?%;height:%?34?%;position:relative;top:%?6?%;right:10px}.CustomerList .popupn .mer_name[data-v-5b8587de]{display:inline-block;max-width:%?650?%}.CustomerList .popupn .invoice-content[data-v-5b8587de]{background-color:#fff}.CustomerList .list_count[data-v-5b8587de]{margin-top:%?104?%}.CustomerList .item[data-v-5b8587de]{align-items:center;border-bottom:1px solid #eee;padding:%?20?% %?30?%;background-color:#fff}.CustomerList .item .logo uni-image[data-v-5b8587de]{width:%?88?%;height:%?88?%;border-radius:50%}.CustomerList .item .info[data-v-5b8587de]{width:%?334?%;margin-left:%?20?%}.CustomerList .item .info .con[data-v-5b8587de]{margin-top:%?10?%;color:#999;font-size:%?24?%}.CustomerList .item .right-box[data-v-5b8587de]{flex:1;display:flex;flex-direction:column;align-items:flex-end;font-size:%?20?%;color:#bbb}.CustomerList .item .right-box .time[data-v-5b8587de]{margin-bottom:%?10?%}.CustomerList .item .right-box .num[data-v-5b8587de]{min-width:6px;background-color:var(--view-theme);border-radius:15px;font-size:10px;padding:0 4px;font-size:%?20?%;color:#fff}',""]),t.exports=e},baed: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",style:{"margin-top":this.mt}},[e("v-uni-image",{attrs:{src:"/static/images/empty-box.png"}}),e("v-uni-view",{staticClass:"txt",style:{color:this.color}},[this._v(this._s(this.title))])],1)},a=[]},e40c:function(t,e,i){"use strict";i("7a82");var n=i("4ea4").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a=n(i("5530")),s=(n(i("a040")),i("cc48"),i("8a31"),i("26cb")),o=(n(i("8afb")),i("5315")),r=(n(i("1ba1")),i("5eb1")),l=(getApp(),{name:"Authorize",props:{isAuto:{type:Boolean,default:!0},isGoIndex:{type:Boolean,default:!0},isShowAuth:{type:Boolean,default:!1},isPay:{type:Boolean,default:!1}},components:{},data:function(){return{title:"用户登录",info:"请登录,将为您提供更好的服务!",isWeixin:this.$wechat.isWeixin(),payInfo:"",canUseGetUserProfile:!1,code:null,top:0,mp_is_new:this.$Cache.get("MP_VERSION_ISNEW")||!1,editModal:!1}},computed:(0,a.default)((0,a.default)({},(0,s.mapGetters)(["isLogin","userInfo","viewColor"])),(0,o.configMap)(["routine_logo"])),watch:{isLogin:function(t){!0===t&&this.$emit("onLoadFun",this.userInfo)},isShowAuth:function(t){this.getCode(this.isShowAuth)}},created:function(){this.top=uni.getSystemInfoSync().windowHeight/2-70,wx.getUserProfile&&(this.canUseGetUserProfile=!0),this.setAuthStatus(),this.getCode(this.isShowAuth)},methods:{setPayInfo:function(t){this.payInfo=t},setAuthStatus:function(){},getCode:function(t){t&&(this.code=1)},toWecahtAuth:function(){(0,r.toLogin)(!0)},getUserProfile:function(){(0,r.toLogin)(!0),uni.navigateTo({url:"/pages/users/login/login_copy"})},close:function(){var t=getCurrentPages();t[t.length-1];this.$emit("authColse",!1),this.isGoIndex?uni.switchTab({url:"/pages/index/index"}):this.$emit("authColse",!1)}}});e.default=l},e7db:function(t,e,i){"use strict";i.r(e);var n=i("38d7"),a=i("18cd");for(var s in a)["default"].indexOf(s)<0&&function(t){i.d(e,t,(function(){return a[t]}))}(s);i("0999");var o=i("f0c5"),r=Object(o["a"])(a["default"],n["b"],n["c"],!1,null,"5b8587de",null,!1,n["a"],void 0);e["default"]=r.exports},ee9e:function(t,e,i){var n=i("24fb");e=n(!1),e.push([t.i,'@charset "UTF-8";\r\n/**\r\n * 这里是uni-app内置的常用样式变量\r\n *\r\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\r\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\r\n *\r\n */\r\n/**\r\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\r\n *\r\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\r\n */\r\n/* 颜色变量 */\r\n/* 行为相关颜色 */\r\n/* 背景颜色 */\r\n/* 边框颜色 */\r\n/* 尺寸变量 */\r\n/* 文字尺寸 */\r\n/* 图片尺寸 */\r\n/* Border Radius */\r\n/* 水平间距 */\r\n/* 垂直间距 */\r\n/* 透明度 */\r\n/* 文章场景相关 */.Popup[data-v-42119758]{flex:1;align-items:center;justify-content:center;width:%?500?%;background-color:#fff;position:fixed;top:%?500?%;left:%?125?%;z-index:1000;border-radius:8px;overflow:hidden}.Popup .logo-auth[data-v-42119758]{z-index:-1;position:absolute;left:50%;top:0;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);width:%?150?%;height:%?150?%;display:flex;align-items:center;justify-content:center;border:%?8?% solid #fff;border-radius:50%;background:#fff}.Popup .image[data-v-42119758]{height:%?42?%;margin-top:%?-54?%}.Popup .title[data-v-42119758]{font-size:%?28?%;color:#000;text-align:center;margin-top:%?30?%;align-items:center;justify-content:center;width:%?500?%;display:flex}.Popup .tip[data-v-42119758]{font-size:%?22?%;color:#555;padding:0 %?24?%;margin-top:%?25?%;display:flex;align-items:center;justify-content:center}.Popup .bottom .item[data-v-42119758]{flex:1;width:%?250?%;height:%?80?%;background-color:#eee;text-align:center;line-height:%?80?%;margin-top:%?54?%;font-size:%?24?%;color:#666}.Popup .bottom .item .text[data-v-42119758]{font-size:%?24?%;color:#666}.Popup .bottom .item.on[data-v-42119758]{width:%?500?%}.flex[data-v-42119758]{display:flex;flex-direction:row}.Popup .bottom .item.grant[data-v-42119758]{font-weight:700;background-color:#e93323;\r\n /* background-color: var(--view-theme); */border-radius:0;padding:0}.Popup .bottom .item.grant .text[data-v-42119758]{font-size:%?28?%;color:#fff}.mask[data-v-42119758]{position:fixed;top:0;right:0;left:0;bottom:0;background-color:rgba(0,0,0,.65);z-index:99}',""]),t.exports=e},f700:function(t,e,i){"use strict";i("7a82"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n={props:{title:{type:String,default:"暂无记录"},color:{type:String,default:"#999"},mt:{type:String,default:"200rpx"}}};e.default=n}}]); |