"use strict"; const common_vendor = require("../../../../common/vendor.js"); const config_api = require("../../../../config/api.js"); const store_index = require("../../../../store/index.js"); const _sfc_main = { __name: "select1", setup(__props) { const counterStore = store_index.userStore(); let houseList = common_vendor.ref([]); async function houseTreeFn() { console.log("没有请求吗、"); const { data: res } = await config_api.houseTree(); res.forEach((item) => { houseList.value.push(item.root); }); console.log(res); console.log(houseList.value); } function chooseItem(item) { counterStore.upDateHouse("communityId", item.communityId); counterStore.upDateHouse("communityName", item.communityName); common_vendor.index.navigateTo({ url: "/pages/subPage/authentication/comp/select2" }); } houseTreeFn(); return (_ctx, _cache) => { return { a: common_vendor.f(common_vendor.unref(houseList), (item, index, i0) => { return { a: common_vendor.t(item.communityName), b: index, c: common_vendor.o(($event) => chooseItem(item), index) }; }) }; }; } }; const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-16c8851c"]]); wx.createPage(MiniProgramPage);