Merge remote-tracking branch 'origin/master'
commit
92384e4947
|
@ -139,7 +139,7 @@
|
||||||
<el-form-item label="是否初始化:" prop="status">
|
<el-form-item label="是否初始化:" prop="status">
|
||||||
<el-radio-group v-model="sourceAddReq.status">
|
<el-radio-group v-model="sourceAddReq.status">
|
||||||
<el-radio
|
<el-radio
|
||||||
v-for="dict in dict.type.yes_no"
|
v-for="dict in dict.type"
|
||||||
:key="dict.value"
|
:key="dict.value"
|
||||||
:label="dict.value"
|
:label="dict.value"
|
||||||
>{{ dict.label }}
|
>{{ dict.label }}
|
||||||
|
@ -212,7 +212,7 @@
|
||||||
label="是否初始化"
|
label="是否初始化"
|
||||||
prop="status">
|
prop="status">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<dict-tag :options="dict.type.yes_no" :value="scope.row.status"/>
|
<dict-tag :options="dict.type" :value="scope.row.status"/>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
|
|
||||||
|
|
|
@ -3,11 +3,11 @@
|
||||||
<el-card style="margin-top: 50px;">
|
<el-card style="margin-top: 50px;">
|
||||||
<h1>用户余额</h1>
|
<h1>用户余额</h1>
|
||||||
<p>余额:{{ userBalanceData.userBalance || '加载中...' }}</p>
|
<p>余额:{{ userBalanceData.userBalance || '加载中...' }}</p>
|
||||||
|
<el-button type="primary" @click="navigateToRecharge">充值</el-button>
|
||||||
</el-card>
|
</el-card>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { userBalance } from "@/api/system/user"; // 假设你的userBalance函数在@/api/money目录下
|
import { userBalance } from "@/api/system/user"; // 假设你的userBalance函数在@/api/money目录下
|
||||||
|
|
||||||
|
@ -23,6 +23,9 @@ export default {
|
||||||
this.fetchUserBalance();
|
this.fetchUserBalance();
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
navigateToRecharge() {
|
||||||
|
this.$router.push('/money/zfb');
|
||||||
|
},
|
||||||
async fetchUserBalance() {
|
async fetchUserBalance() {
|
||||||
try {
|
try {
|
||||||
const userId = localStorage.getItem('userId');
|
const userId = localStorage.getItem('userId');
|
||||||
|
|
Loading…
Reference in New Issue