123456789101112131415161718192021222324252627282930313233343536373839404142434445464748 |
- "use strict";
- const common_vendor = require("../../common/vendor.js");
- const api_user = require("../../api/user.js");
- if (!Math) {
- listContent();
- }
- const listContent = () => "../../components/listContent.js";
- const _sfc_main = {
- __name: "home",
- setup(__props) {
- common_vendor.onMounted(() => {
- getMain();
- });
- let domesticList = common_vendor.ref({});
- async function getMain() {
- common_vendor.index.__f__("log", "at pages/home/home.vue:19", "走进来");
- let newList = [getList1(), getList2(), getList3()];
- common_vendor.index.__f__("log", "at pages/home/home.vue:21", newList, "列表");
- let [data1, data2, data3] = await Promise.allSettled(newList);
- domesticList.value = data1.value;
- common_vendor.index.__f__("log", "at pages/home/home.vue:24", domesticList.value, "123");
- }
- async function getList1() {
- return api_user.Domestic();
- }
- async function getList2() {
- return api_user.Variety();
- }
- async function getList3() {
- return api_user.American();
- }
- return (_ctx, _cache) => {
- return {
- a: common_vendor.p({
- main: common_vendor.unref(domesticList)
- }),
- b: common_vendor.p({
- main: common_vendor.unref(domesticList)
- }),
- c: common_vendor.p({
- main: common_vendor.unref(domesticList)
- })
- };
- };
- }
- };
- wx.createPage(_sfc_main);
- //# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/home/home.js.map
|