You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
"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: "select2", setup(__props) { const counterStore = store_index.userStore(); let houseList = common_vendor.ref([]); async function houseTreeFn() { console.log("没有请求吗、"); const { data: res } = await config_api.houseTree(); houseList.value = res[0].houseTypeNode; console.log(res); console.log(houseList.value); } function chooseItem(item) { counterStore.upDateHouse("houseType", item.houseTypeId); counterStore.upDateHouse("houseTypeName", item.houseTypeName); common_vendor.index.navigateTo({ url: "/pages/subPage/authentication/comp/select3" }); } houseTreeFn(); return (_ctx, _cache) => { return { a: common_vendor.f(common_vendor.unref(houseList), (item, index, i0) => { return { a: common_vendor.t(item.houseTypeName), b: index, c: common_vendor.o(($event) => chooseItem(item), index) }; }) }; }; } }; const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-ff462848"]]); wx.createPage(MiniProgramPage);
|