"use strict"; var __async = (__this, __arguments, generator) => { return new Promise((resolve, reject) => { var fulfilled = (value) => { try { step(generator.next(value)); } catch (e) { reject(e); } }; var rejected = (value) => { try { step(generator.throw(value)); } catch (e) { reject(e); } }; var step = (x) => x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected); step((generator = generator.apply(__this, __arguments)).next()); }); }; const common_vendor = require("../../../../common/vendor.js"); const modules_mall_sheep_index = require("../../sheep/index.js"); const modules_mall_sheep_api_trade_brokerage = require("../../sheep/api/trade/brokerage.js"); const modules_mall_sheep_hooks_useGoods = require("../../sheep/hooks/useGoods.js"); if (!Array) { const _easycom_uni_icons2 = common_vendor.resolveComponent("uni-icons"); _easycom_uni_icons2(); } const _easycom_uni_icons = () => "../../../../uni_modules/uni-icons/components/uni-icons/uni-icons.js"; if (!Math) { _easycom_uni_icons(); } const _sfc_main = { __name: "account-info", setup(__props) { common_vendor.computed(() => modules_mall_sheep_index.sheep.$store("user").userInfo); const state = common_vendor.reactive({ showMoney: false, summary: {} }); common_vendor.onMounted(() => __async(this, null, function* () { const { code, data } = yield modules_mall_sheep_api_trade_brokerage.BrokerageApi.getBrokerageUserSummary(); if (code === 0) { state.summary = data || {}; } })); return (_ctx, _cache) => { return { a: common_vendor.p({ type: state.showMoney ? "eye-filled" : "eye-slash-filled", color: "#A57A55", size: "20" }), b: common_vendor.o(($event) => state.showMoney = !state.showMoney), c: common_vendor.o(($event) => common_vendor.unref(modules_mall_sheep_index.sheep).$router.go("/modules/mall/commission/wallet")), d: common_vendor.t(state.showMoney ? common_vendor.unref(modules_mall_sheep_hooks_useGoods.fen2yuan)(state.summary.brokeragePrice || 0) : "***"), e: common_vendor.t(state.showMoney ? common_vendor.unref(modules_mall_sheep_hooks_useGoods.fen2yuan)(state.summary.yesterdayPrice || 0) : "***"), f: common_vendor.t(state.showMoney ? common_vendor.unref(modules_mall_sheep_hooks_useGoods.fen2yuan)(state.summary.withdrawPrice || 0) : "***") }; }; } }; const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-c85c690a"]]); wx.createComponent(Component);