mirror of
https://github.com/crmeb/CRMEB.git
synced 2026-02-19 16:13:50 +00:00
1 line
2.8 KiB
JavaScript
1 line
2.8 KiB
JavaScript
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/index/index"],{3533:function(n,e,t){"use strict";t.r(e);var i=t("8bbb"),o=t("a268");for(var a in o)"default"!==a&&function(n){t.d(e,n,(function(){return o[n]}))}(a);var r,s=t("f0c5"),u=Object(s["a"])(o["default"],i["b"],i["c"],!1,null,null,null,!1,i["a"],r);e["default"]=u.exports},"428e":function(n,e,t){"use strict";(function(n){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;o(t("ebdf"));var i=t("a9a5");function o(n){return n&&n.__esModule?n:{default:n}}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:n.getStorageSync("is_diy"),shareInfo:{},loading:!1}},components:{diy:a,visualization:r},onLoad:function(){var e=this;n.hideTabBar(),n.$on("is_diy",(function(n){e.isDiy=n})),this.setOpenShare()},onShow:function(){this.getVersion(0)},onHide:function(){},methods:{getVersion:function(e){var t=this;(0,i.getVersion)(e).then((function(e){t.version=e.data.version,t.isDiy=e.data.is_diy,t.loading=!0,n.setStorageSync("is_diy",e.data.is_diy),n.getStorageSync("DIY_VERSION")&&e.data.version==n.getStorageSync("DIY_VERSION")||(n.getStorageSync("DIY_VERSION")&&(n.setStorageSync("DIY_VERSION",e.data.version),t.isDiy?t.$refs.diy.reconnect():t.$refs.vis.reconnect()),n.setStorageSync("DIY_VERSION",e.data.version))})).catch((function(n){t.loading=!0}))},setOpenShare:function(){var n=this;(0,i.getShare)().then((function(e){var t=e.data;n.shareInfo=t}))}},onReachBottom:function(){this.isDiy&&this.$refs.diy.onsollBotton()},onPageScroll:function(e){n.$emit("scroll")},onShareAppMessage:function(n){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}}});e.default=s}).call(this,t("543d")["default"])},4974:function(n,e,t){"use strict";(function(n){t("248d");i(t("66fd"));var e=i(t("3533"));function i(n){return n&&n.__esModule?n:{default:n}}wx.__webpack_require_UNI_MP_PLUGIN__=t,n(e.default)}).call(this,t("543d")["createPage"])},"8bbb":function(n,e,t){"use strict";var i;t.d(e,"b",(function(){return o})),t.d(e,"c",(function(){return a})),t.d(e,"a",(function(){return i}));var o=function(){var n=this,e=n.$createElement;n._self._c},a=[]},a268:function(n,e,t){"use strict";t.r(e);var i=t("428e"),o=t.n(i);for(var a in i)"default"!==a&&function(n){t.d(e,n,(function(){return i[n]}))}(a);e["default"]=o.a}},[["4974","common/runtime","common/vendor"]]]); |