(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/newsSquare/newsSquare"],{"367a":function(t,n,e){"use strict";e.r(n);var r=e("ae3e"),i=e.n(r);for(var o in r)"default"!==o&&function(t){e.d(n,t,(function(){return r[t]}))}(o);n["default"]=i.a},"3cfd":function(t,n,e){"use strict";e.r(n);var r=e("b7ae"),i=e("367a");for(var o in i)"default"!==o&&function(t){e.d(n,t,(function(){return i[t]}))}(o);e("59a0");var s,a=e("f0c5"),u=Object(a["a"])(i["default"],r["b"],r["c"],!1,null,"6f9180bc",null,!1,r["a"],s);n["default"]=u.exports},"59a0":function(t,n,e){"use strict";var r=e("fb46"),i=e.n(r);i.a},ae3e:function(t,n,e){"use strict";(function(t){function e(t){return s(t)||o(t)||i(t)||r()}function r(){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 i(t,n){if(t){if("string"===typeof t)return a(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)?a(t,n):void 0}}function o(t){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}function s(t){if(Array.isArray(t))return a(t)}function a(t,n){(null==n||n>t.length)&&(n=t.length);for(var e=0,r=new Array(n);e<n;e++)r[e]=t[e];return r}Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var u={data:function(){return{refresherStatus:0,swiperHeight:0,tabList:["发布","热线","嗨享"],current:0,searchModal:!1,historySearch:[],title:"",keyword:"",isLogin:!1}},onShow:function(){var n=null;try{n=JSON.parse(t.getStorageSync("userInfo"))}catch(e){}n&&(this.isLogin=!0)},methods:{toPublishPage:function(){t.navigateTo({url:"../publishNews/publishNews"})},toMyNews:function(){t.navigateTo({url:"/pages/myNews/myNews"})},clearHistory:function(){t.removeStorageSync("historySearch"),this.historySearch=[]},toLogin:function(){t.navigateTo({url:"/pages/Login/Login?choose=1"})},inputConfirm:function(n){var r=this;this.title=n;var i=JSON.parse(JSON.stringify(this.historySearch));i.length>=8&&i.pop(1),i.unshift(n),i=e(new Set(i)),this.historySearch=i,this.$nextTick((function(){r.onRefresh()})),t.setStorageSync("historySearch",JSON.stringify(this.historySearch)),this.closeSearchModal()},searchKey:function(t){var n=this;this.title=t,this.keyword=t,this.$nextTick((function(){n.onRefresh()})),this.closeSearchModal()},inputFocus:function(){try{var n=t.getStorageSync("historySearch");this.historySearch=n?JSON.parse(n):[]}catch(e){this.historySearch=[]}this.searchModal=!0},closeSearchModal:function(){this.searchModal=!1},tabsChange:function(t){this._setCurrent(t)},onRefresh:function(){var t=this;this.$refs.swiperList[this.current].reload((function(){t.$refs.paging.complete([])}))},scrolltolower:function(){this.$refs.swiperList[this.current].doLoadMore()},animationfinish:function(t){var n=t.detail.current;this._setCurrent(n)},heightChanged:function(n){0===n&&(n=t.getSystemInfoSync().windowHeight-t.upx2px(80)),this.swiperHeight=n},_setCurrent:function(t){t!==this.current&&this.$refs.swiperList[this.current].clear(),this.current=t}}};n.default=u}).call(this,e("543d")["default"])},b7ae:function(t,n,e){"use strict";e.d(n,"b",(function(){return i})),e.d(n,"c",(function(){return o})),e.d(n,"a",(function(){return r}));var r={zPaging:function(){return Promise.all([e.e("common/vendor"),e.e("uni_modules/z-paging/components/z-paging/z-paging")]).then(e.bind(null,"03e8"))},uniEasyinput:function(){return e.e("uni_modules/uni-easyinput/components/uni-easyinput/uni-easyinput").then(e.bind(null,"7394"))},uniNoticeBar:function(){return e.e("uni_modules/uni-notice-bar/components/uni-notice-bar/uni-notice-bar").then(e.bind(null,"e4fd"))},tabsView:function(){return e.e("components/tabs-view/tabs-view").then(e.bind(null,"8f2f"))},newsList:function(){return Promise.all([e.e("common/vendor"),e.e("components/news-list/news-list")]).then(e.bind(null,"ded7"))}},i=function(){var t=this,n=t.$createElement;t._self._c},o=[]},e049:function(t,n,e){"use strict";(function(t){e("eea4");r(e("66fd"));var n=r(e("3cfd"));function r(t){return t&&t.__esModule?t:{default:t}}wx.__webpack_require_UNI_MP_PLUGIN__=e,t(n.default)}).call(this,e("543d")["createPage"])},fb46:function(t,n,e){}},[["e049","common/runtime","common/vendor"]]]);