2 lines
5.4 KiB
JavaScript
2 lines
5.4 KiB
JavaScript
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/home/home"],{160:function(e,n,t){"use strict";(function(e,n){var o=t(4);t(26);o(t(25));var i=o(t(161));e.__webpack_require_UNI_MP_PLUGIN__=t,n(i.default)}).call(this,t(1)["default"],t(2)["createPage"])},161:function(e,n,t){"use strict";t.r(n);var o=t(162),i=t(164);for(var r in i)["default"].indexOf(r)<0&&function(e){t.d(n,e,(function(){return i[e]}))}(r);t(167);var s,u=t(32),a=Object(u["default"])(i["default"],o["render"],o["staticRenderFns"],!1,null,"92bb8f34",null,!1,o["components"],s);a.options.__file="pages/home/home.vue",n["default"]=a.exports},162:function(e,n,t){"use strict";t.r(n);var o=t(163);t.d(n,"render",(function(){return o["render"]})),t.d(n,"staticRenderFns",(function(){return o["staticRenderFns"]})),t.d(n,"recyclableRender",(function(){return o["recyclableRender"]})),t.d(n,"components",(function(){return o["components"]}))},163:function(e,n,t){"use strict";var o;t.r(n),t.d(n,"render",(function(){return i})),t.d(n,"staticRenderFns",(function(){return s})),t.d(n,"recyclableRender",(function(){return r})),t.d(n,"components",(function(){return o}));try{o={uNavbar:function(){return Promise.all([t.e("common/vendor"),t.e("uni_modules/uview-ui/components/u-navbar/u-navbar")]).then(t.bind(null,313))},uSearch:function(){return Promise.all([t.e("common/vendor"),t.e("uni_modules/uview-ui/components/u-search/u-search")]).then(t.bind(null,321))},uSticky:function(){return Promise.all([t.e("common/vendor"),t.e("uni_modules/uview-ui/components/u-sticky/u-sticky")]).then(t.bind(null,329))},uTabs:function(){return Promise.all([t.e("common/vendor"),t.e("uni_modules/uview-ui/components/u-tabs/u-tabs")]).then(t.bind(null,337))},uLoadmore:function(){return Promise.all([t.e("common/vendor"),t.e("uni_modules/uview-ui/components/u-loadmore/u-loadmore")]).then(t.bind(null,345))},uEmpty:function(){return Promise.all([t.e("common/vendor"),t.e("uni_modules/uview-ui/components/u-empty/u-empty")]).then(t.bind(null,353))},uIcon:function(){return Promise.all([t.e("common/vendor"),t.e("uni_modules/uview-ui/components/u-icon/u-icon")]).then(t.bind(null,361))}}}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 i=function(){var e=this,n=e.$createElement,t=(e._self._c,e.__map(e.swiperList,(function(n,t){var o=e.__get_orig(n),i=n.list.length;return{$orig:o,g0:i}})));e.$mp.data=Object.assign({},{$root:{l0:t}})},r=!1,s=[];i._withStripped=!0},164:function(e,n,t){"use strict";t.r(n);var o=t(165),i=t.n(o);for(var r in o)["default"].indexOf(r)<0&&function(e){t.d(n,e,(function(){return o[e]}))}(r);n["default"]=i.a},165:function(e,n,t){"use strict";(function(e){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o=t(166),i=function(){t.e("pages/home/cpns/info-list").then(function(){return resolve(t(370))}.bind(null,t)).catch(t.oe)},r={components:{InfoList:i},data:function(){return{scrollTops:[0,0,0,0,0,0],scrollTop:[0,0,0,0,0,0],loadStatus:["loadmore","loadmore","loadmore","loadmore","loadmore","loadmore"],tabIndex:0,tablist:[{name:"关注"},{name:"谷雨"},{name:"芒种"},{name:"小满"},{name:"霜降"},{name:"寒露"}],swiperIndex:0,swiperList:o.newsList}},onNavigationBarSearchInputClicked:function(){this.handleSearch()},onNavigationBarButtonTap:function(e){switch(e.index){case 1:this.handlePublish();break}},methods:{handlePublish:function(){this.$u.route("/pages/home/release")},handleSearch:function(){this.$u.route("/pages/home/search",{type:"info"})},changeTab:function(e){this.tabIndex=e.index,this.swiperIndex=e.index},animationfinish:function(e){this.tabIndex=e.detail.current,this.swiperIndex=e.detail.current},reachBottom:function(){var e=this;"loadmore"===this.loadStatus[this.tabIndex]&&(this.loadStatus.splice(this.tabIndex,1,"loading"),setTimeout((function(){e.getList(e.tabIndex)}),1e3))},getList:function(e){for(var n=0;n<5;n++){var t=this.$u.random(0,this.swiperList[e].list.length-1),o=this.swiperList[e].list[t];this.swiperList[e].list.push(o)}this.loadStatus.splice(this.tabIndex,1,"nomore")},scroll:function(e){var n=this.tabIndex;this.scrollTop.splice(n,1,e.detail.scrollTop)},goTop:function(){var e=this.tabIndex;this.scrollTops.splice(e,1,this.scrollTop[e]),this.$nextTick((function(){this.scrollTops.splice(e,1,0),this.scrollTop.splice(e,1,0)}))},handleFollow:function(n){this.swiperList[this.swiperIndex].list[n.index].isFollow=n.value;var t=n.value?"关注成功":"取消成功";e.showToast({title:t,icon:"none"})},handleMark:function(n){var t=this.swiperList[this.swiperIndex].list[n.index].infoNum;switch(n.value){case"smile":if(1==t.index)return;2==t.index&&t.cryNum--,t.index=1,t.smileNum++;break;case"cry":if(2==t.index)return;1==t.index&&t.smileNum--,t.index=2,t.cryNum++;break}var o="smile"===n.value?"谢谢表扬":"继续加油";e.showToast({title:o,icon:"none"})}}};n.default=r}).call(this,t(2)["default"])},167:function(e,n,t){"use strict";t.r(n);var o=t(168),i=t.n(o);for(var r in o)["default"].indexOf(r)<0&&function(e){t.d(n,e,(function(){return o[e]}))}(r);n["default"]=i.a},168:function(e,n,t){}},[[160,"common/runtime","common/vendor"]]]);
|
||
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/home/home.js.map
|