Files
tk-mini-program/unpackage/dist/dev/mp-weixin/pages/Home/Home.js

75 lines
2.6 KiB
JavaScript
Raw Normal View History

2025-05-12 21:23:37 +08:00
"use strict";
const common_vendor = require("../../common/vendor.js");
2025-05-27 21:05:01 +08:00
const components_TUILogin = require("../../components/TUILogin.js");
2025-05-30 22:04:45 +08:00
const stores_counter = require("../../stores/counter.js");
2025-05-12 21:23:37 +08:00
const common_assets = require("../../common/assets.js");
const topNavigation = () => "../../components/topNavigation/topNavigation.js";
const Advertisement = () => "../../components/Advertisement/Advertisement.js";
2025-05-12 22:19:21 +08:00
const contentList = () => "../../components/contentList/contentList.js";
const tabBar = () => "../../components/tabBar/tabBar.js";
2025-05-30 22:04:45 +08:00
const counter = stores_counter.useCounterStore();
2025-05-12 21:23:37 +08:00
const _sfc_main = {
2025-05-19 18:34:04 +08:00
inject: ["$global"],
2025-05-12 21:23:37 +08:00
data() {
2025-05-27 21:05:01 +08:00
return {
info: {},
myuserSig: "",
chatInfo: {}
};
2025-05-12 21:23:37 +08:00
},
onLoad() {
2025-05-27 21:05:01 +08:00
common_vendor.index.getStorage({
key: "userinfo",
success: (res) => {
this.info = res.data;
2025-05-30 22:04:45 +08:00
counter.$patch({ myitem: this.info });
2025-05-27 21:05:01 +08:00
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);
}
});
}
});
}
});
2025-05-12 21:23:37 +08:00
},
methods: {
2025-05-15 22:24:39 +08:00
goAdvertisement() {
2025-05-22 22:05:55 +08:00
common_vendor.index.navigateTo({ url: "/pages/pkDetail/pkDetail" });
2025-05-15 22:24:39 +08:00
}
2025-05-12 21:23:37 +08:00
},
components: {
topNavigation,
2025-05-12 22:19:21 +08:00
Advertisement,
contentList,
tabBar
2025-05-12 21:23:37 +08:00
}
};
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");
2025-05-12 22:19:21 +08:00
const _easycom_tabBar2 = common_vendor.resolveComponent("tabBar");
(_component_top_navigation + _component_advertisement + _easycom_contentList2 + _easycom_tabBar2)();
2025-05-12 21:23:37 +08:00
}
const _easycom_contentList = () => "../../components/contentList/contentList.js";
2025-05-12 22:19:21 +08:00
const _easycom_tabBar = () => "../../components/tabBar/tabBar.js";
2025-05-12 21:23:37 +08:00
if (!Math) {
2025-05-12 22:19:21 +08:00
(_easycom_contentList + _easycom_tabBar)();
2025-05-12 21:23:37 +08:00
}
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
return {
2025-05-15 22:24:39 +08:00
a: common_assets._imports_0$1,
b: common_vendor.o$1((...args) => $options.goAdvertisement && $options.goAdvertisement(...args))
2025-05-12 21:23:37 +08:00
};
}
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