72 lines
2.5 KiB
JavaScript
72 lines
2.5 KiB
JavaScript
"use strict";
|
|
const common_vendor = require("../../common/vendor.js");
|
|
const components_TUILogin = require("../../components/TUILogin.js");
|
|
const common_assets = require("../../common/assets.js");
|
|
const topNavigation = () => "../../components/topNavigation/topNavigation.js";
|
|
const Advertisement = () => "../../components/Advertisement/Advertisement.js";
|
|
const contentList = () => "../../components/contentList/contentList.js";
|
|
const tabBar = () => "../../components/tabBar/tabBar.js";
|
|
const _sfc_main = {
|
|
inject: ["$global"],
|
|
data() {
|
|
return {
|
|
info: {},
|
|
myuserSig: "",
|
|
chatInfo: {}
|
|
};
|
|
},
|
|
onLoad() {
|
|
common_vendor.index.getStorage({
|
|
key: "userinfo",
|
|
success: (res) => {
|
|
this.info = res.data;
|
|
common_vendor.index.getStorage({
|
|
key: "myuserSig",
|
|
success: (res2) => {
|
|
this.myuserSig = res2.data;
|
|
common_vendor.index.getStorage({
|
|
key: "chatInfo",
|
|
success: (res3) => {
|
|
this.chatInfo = res3.data;
|
|
components_TUILogin.TUIlogin(this.chatInfo.appId, this.info.id, this.myuserSig.userSig);
|
|
}
|
|
});
|
|
}
|
|
});
|
|
}
|
|
});
|
|
},
|
|
methods: {
|
|
goAdvertisement() {
|
|
common_vendor.index.navigateTo({ url: "/pages/pkDetail/pkDetail" });
|
|
}
|
|
},
|
|
components: {
|
|
topNavigation,
|
|
Advertisement,
|
|
contentList,
|
|
tabBar
|
|
}
|
|
};
|
|
if (!Array) {
|
|
const _component_top_navigation = common_vendor.resolveComponent("top-navigation");
|
|
const _component_advertisement = common_vendor.resolveComponent("advertisement");
|
|
const _easycom_contentList2 = common_vendor.resolveComponent("contentList");
|
|
const _easycom_tabBar2 = common_vendor.resolveComponent("tabBar");
|
|
(_component_top_navigation + _component_advertisement + _easycom_contentList2 + _easycom_tabBar2)();
|
|
}
|
|
const _easycom_contentList = () => "../../components/contentList/contentList.js";
|
|
const _easycom_tabBar = () => "../../components/tabBar/tabBar.js";
|
|
if (!Math) {
|
|
(_easycom_contentList + _easycom_tabBar)();
|
|
}
|
|
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
return {
|
|
a: common_assets._imports_0$1,
|
|
b: common_vendor.o$1((...args) => $options.goAdvertisement && $options.goAdvertisement(...args))
|
|
};
|
|
}
|
|
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-7ffebbf4"]]);
|
|
wx.createPage(MiniProgramPage);
|
|
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/Home/Home.js.map
|