| | |
| | | <a-descriptions-item label="注册ip"> |
| | | {{ currentDetails.regIp ? currentDetails.regIp : '--' }} |
| | | </a-descriptions-item> |
| | | <a-descriptions-item label="总资产"> |
| | | {{ moneyData.totalMoney ? moneyData.totalMoney : '--' }} |
| | | </a-descriptions-item> |
| | | <a-descriptions-item label="可用余额"> |
| | | {{ moneyData.availableBalance ? moneyData.availableBalance : '--' }} |
| | | </a-descriptions-item> |
| | | <a-descriptions-item label="冻结金额"> |
| | | {{ moneyData.freezeMoney ? moneyData.freezeMoney : '--' }} |
| | | </a-descriptions-item> |
| | | <a-descriptions-item label="注册地址"> |
| | | {{ currentDetails.regAddress ? currentDetails.regAddress : '--' }} |
| | | </a-descriptions-item> |
| | |
| | | </div> |
| | | </template> |
| | | <script> |
| | | import { getMoney } from '@/api/home' |
| | | |
| | | export default { |
| | | components: {}, |
| | | props: { |
| | |
| | | data() { |
| | | return { |
| | | userDialog: false, |
| | | moneyData: {}, |
| | | } |
| | | }, |
| | | methods: {}, |
| | | watch: { |
| | | userDialog(v) { |
| | | if (v) { |
| | | this.getMoneys() |
| | | } |
| | | }, |
| | | }, |
| | | mounted() { |
| | | // this.getMoneys() |
| | | }, |
| | | activated() { |
| | | // this.getMoneys() |
| | | }, |
| | | methods: { |
| | | getMoneys() { |
| | | getMoney({ userId: this.currentDetails.id }).then((res) => { |
| | | if (res.status == 0) { |
| | | console.log(res) |
| | | let arr = res.data.filter((item) => item.accectType === 'IN') |
| | | this.moneyData = arr[0] || {} |
| | | } |
| | | }) |
| | | }, |
| | | }, |
| | | } |
| | | </script> |