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 lines
2.7 KiB
1 lines
2.7 KiB
require('../common/vendor.js');(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/users/message_center/index"],{"0e64":function(e,t,i){},"0ec0":function(e,t,i){"use strict";i.d(t,"b",(function(){return n})),i.d(t,"c",(function(){return s})),i.d(t,"a",(function(){}));var n=function(){var e=this,t=e.$createElement,i=(e._self._c,e.__map(e.list,(function(t,i){var n=e.__get_orig(t),s=[1,2].includes(t.message_type),a=s?null:e._f("filterType")(e.messageType);return{$orig:n,g0:s,f0:a}})));e.$mp.data=Object.assign({},{$root:{l0:i}})},s=[]},"1de4":function(e,t,i){"use strict";i.r(t);var n=i("0ec0"),s=i("ce88");for(var a in s)["default"].indexOf(a)<0&&function(e){i.d(t,e,(function(){return s[e]}))}(a);i("6e20");var c=i("828b"),o=Object(c["a"])(s["default"],n["b"],n["c"],!1,null,"6a9b80d9",null,!1,n["a"],void 0);t["default"]=o.exports},"6e20":function(e,t,i){"use strict";var n=i("0e64"),s=i.n(n);s.a},"7cf7":function(e,t,i){"use strict";(function(e){var n=i("47a9");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var s=i("77d7"),a=(n(i("cef6")),i("bad7")),c={data:function(){return{list:[],system:{},page:1,type:0,limit:20,loading:!1,finished:!1,imgHost:a.HTTP_REQUEST_URL}},filters:{messageType:function(e){return{3:"[图片]",4:"[语音]",5:"[商品]",6:"[订单]"}[e]}},onShow:function(){this.page=1,this.list=[],this.finished=!1,this.getList()},onReachBottom:function(){this.getList()},onPullDownRefresh:function(){this.page=1,this.list=[],this.finished=!1,this.getList()},methods:{getList:function(){var t=this;this.loading||this.finished||(this.loading=!0,e.showLoading({title:"加载中"}),(0,s.serviceRecord)({page:this.page,limit:this.limit}).then((function(i){e.hideLoading(),e.stopPullDownRefresh();var n=i.data.service;t.system=i.data.system,t.loading=!1,n.forEach((function(e){[1,2].includes(e.message_type)&&(e.message=t.replace_em(e.message))})),t.list=t.list.concat(n),t.finished=n.length<t.limit,t.page+=1})).catch((function(t){e.showToast({title:t.msg,icon:"none"})})))},replace_em:function(e){return e=e.replace(/\[em-([a-z_]*)\]/g,"<span class='em em-$1'/></span>"),e},goChat:function(t){e.navigateTo({url:"/pages/extension/customer_list/chat?to_uid="+t+"&type=1"})},goDetail:function(){e.navigateTo({url:"/pages/users/message_center/messageDetail"})}}};t.default=c}).call(this,i("df3c")["default"])},"810c":function(e,t,i){"use strict";(function(e,t){var n=i("47a9");i("7561");n(i("3240"));var s=n(i("1de4"));e.__webpack_require_UNI_MP_PLUGIN__=i,t(s.default)}).call(this,i("3223")["default"],i("df3c")["createPage"])},ce88:function(e,t,i){"use strict";i.r(t);var n=i("7cf7"),s=i.n(n);for(var a in n)["default"].indexOf(a)<0&&function(e){i.d(t,e,(function(){return n[e]}))}(a);t["default"]=s.a}},[["810c","common/runtime","common/vendor"]]]); |