index.js 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  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. common_vendor.inject("$api");
  16. common_vendor.inject("$config");
  17. const config = common_vendor.ref({ logo: [], file: [] });
  18. common_vendor.ref([]);
  19. common_vendor.ref(0);
  20. const show = common_vendor.ref(false);
  21. const user = common_vendor.computed(() => {
  22. return common_vendor.index.getStorageSync("user");
  23. });
  24. common_vendor.onShow(async () => {
  25. await searchConfig();
  26. await searchOther();
  27. await search();
  28. if (!user.value)
  29. show.value = true;
  30. });
  31. const searchConfig = async () => {
  32. config.value = common_vendor.index.getStorageSync("config");
  33. };
  34. const searchOther = async () => {
  35. };
  36. const search = async () => {
  37. };
  38. const showChange = () => {
  39. show.value = false;
  40. };
  41. return (_ctx, _cache) => {
  42. return {
  43. a: common_vendor.o(showChange),
  44. b: common_vendor.p({
  45. show: show.value
  46. })
  47. };
  48. };
  49. }
  50. });
  51. const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-b6eefe39"], ["__file", "D:/project/学吧/learn_applet/pagesMy/follow/index.vue"]]);
  52. wx.createPage(MiniProgramPage);