"use strict"; const common_vendor = require("../../common/vendor.js"); const _sfc_main = { name: "ProfilePage", data() { return { userInfo: { name: "张珊珊", phone: "138****8888", avatar: "张" }, stats: { leaseCount: 2, totalRent: "¥200.20", leaseDays: 365 } }; }, methods: { goToMyLeases() { common_vendor.index.showToast({ title: "我的租赁", icon: "none" }); }, goToPayments() { common_vendor.index.showToast({ title: "支付记录", icon: "none" }); }, goToAddress() { common_vendor.index.showToast({ title: "收货地址", icon: "none" }); }, goToSettings() { common_vendor.index.showToast({ title: "设置", icon: "none" }); }, goToHelp() { common_vendor.index.showToast({ title: "帮助中心", icon: "none" }); }, goToAbout() { common_vendor.index.showToast({ title: "关于我们", icon: "none" }); }, handleLogout() { common_vendor.index.showModal({ title: "确认退出", content: "确定要退出登录吗?", success: (res) => { if (res.confirm) { common_vendor.index.showToast({ title: "已退出登录", icon: "success" }); setTimeout(() => { common_vendor.index.reLaunch({ url: "/pages/login/login" }); }, 1500); } } }); } } }; function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) { return { a: common_vendor.o((...args) => $options.goToMyLeases && $options.goToMyLeases(...args)), b: common_vendor.o((...args) => $options.goToPayments && $options.goToPayments(...args)), c: common_vendor.o((...args) => $options.goToAddress && $options.goToAddress(...args)), d: common_vendor.o((...args) => $options.goToSettings && $options.goToSettings(...args)), e: common_vendor.o((...args) => $options.goToHelp && $options.goToHelp(...args)), f: common_vendor.o((...args) => $options.goToAbout && $options.goToAbout(...args)), g: common_vendor.o((...args) => $options.handleLogout && $options.handleLogout(...args)) }; } const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-dd383ca2"]]); wx.createPage(MiniProgramPage); //# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/profile/profile.js.map