(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/suggestion/suggestion"],{"1d79":function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a=n("2f62");function i(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,a)}return n}function o(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?i(Object(n),!0).forEach((function(e){s(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function s(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var r=function(){n.e("pages/suggestion/components/listUnit").then(function(){return resolve(n("0cd4"))}.bind(null,n)).catch(n.oe)},u={data:function(){return{pageData:{pageIndex:1,pageSize:8,isEnd:!1,isLoading:!0},isShow:!1,pageList:[]}},components:{ListUnit:r},computed:o({},(0,a.mapGetters)({isReloading:"shouldReLoadingList"})),methods:o(o({},(0,a.mapMutations)(["shouldReLoadingList"])),{},{getList:function(){var e=this,n=this;n.$request.$get("GetSuggestionList",{suggestionType:"1000,2000,4000",pageIndex:this.pageData.pageIndex,pageSize:this.pageData.pageSize}).then((function(a){if(a.ResultCode&&"100"==a.ResultCode){var i=a.Data.List;i.length>0&&(n.pageList=1==e.pageData.pageIndex?i:n.pageList.concat(i)),i.length<n.pageData.pageSize&&(n.pageData.isEnd=!0)}else n.isShow=!1,n.pageList=[];t.hideLoading(),n.isShow=!0,n.pageData.isLoading=!1}))},loadMore:function(){this.pageData.isEnd||(this.pageData.pageIndex+=1,this.getList())},goDetail:function(t){this.$util.toNextRoute("navigateTo","/pages/suggestion/suggestionDetail?SUGGESTION_ID="+t.SUGGESTION_ID)}}),onPullDownRefresh:function(){this.pageData.pageIndex=1,this.pageData.isEnd=!1,t.showLoading({title:"正在加载"}),this.getList(),setTimeout((function(){t.stopPullDownRefresh()}),1e3)},onReachBottom:function(){this.loadMore()},onLoad:function(){this.pageData.isLoading=!0,t.showLoading({title:"正在加载"}),this.getList()},onShow:function(){var e=this;this.isReloading&&(t.showLoading({title:"正在加载"}),e.pageData.pageIndex=1,e.pageData.isEnd=!1,e.getList(),e.shouldReLoadingList(!1))},onUnload:function(){this.$util.addUserBehavior()}};e.default=u}).call(this,n("543d")["default"])},"1dc1":function(t,e,n){"use strict";n.r(e);var a=n("1d79"),i=n.n(a);for(var o in a)"default"!==o&&function(t){n.d(e,t,(function(){return a[t]}))}(o);e["default"]=i.a},"3a84":function(t,e,n){"use strict";n.r(e);var a=n("9965"),i=n("1dc1");for(var o in i)"default"!==o&&function(t){n.d(e,t,(function(){return i[t]}))}(o);n("c78a");var s,r=n("f0c5"),u=Object(r["a"])(i["default"],a["b"],a["c"],!1,null,"fb93da66",null,!1,a["a"],s);e["default"]=u.exports},"92ca":function(t,e,n){},9965:function(t,e,n){"use strict";var a;n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return o})),n.d(e,"a",(function(){return a}));var i=function(){var t=this,e=t.$createElement;t._self._c},o=[]},c78a:function(t,e,n){"use strict";var a=n("92ca"),i=n.n(a);i.a},f4cd:function(t,e,n){"use strict";(function(t){n("40da");a(n("66fd"));var e=a(n("3a84"));function a(t){return t&&t.__esModule?t:{default:t}}t(e.default)}).call(this,n("543d")["createPage"])}},[["f4cd","common/runtime","common/vendor"]]]);