Compare commits
No commits in common. "b603b06f05b5b6be5d49bc107c409527a4a7b75d" and "27d8cbadba76e5c5ebfd0c1d1c53c1fd03de867c" have entirely different histories.
b603b06f05
...
27d8cbadba
|
@ -3,11 +3,11 @@
|
|||
<el-card style="margin-top: 50px;">
|
||||
<h1>用户余额</h1>
|
||||
<p>余额:{{ userBalanceData.userBalance || '加载中...' }}</p>
|
||||
<el-button type="primary" @click="navigateToRecharge">充值</el-button>
|
||||
</el-card>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
|
||||
<script>
|
||||
import { userBalance } from "@/api/system/user"; // 假设你的userBalance函数在@/api/money目录下
|
||||
|
||||
|
@ -23,9 +23,6 @@ export default {
|
|||
this.fetchUserBalance();
|
||||
},
|
||||
methods: {
|
||||
navigateToRecharge() {
|
||||
this.$router.push('/money/zfb');
|
||||
},
|
||||
async fetchUserBalance() {
|
||||
try {
|
||||
const userId = localStorage.getItem('userId');
|
||||
|
|
Loading…
Reference in New Issue