feat: 添加聊天页面和钱包卡组件,优化用户界面和余额格式化逻辑
This commit is contained in:
27
src/views/user/components/wallet-card.vue
Normal file
27
src/views/user/components/wallet-card.vue
Normal file
@@ -0,0 +1,27 @@
|
||||
<script lang='ts' setup>
|
||||
const balance = ref(9999999.00);
|
||||
|
||||
const formattedBalance = formatBalance(balance);
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<ion-card>
|
||||
<ion-card-header>
|
||||
<ion-card-title>{{ formattedBalance }}</ion-card-title>
|
||||
<ion-card-subtitle>Wallet</ion-card-subtitle>
|
||||
</ion-card-header>
|
||||
|
||||
<!-- <ion-card-content>
|
||||
Here's a small text description for the card content. Nothing more, nothing less.
|
||||
</ion-card-content> -->
|
||||
|
||||
<ion-button fill="clear">
|
||||
Recharge
|
||||
</ion-button>
|
||||
<ion-button fill="clear">
|
||||
Withdrawal
|
||||
</ion-button>
|
||||
</ion-card>
|
||||
</template>
|
||||
|
||||
<style scoped></style>
|
||||
Reference in New Issue
Block a user