index.js 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. "use strict";
  2. const common_vendor = require("../../../common/vendor.js");
  3. const store_index = require("../../../store/index.js");
  4. require("../../../store/modules/user.js");
  5. require("../../../config.js");
  6. require("../../../utils/storage.js");
  7. require("../../../utils/constant.js");
  8. require("../../../api/login.js");
  9. require("../../../utils/request.js");
  10. require("../../../utils/auth.js");
  11. require("../../../utils/errorCode.js");
  12. require("../../../utils/common.js");
  13. require("../../../store/getters.js");
  14. if (!Array) {
  15. const _easycom_uni_popup_dialog2 = common_vendor.resolveComponent("uni-popup-dialog");
  16. const _easycom_uni_popup2 = common_vendor.resolveComponent("uni-popup");
  17. (_easycom_uni_popup_dialog2 + _easycom_uni_popup2)();
  18. }
  19. const _easycom_uni_popup_dialog = () => "../../../uni_modules/uni-popup/components/uni-popup-dialog/uni-popup-dialog.js";
  20. const _easycom_uni_popup = () => "../../../uni_modules/uni-popup/components/uni-popup/uni-popup.js";
  21. if (!Math) {
  22. (_easycom_uni_popup_dialog + _easycom_uni_popup)();
  23. }
  24. const _sfc_main = {
  25. __name: "index",
  26. setup(__props) {
  27. const windowHeight = common_vendor.ref(common_vendor.index.getSystemInfoSync().windowHeight);
  28. const popup = common_vendor.ref(null);
  29. function handleToPwd() {
  30. common_vendor.index.navigateTo({
  31. url: "/pages/mine/pwd/index"
  32. });
  33. }
  34. function handleToUpgrade() {
  35. common_vendor.index.showToast({
  36. title: "模块建设中~",
  37. mask: false,
  38. icon: "none",
  39. duration: 1e3
  40. });
  41. }
  42. function handleCleanTmp() {
  43. common_vendor.index.showToast({
  44. title: "模块建设中~",
  45. mask: false,
  46. icon: "none",
  47. duration: 1e3
  48. });
  49. }
  50. function handleLogout() {
  51. popup.value.open();
  52. }
  53. function dialogConfirm() {
  54. store_index.store.dispatch("LogOut").then(() => {
  55. common_vendor.index.reLaunch({
  56. url: "/pages/login"
  57. });
  58. });
  59. }
  60. function dialogClose() {
  61. }
  62. return (_ctx, _cache) => {
  63. return {
  64. a: common_vendor.o(handleToPwd),
  65. b: common_vendor.o(handleToUpgrade),
  66. c: common_vendor.o(handleCleanTmp),
  67. d: common_vendor.o(handleLogout),
  68. e: `${windowHeight.value}px`,
  69. f: common_vendor.o(dialogConfirm),
  70. g: common_vendor.o(dialogClose),
  71. h: common_vendor.p({
  72. type: "info",
  73. cancelText: "关闭",
  74. confirmText: "退出",
  75. title: "通知",
  76. content: "确定注销并退出系统吗"
  77. }),
  78. i: common_vendor.sr(popup, "076ae91e-0", {
  79. "k": "popup"
  80. }),
  81. j: common_vendor.p({
  82. type: "dialog"
  83. })
  84. };
  85. };
  86. }
  87. };
  88. const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-076ae91e"], ["__file", "C:/Users/Administrator/Desktop/srcaaa/pages_mine/pages/setting/index.vue"]]);
  89. wx.createPage(MiniProgramPage);