合同小程序前端代码仓库
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.
 
 
 
 
 

40 lines
1.3 KiB

"use strict";
const common_vendor = require("../../common/vendor.js");
const common_assets = require("../../common/assets.js");
const _sfc_main = common_vendor.defineComponent({
methods: {
logout() {
common_vendor.index.showModal({
title: "提示",
content: "确定要退出登录吗?",
success: (res) => {
if (res.confirm) {
common_vendor.index.showToast({
title: "退出登录成功",
icon: "success",
success: () => {
setTimeout(() => {
common_vendor.index.navigateTo({ url: "/pages/index/index" });
}, 1500);
}
});
}
}
});
}
}
});
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
return {
a: common_assets._imports_0$2,
b: common_assets._imports_0$2,
c: common_assets._imports_0$2,
d: common_assets._imports_0$2,
e: common_assets._imports_0$2,
f: common_vendor.o((...args) => $options.logout && $options.logout(...args)),
g: common_vendor.sei(_ctx.virtualHostId, "view")
};
}
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render]]);
wx.createPage(MiniProgramPage);
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/index/wode.js.map