newsSquare.js 4.0 KB

1
  1. (global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/newsSquare/newsSquare"],{"02f9":function(t,e,n){"use strict";var r=n("86ec"),i=n.n(r);i.a},"367a":function(t,e,n){"use strict";n.r(e);var r=n("ae3e"),i=n.n(r);for(var o in r)"default"!==o&&function(t){n.d(e,t,(function(){return r[t]}))}(o);e["default"]=i.a},"39dd":function(t,e,n){"use strict";n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return o})),n.d(e,"a",(function(){return r}));var r={zPaging:function(){return Promise.all([n.e("common/vendor"),n.e("uni_modules/z-paging/components/z-paging/z-paging")]).then(n.bind(null,"03e8"))},uniEasyinput:function(){return n.e("uni_modules/uni-easyinput/components/uni-easyinput/uni-easyinput").then(n.bind(null,"7394"))},tabsView:function(){return n.e("components/tabs-view/tabs-view").then(n.bind(null,"8f2f"))},newsList:function(){return Promise.all([n.e("common/vendor"),n.e("components/news-list/news-list")]).then(n.bind(null,"ded7"))}},i=function(){var t=this,e=t.$createElement;t._self._c},o=[]},"3cfd":function(t,e,n){"use strict";n.r(e);var r=n("39dd"),i=n("367a");for(var o in i)"default"!==o&&function(t){n.d(e,t,(function(){return i[t]}))}(o);n("02f9");var s,a=n("f0c5"),u=Object(a["a"])(i["default"],r["b"],r["c"],!1,null,"861d9512",null,!1,r["a"],s);e["default"]=u.exports},"86ec":function(t,e,n){},ae3e:function(t,e,n){"use strict";(function(t){function n(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,e){if(t){if("string"===typeof t)return a(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?a(t,e):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,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var u={data:function(){return{refresherStatus:0,swiperHeight:0,tabList:["发布","热线","嗨享"],current:0,searchModal:!1,historySearch:[],title:"",keyword:""}},methods:{toPublishPage:function(){t.navigateTo({url:"../publishNews/publishNews"})},toMyNews:function(){t.navigateTo({url:"/pages/myNews/myNews"})},clearHistory:function(){t.removeStorageSync("historySearch"),this.historySearch=[]},inputConfirm:function(e){var r=this;this.title=e;var i=JSON.parse(JSON.stringify(this.historySearch));i.length>=8&&i.pop(1),i.unshift(e),i=n(new Set(i)),this.historySearch=i,this.$nextTick((function(){r.onRefresh()})),t.setStorageSync("historySearch",JSON.stringify(this.historySearch)),this.closeSearchModal()},searchKey:function(t){var e=this;this.title=t,this.keyword=t,this.$nextTick((function(){e.onRefresh()})),this.closeSearchModal()},inputFocus:function(){try{var e=t.getStorageSync("historySearch");this.historySearch=e?JSON.parse(e):[]}catch(n){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 e=t.detail.current;this._setCurrent(e)},heightChanged:function(e){0===e&&(e=t.getSystemInfoSync().windowHeight-t.upx2px(80)),this.swiperHeight=e},_setCurrent:function(t){t!==this.current&&this.$refs.swiperList[this.current].clear(),this.current=t}}};e.default=u}).call(this,n("543d")["default"])},e049:function(t,e,n){"use strict";(function(t){n("eea4");r(n("66fd"));var e=r(n("3cfd"));function r(t){return t&&t.__esModule?t:{default:t}}wx.__webpack_require_UNI_MP_PLUGIN__=n,t(e.default)}).call(this,n("543d")["createPage"])}},[["e049","common/runtime","common/vendor"]]]);