"use strict"; const common_vendor = require("../../common/vendor.js"); const api_shop = require("../../api/shop.js"); const stores_app = require("../../stores/app.js"); const utils_util = require("../../utils/util.js"); require("../../utils/client.js"); require("../../enums/appEnums.js"); require("../../utils/request/index.js"); require("../../utils/request/http.js"); require("../../enums/requestEnums.js"); require("../../utils/request/cancel.js"); require("../../stores/user.js"); require("../../api/user.js"); require("../../enums/constantEnums.js"); require("../../hooks/useShareMessage.js"); require("../../router/index.js"); require("../../utils/cache.js"); require("../../api/task.js"); require("../../stores/navigationBarTitle.js"); require("../../mixins/share.js"); require("../../utils/auth.js"); require("../../config/index.js"); require("../../api/app.js"); if (!Array) { const _easycom_u_image2 = common_vendor.resolveComponent("u-image"); const _easycom_tabbar2 = common_vendor.resolveComponent("tabbar"); (_easycom_u_image2 + _easycom_tabbar2)(); } const _easycom_u_image = () => "../../uni_modules/vk-uview-ui/components/u-image/u-image.js"; const _easycom_tabbar = () => "../../components/tabbar/tabbar.js"; if (!Math) { (_easycom_u_image + _easycom_tabbar)(); } const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({ __name: "app", setup(__props) { const { getImageUrl, getConfig } = stores_app.useAppStore(); const decorate = common_vendor.ref([]); const getData = async () => { const data = await api_shop.getDecorate({ id: 7 }); decorate.value = JSON.parse(data.data); }; const showList = common_vendor.computed(() => { var _a; return ((_a = decorate == null ? void 0 : decorate.value[0]) == null ? void 0 : _a.content.data.filter( (item) => item.is_show == 1 )) || []; }); getData(); const nativeTabList = [ "/pages/index/index", "/pages/ai_creation/ai_creation", "/pages/skills/skills", "/pages/app/app", "/pages/user/user" ]; const onJump = (row) => { const navigateType = nativeTabList.includes(row.link.path) ? "switchTab" : "navigateTo"; utils_util.navigateTo(row.link, false, navigateType); }; common_vendor.onShow(() => { getConfig(); }); common_vendor.onPullDownRefresh(async () => { await getData(); common_vendor.index.stopPullDownRefresh(); }); return (_ctx, _cache) => { return { a: _ctx.$theme.navColor, b: _ctx.$theme.navBgColor, c: _ctx.$theme.pageStyle, d: common_vendor.f(common_vendor.unref(showList), (item, index, i0) => { return { a: "080e22fa-0-" + i0, b: common_vendor.p({ src: common_vendor.unref(getImageUrl)(item.image), width: "300", height: "300", ["border-radius"]: "16" }), c: common_vendor.t(item.title), d: common_vendor.t(item.desc), e: index, f: common_vendor.o(($event) => onJump(item), index) }; }) }; }; } }); const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-080e22fa"], ["__file", "D:/uniapp/uniapp/src/pages/app/app.vue"]]); wx.createPage(MiniProgramPage);