index.js 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. "use strict";
  2. const common_vendor = require("../../common/vendor.js");
  3. if (!Array) {
  4. const _easycom_up_overlay2 = common_vendor.resolveComponent("up-overlay");
  5. _easycom_up_overlay2();
  6. }
  7. const _easycom_up_overlay = () => "../../node-modules/uview-plus/components/u-overlay/u-overlay.js";
  8. if (!Math) {
  9. (login + _easycom_up_overlay)();
  10. }
  11. const login = () => "../../components/login.js";
  12. const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
  13. __name: "index",
  14. setup(__props) {
  15. var _a, _b;
  16. (_a = common_vendor.getCurrentInstance()) == null ? void 0 : _a.appContext.config.globalProperties.$api;
  17. (_b = common_vendor.getCurrentInstance()) == null ? void 0 : _b.appContext.config.globalProperties.$config;
  18. const config = common_vendor.ref({ logo: [], file: [] });
  19. common_vendor.ref([]);
  20. common_vendor.ref(0);
  21. const show = common_vendor.ref(false);
  22. const user = common_vendor.computed(() => {
  23. return common_vendor.index.getStorageSync("user");
  24. });
  25. common_vendor.onShow(async () => {
  26. await searchConfig();
  27. await searchOther();
  28. await search();
  29. if (!user.value)
  30. show.value = true;
  31. });
  32. const searchConfig = async () => {
  33. config.value = common_vendor.index.getStorageSync("config");
  34. };
  35. const searchOther = async () => {
  36. };
  37. const search = async () => {
  38. };
  39. const showChange = () => {
  40. show.value = false;
  41. };
  42. return (_ctx, _cache) => {
  43. return {
  44. a: common_vendor.o(showChange),
  45. b: common_vendor.p({
  46. show: show.value
  47. })
  48. };
  49. };
  50. }
  51. });
  52. const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-e33b06dd"], ["__file", "D:/project/学吧/learn_applet/pagesMy/account/index.vue"]]);
  53. wx.createPage(MiniProgramPage);