(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["my/msg/index"],{254:function(t,n,e){"use strict";(function(t){e(5);o(e(4));var n=o(e(255));function o(t){return t&&t.__esModule?t:{default:t}}wx.__webpack_require_UNI_MP_PLUGIN__=e,t(n.default)}).call(this,e(1)["createPage"])},255:function(t,n,e){"use strict";e.r(n);var o=e(256),i=e(258);for(var a in i)"default"!==a&&function(t){e.d(n,t,(function(){return i[t]}))}(a);e(260);var r,u=e(11),s=Object(u["default"])(i["default"],o["render"],o["staticRenderFns"],!1,null,null,null,!1,o["components"],r);s.options.__file="my/msg/index.vue",n["default"]=s.exports},256:function(t,n,e){"use strict";e.r(n);var o=e(257);e.d(n,"render",(function(){return o["render"]})),e.d(n,"staticRenderFns",(function(){return o["staticRenderFns"]})),e.d(n,"recyclableRender",(function(){return o["recyclableRender"]})),e.d(n,"components",(function(){return o["components"]}))},257:function(t,n,e){"use strict";var o;e.r(n),e.d(n,"render",(function(){return i})),e.d(n,"staticRenderFns",(function(){return r})),e.d(n,"recyclableRender",(function(){return a})),e.d(n,"components",(function(){return o}));var i=function(){var t=this,n=t.$createElement;t._self._c},a=!1,r=[];i._withStripped=!0},258:function(t,n,e){"use strict";e.r(n);var o=e(259),i=e.n(o);for(var a in o)"default"!==a&&function(t){e.d(n,t,(function(){return o[t]}))}(a);n["default"]=i.a},259:function(t,n,e){"use strict";(function(t){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o=function(){e.e("components/empty").then(function(){return resolve(e(536))}.bind(null,e)).catch(e.oe)},i={components:{empty:o},data:function(){return{tabFromIndex:5,tabCurrentIndex:0,fromInfo:5,list:[],page:1,limit:20,scrollTop:!1,tabList:[{state:5,text:"用户消息",totalElements:0},{state:4,text:"订单消息",totalElements:0}],totalCount:0}},onPageScroll:function(t){this.scrollTop=t.scrollTop>200},onLoad:function(t){this.$queue.showLoading("加载中..."),this.loadData()},methods:{goDet:function(n){console.log(n.indexOf("下单")),-1!=n.indexOf("下单")?t.navigateTo({url:"/my/order/index"}):-1!=n.indexOf("接单")?t.navigateTo({url:"/my/takeOrder/index"}):-1!=n.indexOf("订单审核通过")&&t.navigateTo({url:"/my/publish/index"})},tabClicks:function(t){this.list=[],this.page=1,this.tabFromIndex=t,this.$queue.showLoading("加载中..."),this.loadData()},loadData:function(){var n=this,e=this.$queue.getData("token");if(e){var o={page:this.page,limit:this.limit};this.$Request.getT("/app/message/selectMessageByUserId",o).then((function(e){0===e.code&&(n.totalCount=e.data.totalCount,1==n.page?n.list=e.data.list:e.data.list.forEach((function(t){n.list.push(t)}))),t.hideLoading(),t.stopPullDownRefresh()}))}}},onReachBottom:function(){this.list.length<this.totalCount?(this.page=this.page+1,this.loadData()):t.showToast({title:"已经到底了",icon:"none"})}};n.default=i}).call(this,e(1)["default"])},260:function(t,n,e){"use strict";e.r(n);var o=e(261),i=e.n(o);for(var a in o)"default"!==a&&function(t){e.d(n,t,(function(){return o[t]}))}(a);n["default"]=i.a},261:function(t,n,e){}},[[254,"common/runtime","common/vendor"]]]);
//# sourceMappingURL=../../../.sourcemap/mp-weixin/my/msg/index.js.map