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

  1. "use strict";
  2. const common_vendor = require("../../common/vendor.js");
  3. const common_assets = require("../../common/assets.js");
  4. const _sfc_main = common_vendor.defineComponent({
  5. methods: {
  6. logout() {
  7. common_vendor.index.showModal({
  8. title: "提示",
  9. content: "确定要退出登录吗?",
  10. success: (res) => {
  11. if (res.confirm) {
  12. common_vendor.index.showToast({
  13. title: "退出登录成功",
  14. icon: "success",
  15. success: () => {
  16. setTimeout(() => {
  17. common_vendor.index.navigateTo({ url: "/pages/index/index" });
  18. }, 1500);
  19. }
  20. });
  21. }
  22. }
  23. });
  24. }
  25. }
  26. });
  27. function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
  28. return {
  29. a: common_assets._imports_0$2,
  30. b: common_assets._imports_0$2,
  31. c: common_assets._imports_0$2,
  32. d: common_assets._imports_0$2,
  33. e: common_assets._imports_0$2,
  34. f: common_vendor.o((...args) => $options.logout && $options.logout(...args)),
  35. g: common_vendor.sei(_ctx.virtualHostId, "view")
  36. };
  37. }
  38. const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render]]);
  39. wx.createPage(MiniProgramPage);
  40. //# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/index/wode.js.map