(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/notice/notice"],{"152c":function(t,n,e){"use strict";e.r(n);var o=e("c36c"),r=e.n(o);for(var a in o)"default"!==a&&function(t){e.d(n,t,(function(){return o[t]}))}(a);n["default"]=r.a},"66ba":function(t,n,e){"use strict";(function(t){e("4518");o(e("66fd"));var n=o(e("fe72"));function o(t){return t&&t.__esModule?t:{default:t}}t(n.default)}).call(this,e("543d")["createPage"])},"7d65":function(t,n,e){"use strict";var o=e("df14"),r=e.n(o);r.a},bd55:function(t,n,e){"use strict";var o;e.d(n,"b",(function(){return r})),e.d(n,"c",(function(){return a})),e.d(n,"a",(function(){return o}));var r=function(){var t=this,n=t.$createElement;t._self._c},a=[]},c36c:function(t,n,e){"use strict";(function(t){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o=r(e("a34a"));function r(t){return t&&t.__esModule?t:{default:t}}function a(t){return s(t)||u(t)||c(t)||i()}function i(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function c(t,n){if(t){if("string"===typeof t)return l(t,n);var e=Object.prototype.toString.call(t).slice(8,-1);return"Object"===e&&t.constructor&&(e=t.constructor.name),"Map"===e||"Set"===e?Array.from(t):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?l(t,n):void 0}}function u(t){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}function s(t){if(Array.isArray(t))return l(t)}function l(t,n){(null==n||n>t.length)&&(n=t.length);for(var e=0,o=new Array(n);e<n;e++)o[e]=t[e];return o}function f(t,n,e,o,r,a,i){try{var c=t[a](i),u=c.value}catch(s){return void e(s)}c.done?n(u):Promise.resolve(u).then(o,r)}function d(t){return function(){var n=this,e=arguments;return new Promise((function(o,r){var a=t.apply(n,e);function i(t){f(a,o,r,i,c,"next",t)}function c(t){f(a,o,r,i,c,"throw",t)}i(void 0)}))}}var g=function(){e.e("comps/dt_custom_bar").then(function(){return resolve(e("8609"))}.bind(null,e)).catch(e.oe)},p=getApp(),v={components:{DtCustomBar:g},data:function(){return{msgList:[],ajax:{rows:10,page:1,flag:!0,loading:!0},content:""}},mounted:function(){var t=this;this.$nextTick((function(){t.getHistoryMsg()}))},onPageScroll:function(t){t.scrollTop<5&&this.getHistoryMsg()},onLoad:function(){},methods:{goDetail:function(n){p.globalData.noticeDetail=n,t.navigateTo({url:"./detail"})},getHistoryMsg:function(){var t=this;if(this.ajax.flag){var n=function(){var n=d(o.default.mark((function n(){var e,r;return o.default.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return t.hideLoadTips(),t.ajax.flag=!1,n.next=4,t.joinHistoryMsg();case 4:e=n.sent,console.log(e),r="",r=t.ajax.page>1?"#msg-".concat(t.msgList[0].id):"#msg-".concat(e[e.length-1].id),t.msgList=[].concat(a(e),a(t.msgList)),t.$nextTick((function(){t.setPageScrollTo(r),t.hideLoadTips(!0),e.length<t.ajax.rows||(t.ajax.page++,setTimeout((function(){t.ajax.flag=!0}),200))}));case 10:case"end":return n.stop()}}),n)})));return function(){return n.apply(this,arguments)}}();n()}},joinHistoryMsg:function(){var n=this;return console.log(this.ajax.page),console.log(this.ajax.rows),new Promise((function(e,o){setTimeout((function(){var o=n,r={};r.residentialId=t.getStorageSync("residentialId"),o.$http.getNoticeList(r).then((function(t){e(t.data.noticeList)}))}),800)}))},setPageScrollTo:function(n){var e=t.createSelectorQuery().in(this).select(n);e.boundingClientRect((function(n){t.pageScrollTo({scrollTop:n.top-30,duration:0})})).exec()},hideLoadTips:function(t){var n=this;t?(console.log("333"),setTimeout((function(){n.ajax.loading=!1}),300)):this.ajax.loading=!0}}};n.default=v}).call(this,e("543d")["default"])},df14:function(t,n,e){},fe72:function(t,n,e){"use strict";e.r(n);var o=e("bd55"),r=e("152c");for(var a in r)"default"!==a&&function(t){e.d(n,t,(function(){return r[t]}))}(a);e("7d65");var i,c=e("f0c5"),u=Object(c["a"])(r["default"],o["b"],o["c"],!1,null,null,null,!1,o["a"],i);n["default"]=u.exports}},[["66ba","common/runtime","common/vendor"]]]);