"use strict"; const common_vendor = require("../../common/vendor.js"); const utils_file = require("../../utils/file.js"); const store_user = require("../../store/user.js"); const utils_utils = require("../../utils/utils.js"); if (!Math) { (LoginModal + TabBar)(); } const TabBar = () => "../../components/TabBar.js"; const LoginModal = () => "../components/LoginModal.js"; const _sfc_main = { __name: "index", setup(__props) { const userStore = store_user.useUserStore(); const showLoginModal = common_vendor.ref(false); const handleLoginClick = () => { if (!userStore.getToken) { showLoginModal.value = true; } }; const handleLoginSuccess = (res) => { common_vendor.index.__f__("log", "at pages/personal/index.vue:103", "登录成功:", res); }; const handleLoginCancel = () => { common_vendor.index.__f__("log", "at pages/personal/index.vue:109", "用户取消登录"); }; return (_ctx, _cache) => { var _a; return { a: common_vendor.unref(utils_file.getFileUrl)("img/personal/bg.png"), b: common_vendor.unref(utils_file.getFileUrl)("img/personal/uBg.png"), c: common_vendor.unref(utils_file.getFileUrl)("img/personal/userDemo.png"), d: common_vendor.t(common_vendor.unref(userStore).getToken ? ((_a = common_vendor.unref(userStore).getUserInfo) == null ? void 0 : _a.nickname) || "用户" : "立即登录"), e: common_vendor.o(handleLoginClick), f: common_vendor.unref(utils_file.getFileUrl)("img/personal/wszl.png"), g: common_vendor.unref(utils_file.getFileUrl)("img/personal/right.png"), h: common_vendor.o(($event) => common_vendor.unref(utils_utils.go)("/pages/personal/userInfo")), i: common_vendor.unref(utils_file.getFileUrl)("img/personal/wddd.png"), j: common_vendor.unref(utils_file.getFileUrl)("img/personal/right.png"), k: common_vendor.o(($event) => common_vendor.unref(utils_utils.go)("/pages/orderInfo/index")), l: common_vendor.unref(utils_file.getFileUrl)("img/personal/wdqb.png"), m: common_vendor.unref(utils_file.getFileUrl)("img/personal/right.png"), n: common_vendor.unref(utils_file.getFileUrl)("img/personal/yhxy.png"), o: common_vendor.unref(utils_file.getFileUrl)("img/personal/right.png"), p: common_vendor.unref(utils_file.getFileUrl)("img/personal/ysxy.png"), q: common_vendor.unref(utils_file.getFileUrl)("img/personal/right.png"), r: common_vendor.o(handleLoginSuccess), s: common_vendor.o(handleLoginCancel), t: common_vendor.o(($event) => showLoginModal.value = $event), v: common_vendor.p({ open: showLoginModal.value }) }; }; } }; const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-3327436b"]]); wx.createPage(MiniProgramPage); //# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/personal/index.js.map