增加跳转(暂时不展示)

This commit is contained in:
YeMingfei666 2024-07-09 16:03:21 +08:00
parent 401f9b4daa
commit 2ed4b046af
1 changed files with 14 additions and 4 deletions

View File

@ -27,10 +27,6 @@
<div class="card">
<!-- <div class="title">统计数据</div> -->
<div class="row">
<!-- <div class="item">
<div class="t">用户数</div>
<div class="n">13</div>
</div> -->
<div class="item">
<div class="t">会员数</div>
<div class="n">{{ shopInfo.userTotal||0 }}</div>
@ -43,6 +39,10 @@
<div class="t">充值金额</div>
<div class="n">{{ shopInfo.chageTotal||0 }}</div>
</div>
<!-- <div class="item">
<el-button type="success" @click="toPage('charge')">充值记录</el-button>
<el-button type="danger" @click="toPage('cost')">消费记录</el-button>
</div> -->
</div>
</div>
@ -142,6 +142,16 @@ export default {
this.getShopInfo()
},
methods: {
toPage(type){
const pages={
charge:'charge_list',
cost:'cost_list'
}
this.$router.push({
name: pages[type]
})
console.log(pages[type])
},
//
async getShopInfo(){
try {