"use strict";
const common_vendor = require("../../common/vendor.js");
const common_assets = require("../../common/assets.js");
const utils_fun = require("../../utils/fun.js");
const store_index = require("../../store/index.js");
const hooks_useNav = require("../../hooks/useNav.js");
if (!Array) {
  const _easycom_wd_navbar2 = common_vendor.resolveComponent("wd-navbar");
  const _easycom_uni_popup2 = common_vendor.resolveComponent("uni-popup");
  (_easycom_wd_navbar2 + _easycom_uni_popup2)();
}
const _easycom_wd_navbar = () => "../../uni_modules/wot-design-uni/components/wd-navbar/wd-navbar.js";
const _easycom_uni_popup = () => "../../uni_modules/uni-popup/components/uni-popup/uni-popup.js";
if (!Math) {
  (_easycom_wd_navbar + _easycom_uni_popup)();
}
const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
  __name: "mine",
  setup(__props) {
    const { navTo } = hooks_useNav.useNav();
    const store = store_index.Store();
    const userInfo = common_vendor.computed(
      () => store.userInfo || {
        inviteCode: "",
        nickname: "",
        mobile: "",
        avatar: "",
        paywallet: {
          balance: 0
        }
      }
    );
    common_vendor.onShow(async () => {
      await store.usersGetInfo();
    });
    return (_ctx, _cache) => {
      return common_vendor.e({
        a: common_assets._imports_0$2,
        b: common_vendor.p({
          bordered: false,
          ["custom-style"]: "background-color: transparent !important;",
          safeAreaInsetTop: true
        }),
        c: userInfo.value.avatar,
        d: common_vendor.t(userInfo.value.nickname || "微信用户"),
        e: common_vendor.t(userInfo.value.mobile),
        f: userInfo.value.inviteCodeImg
      }, userInfo.value.inviteCodeImg ? {
        g: common_assets._imports_1$1,
        h: common_vendor.o(($event) => _ctx.$refs.popup.open())
      } : {}, {
        i: common_assets._imports_2$1,
        j: common_vendor.o(($event) => common_vendor.unref(navTo)("/pages/equity/equity", true)),
        k: common_assets._imports_0$1,
        l: common_vendor.t(userInfo.value.money || 0),
        m: common_vendor.t(userInfo.value.performanceReward || 0),
        n: common_vendor.t(userInfo.value.directReferralReward || 0),
        o: common_vendor.t(userInfo.value.indirectReferralReward || 0),
        p: common_vendor.o(($event) => common_vendor.unref(navTo)("/pages/wallet/wallet", true)),
        q: common_assets._imports_4$1,
        r: common_assets._imports_0$1,
        s: common_vendor.o(($event) => common_vendor.unref(navTo)("/pages/mine/sett", true)),
        t: common_assets._imports_5,
        v: common_assets._imports_0$1,
        w: common_vendor.o(($event) => common_vendor.unref(navTo)("/pages/wallet/list", true)),
        x: common_assets._imports_6,
        y: common_assets._imports_0$1,
        z: common_vendor.o(($event) => common_vendor.unref(navTo)("/pages/team/team", true)),
        A: common_assets._imports_7,
        B: common_assets._imports_0$1,
        C: common_vendor.o(($event) => common_vendor.unref(navTo)("/pages/address/list", true)),
        D: common_assets._imports_5$1,
        E: common_assets._imports_0$1,
        F: common_vendor.o(($event) => _ctx.$refs.popup.close()),
        G: common_assets._imports_9,
        H: userInfo.value.inviteCodeImg,
        I: common_vendor.t(userInfo.value.inviteCode),
        J: common_vendor.o(($event) => common_vendor.unref(utils_fun.copy)(userInfo.value.inviteCode)),
        K: common_vendor.sr("popup", "7c2ebfa5-1"),
        L: common_vendor.p({
          type: "center",
          ["border-radius"]: "16rpx"
        })
      });
    };
  }
});
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-7c2ebfa5"]]);
wx.createPage(MiniProgramPage);
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/mine/mine.js.map
