Merge remote-tracking branch 'origin/master'

master
lwj 2024-08-25 11:54:23 +08:00
commit ad83fe546a
2 changed files with 6 additions and 2 deletions

View File

@ -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');

View File

@ -5,7 +5,8 @@
<el-card shadow="hover"> <el-card shadow="hover">
<div slot="header" class="clearfix"> <div slot="header" class="clearfix">
<span>手机号查询归属地</span> <span>手机号查询归属地</span>
<el-button style="float: right; padding: 3px 0" type="text">测试</el-button> <button @click="testPhone"></button>
<!-- <el-button style="float: right; padding: 3px 0" type="text">测试</el-button>-->
<el-button style="float: right; padding: 3px 0" type="text">购买</el-button> <el-button style="float: right; padding: 3px 0" type="text">购买</el-button>
</div> </div>
</el-card> </el-card>