(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/index/index"],{"0f00":function(e,t,n){"use strict";n.r(t);var r=n("5fd2"),o=n.n(r);for(var i in r)"default"!==i&&function(e){n.d(t,e,(function(){return r[e]}))}(i);t["default"]=o.a},"5b57":function(e,t,n){"use strict";(function(e){n("7154");r(n("66fd"));var t=r(n("6d53"));function r(e){return e&&e.__esModule?e:{default:e}}wx.__webpack_require_UNI_MP_PLUGIN__=n,e(t.default)}).call(this,n("543d")["createPage"])},"5fd2":function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=a(n("a34a")),o=n("6920"),i=n("c3d8"),u=(n("cf53"),n("26cb"));function a(e){return e&&e.__esModule?e:{default:e}}function c(e,t,n,r,o,i,u){try{var a=e[i](u),c=a.value}catch(s){return void n(s)}a.done?t(c):Promise.resolve(c).then(r,o)}function s(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function u(e){c(i,r,o,u,a,"next",e)}function a(e){c(i,r,o,u,a,"throw",e)}u(void 0)}))}}function f(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function l(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?f(Object(n),!0).forEach((function(t){p(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function p(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var d={data:function(){return{shareShow:!1,pageProportion:0,swiperHeight:0,checkid:0,titleNViewBackground:"",swiperCurrent:0,swiperLength:0,carouselList:[],page:1,limit:5,text:""}},computed:l(l({},(0,u.mapState)(["loginInterceptor"])),(0,u.mapState)("user",["hasLogin","userInfo"])),onLoad:function(t){t.scene&&e.setStorage({key:"spread_code",data:t.scene})},onShow:function(){this.loginInterceptor&&!this.hasLogin&&(0,o.interceptor)(),this.loadData()},onPullDownRefresh:function(){this.loadData()},onShareAppMessage:function(e){var t=getCurrentPages(),n=t[t.length-1],r=n.route,o=(n.options,{title:"水箱计算",path:r,imageUrl:"",success:function(e){e.errMsg},fail:function(){"shareAppMessage:fail cancel"==res.errMsg||res.errMsg}});return o},methods:{openKf:function(){this.$refs.popupkf.open()},cancel:function(){this.$refs.popupkf.close()},navto:function(t){this.hasLogin?e.navigateTo({url:t,fail:function(){e.switchTab({url:t})}}):((0,o.saveUrl)(),(0,o.interceptor)())},swiperChange:function(){},bannerNavToUrl:function(t){e.navigateTo({url:t,fail:function(){e.switchTab({url:t})}})},loadData:function(){var t=this;return s(r.default.mark((function n(){return r.default.wrap((function(n){while(1)switch(n.prev=n.next){case 0:(0,i.loadIndexs)({}).then((function(n){var r=n.data;r.info;t.carouselList=r.banner,t.swiperLength=t.carouselList.length,e.stopPullDownRefresh()})).catch((function(t){e.stopPullDownRefresh()}));case 1:case"end":return n.stop()}}),n)})))()},comfirm:function(t){console.log(t);var n=this.uniCopy(t);!1===n?e.showToast({title:"不支持"}):e.showToast({title:"复制成功",icon:"none"}),this.$refs.popupkf.close()},uniCopy:function(t){e.setClipboardData({data:t,success:function(){return console.log("success"),!0}})}}};t.default=d}).call(this,n("543d")["default"])},6695:function(e,t,n){},"6d53":function(e,t,n){"use strict";n.r(t);var r=n("72a0"),o=n("0f00");for(var i in o)"default"!==i&&function(e){n.d(t,e,(function(){return o[e]}))}(i);n("d6e9");var u,a=n("f0c5"),c=Object(a["a"])(o["default"],r["b"],r["c"],!1,null,null,null,!1,r["a"],u);t["default"]=c.exports},"72a0":function(e,t,n){"use strict";n.d(t,"b",(function(){return o})),n.d(t,"c",(function(){return i})),n.d(t,"a",(function(){return r}));var r={uniPopup:function(){return n.e("components/uni-popup/uni-popup").then(n.bind(null,"86bb"))}},o=function(){var e=this,t=e.$createElement;e._self._c},i=[]},d6e9:function(e,t,n){"use strict";var r=n("6695"),o=n.n(r);o.a}},[["5b57","common/runtime","common/vendor"]]]);