(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/info/info"],{147:function(e,n,t){"use strict";(function(e,n){var i=t(4);t(26);i(t(25));var r=i(t(148));e.__webpack_require_UNI_MP_PLUGIN__=t,n(r.default)}).call(this,t(1)["default"],t(2)["createPage"])},148:function(e,n,t){"use strict";t.r(n);var i=t(149),r=t(151);for(var o in r)["default"].indexOf(o)<0&&function(e){t.d(n,e,(function(){return r[e]}))}(o);t(153);var s,u=t(32),a=Object(u["default"])(r["default"],i["render"],i["staticRenderFns"],!1,null,null,null,!1,i["components"],s);a.options.__file="pages/info/info.vue",n["default"]=a.exports},149:function(e,n,t){"use strict";t.r(n);var i=t(150);t.d(n,"render",(function(){return i["render"]})),t.d(n,"staticRenderFns",(function(){return i["staticRenderFns"]})),t.d(n,"recyclableRender",(function(){return i["recyclableRender"]})),t.d(n,"components",(function(){return i["components"]}))},150:function(e,n,t){"use strict";var i;t.r(n),t.d(n,"render",(function(){return r})),t.d(n,"staticRenderFns",(function(){return s})),t.d(n,"recyclableRender",(function(){return o})),t.d(n,"components",(function(){return i}));try{i={uTabs:function(){return t.e("uview-ui/components/u-tabs/u-tabs").then(t.bind(null,222))},uDivider:function(){return t.e("uview-ui/components/u-divider/u-divider").then(t.bind(null,236))},uImage:function(){return t.e("uview-ui/components/u-image/u-image").then(t.bind(null,179))},uEmpty:function(){return t.e("uview-ui/components/u-empty/u-empty").then(t.bind(null,186))}}}catch(u){if(-1===u.message.indexOf("Cannot find module")||-1===u.message.indexOf(".vue"))throw u;console.error(u.message),console.error("1. 排查组件名称拼写是否正确"),console.error("2. 排查组件是否符合 easycom 规范，文档：https://uniapp.dcloud.net.cn/collocation/pages?id=easycom"),console.error("3. 若组件不符合 easycom 规范，需手动引入，并在 components 中注册该组件")}var r=function(){var e=this,n=e.$createElement,t=(e._self._c,e.list.length);e.$mp.data=Object.assign({},{$root:{g0:t}})},o=!1,s=[];r._withStripped=!0},151:function(e,n,t){"use strict";t.r(n);var i=t(152),r=t.n(i);for(var o in i)["default"].indexOf(o)<0&&function(e){t.d(n,e,(function(){return i[e]}))}(o);n["default"]=r.a},152:function(e,n,t){"use strict";(function(e){var i=t(4);Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var r=i(t(43)),o=i(t(18)),s=i(t(45)),u={data:function(){return{list:[],typeList:[{name:"未读",count:""},{name:"已读",count:""}],current:0,offset:[10,-2],form:{guard:"admins",is_read:0,page:1,per_page:10},page:"",divider:"没有更多数据啦~"}},onShow:function(){this.messagesListFn()},onPullDownRefresh:function(){this.messagesListFn()},onReachBottom:function(){console.log("触底加载"),this.divider="加载中。。。",this.page>this.form.page?(this.form.page++,this.messagesListFn(!1)):(this.divider="没有更多数据啦~",this.$u.toast("没有更多数据啦~"))},methods:{goPage:function(e,n){this.$u.route("pages/info/infoDetails",{id:n,source_id:e})},change:function(e){this.current=e,this.form.is_read=e,0==e?this.typeList[1].count="":this.typeList[0].count="",this.list=[],this.messagesListFn()},messagesListFn:function(n){var t=this;return(0,s.default)(r.default.mark((function i(){var s,u,a,c;return r.default.wrap((function(i){while(1)switch(i.prev=i.next){case 0:return i.prev=0,e.showNavigationBarLoading(),!1!==n&&(t.list=[],t.form.page=1),i.next=5,t.$u.api.messagesList(t.form);case 5:s=i.sent,u=s.data,a=u.data,c=u.meta,t.page=c.pagination.total_pages,t.list=t.page>1?[].concat((0,o.default)(t.list),(0,o.default)(a)):a,t.divider="没有更多数据啦~",i.next=17;break;case 14:i.prev=14,i.t0=i["catch"](0),console.error(i.t0);case 17:return i.prev=17,e.hideNavigationBarLoading(),e.stopPullDownRefresh(),i.finish(17);case 21:case"end":return i.stop()}}),i,null,[[0,14,17,21]])})))()}}};n.default=u}).call(this,t(2)["default"])},153:function(e,n,t){"use strict";t.r(n);var i=t(154),r=t.n(i);for(var o in i)["default"].indexOf(o)<0&&function(e){t.d(n,e,(function(){return i[e]}))}(o);n["default"]=r.a},154:function(e,n,t){}},[[147,"common/runtime","common/vendor"]]]);
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/info/info.js.map