mirror of
https://github.com/crmeb/CRMEB.git
synced 2026-02-21 17:10:27 +00:00
1 line
2.8 KiB
JavaScript
1 line
2.8 KiB
JavaScript
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/index/index"],{3533:function(e,n,t){"use strict";t.r(n);var i=t("a631"),o=t("a268");for(var a in o)"default"!==a&&function(e){t.d(n,e,(function(){return o[e]}))}(a);var r,s=t("f0c5"),u=Object(s["a"])(o["default"],i["b"],i["c"],!1,null,null,null,!1,i["a"],r);n["default"]=u.exports},"428e":function(e,n,t){"use strict";(function(e){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;o(t("ebdf"));var i=t("a9a5");function o(e){return e&&e.__esModule?e:{default:e}}var a=function(){Promise.all([t.e("common/vendor"),t.e("pages/index/diy/index")]).then(function(){return resolve(t("a79f"))}.bind(null,t)).catch(t.oe)},r=function(){Promise.all([t.e("common/vendor"),t.e("pages/index/visualization/index")]).then(function(){return resolve(t("b31a"))}.bind(null,t)).catch(t.oe)},s=(getApp(),{data:function(){return{isDiy:e.getStorageSync("is_diy"),shareInfo:{},loading:!1}},components:{diy:a,visualization:r},onLoad:function(){var n=this;e.hideTabBar(),e.$on("is_diy",(function(e){n.isDiy=e})),this.setOpenShare()},onShow:function(){this.getVersion(0)},onHide:function(){},methods:{getVersion:function(n){var t=this;e.$emit("uploadFooter"),(0,i.getVersion)(n).then((function(n){t.version=n.data.version,t.isDiy=n.data.is_diy,t.loading=!0,e.setStorageSync("is_diy",n.data.is_diy),e.getStorageSync("DIY_VERSION")&&n.data.version==e.getStorageSync("DIY_VERSION")||(e.getStorageSync("DIY_VERSION")&&(e.setStorageSync("DIY_VERSION",n.data.version),t.isDiy?t.$refs.diy.reconnect():t.$refs.vis.reconnect()),e.setStorageSync("DIY_VERSION",n.data.version))})).catch((function(e){t.loading=!0}))},setOpenShare:function(){var e=this;(0,i.getShare)().then((function(n){var t=n.data;e.shareInfo=t}))}},onReachBottom:function(){this.isDiy&&this.$refs.diy.onsollBotton()},onPageScroll:function(n){e.$emit("scroll")},onShareAppMessage:function(e){return{title:this.shareInfo.title,path:"/pages/index/index?spid="+this.$store.state.app.uid||!1,imageUrl:this.shareInfo.img}},onShareTimeline:function(){return{title:this.shareInfo.title,query:{spid:this.$store.state.app.uid||0},imageUrl:this.shareInfo.img}}});n.default=s}).call(this,t("543d")["default"])},4974:function(e,n,t){"use strict";(function(e){t("248d");i(t("66fd"));var n=i(t("3533"));function i(e){return e&&e.__esModule?e:{default:e}}wx.__webpack_require_UNI_MP_PLUGIN__=t,e(n.default)}).call(this,t("543d")["createPage"])},a268:function(e,n,t){"use strict";t.r(n);var i=t("428e"),o=t.n(i);for(var a in i)"default"!==a&&function(e){t.d(n,e,(function(){return i[e]}))}(a);n["default"]=o.a},a631:function(e,n,t){"use strict";var i;t.d(n,"b",(function(){return o})),t.d(n,"c",(function(){return a})),t.d(n,"a",(function(){return i}));var o=function(){var e=this,n=e.$createElement;e._self._c},a=[]}},[["4974","common/runtime","common/vendor"]]]); |