12345678910111213141516171819202122232425262728293031323334353637383940 |
- "use strict";
- const common_vendor = require("../../common/vendor.js");
- const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
- __name: "index",
- setup(__props) {
- var _a;
- const $api = (_a = common_vendor.getCurrentInstance()) == null ? void 0 : _a.appContext.config.globalProperties.$api;
- const openid = common_vendor.computed(() => {
- return common_vendor.index.getStorageSync("openid");
- });
- const config = common_vendor.ref({});
- common_vendor.onShow(() => {
- common_vendor.index.hideHomeButton();
- });
- const initUser = async () => {
- const res = await $api(`/system/matchUser/find`, "GET", {
- openid: openid.value
- });
- if (res.code === 200) {
- if (res.data)
- console.log(res.data);
- } else {
- common_vendor.index.showToast({
- title: res.msg || "",
- icon: "error"
- });
- }
- };
- const searchConfig = async () => {
- config.value = common_vendor.index.getStorageSync("config");
- };
- initUser();
- searchConfig();
- return (_ctx, _cache) => {
- return {};
- };
- }
- });
- const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-4978fed5"], ["__file", "D:/project/足球比赛/match_applet/pages/home/index.vue"]]);
- wx.createPage(MiniProgramPage);
|