增加跳转(暂时不展示)
This commit is contained in:
parent
401f9b4daa
commit
2ed4b046af
|
|
@ -27,10 +27,6 @@
|
||||||
<div class="card">
|
<div class="card">
|
||||||
<!-- <div class="title">统计数据</div> -->
|
<!-- <div class="title">统计数据</div> -->
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<!-- <div class="item">
|
|
||||||
<div class="t">用户数</div>
|
|
||||||
<div class="n">13</div>
|
|
||||||
</div> -->
|
|
||||||
<div class="item">
|
<div class="item">
|
||||||
<div class="t">会员数</div>
|
<div class="t">会员数</div>
|
||||||
<div class="n">{{ shopInfo.userTotal||0 }}</div>
|
<div class="n">{{ shopInfo.userTotal||0 }}</div>
|
||||||
|
|
@ -43,6 +39,10 @@
|
||||||
<div class="t">充值金额</div>
|
<div class="t">充值金额</div>
|
||||||
<div class="n">{{ shopInfo.chageTotal||0 }}</div>
|
<div class="n">{{ shopInfo.chageTotal||0 }}</div>
|
||||||
</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>
|
||||||
</div>
|
</div>
|
||||||
|
|
@ -142,6 +142,16 @@ export default {
|
||||||
this.getShopInfo()
|
this.getShopInfo()
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
toPage(type){
|
||||||
|
const pages={
|
||||||
|
charge:'charge_list',
|
||||||
|
cost:'cost_list'
|
||||||
|
}
|
||||||
|
this.$router.push({
|
||||||
|
name: pages[type]
|
||||||
|
})
|
||||||
|
console.log(pages[type])
|
||||||
|
},
|
||||||
// 获取商家用户概述信息
|
// 获取商家用户概述信息
|
||||||
async getShopInfo(){
|
async getShopInfo(){
|
||||||
try {
|
try {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue