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

58 lines
2.1 KiB
JavaScript
Raw Normal View History

2025-05-12 21:23:37 +08:00
"use strict";
const common_vendor = require("../../common/vendor.js");
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-12 21:23:37 +08:00
const _sfc_main = {
data() {
return {};
},
onLoad() {
2025-05-13 22:16:09 +08:00
this.requestSomething();
2025-05-12 21:23:37 +08:00
},
methods: {
2025-05-13 22:16:09 +08:00
requestSomething() {
common_vendor.wx$1.request({
url: "http://192.168.0.218:8086/user/login",
// 请求的 URL
method: "POST",
// 请求方式
success: (res) => {
common_vendor.index.__f__("log", "at pages/Home/Home.vue:37", "请求成功", res.data);
},
fail: (err) => {
common_vendor.index.__f__("error", "at pages/Home/Home.vue:40", "请求失败", err);
}
});
}
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 {
a: common_assets._imports_0
};
}
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