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.

43 lines
1.4 KiB

4 weeks ago
  1. "use strict";
  2. const common_vendor = require("../../common/vendor.js");
  3. const common_assets = require("../../common/assets.js");
  4. const _sfc_main = {
  5. __name: "index",
  6. setup(__props) {
  7. const jumpTo = (url) => {
  8. common_vendor.index.switchTab({
  9. url
  10. });
  11. };
  12. const showTip = () => {
  13. common_vendor.index.showToast({
  14. title: "前面的功能以后再来探索吧",
  15. icon: "none"
  16. });
  17. };
  18. common_vendor.onShow(() => {
  19. const isLogin = common_vendor.index.getStorageSync("isLogin");
  20. common_vendor.index.__f__("log", "at pages/index/index.vue:86", isLogin);
  21. if (!isLogin) {
  22. common_vendor.index.redirectTo({
  23. url: "/pages/login/login"
  24. });
  25. }
  26. });
  27. return (_ctx, _cache) => {
  28. return {
  29. a: common_vendor.o(($event) => jumpTo("/pages/userInfo/userInfo")),
  30. b: common_assets._imports_0,
  31. c: common_assets._imports_1,
  32. d: common_assets._imports_2,
  33. e: common_vendor.o(($event) => jumpTo("/pages/payment/payment")),
  34. f: common_vendor.o(($event) => jumpTo("/pages/expense/expense")),
  35. g: common_vendor.o(showTip),
  36. h: common_vendor.o(showTip)
  37. };
  38. };
  39. }
  40. };
  41. const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-1cf27b2a"]]);
  42. wx.createPage(MiniProgramPage);
  43. //# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/index/index.js.map