<template>
|
<a-config-provider :locale="locale">
|
<div id="app">
|
<router-view />
|
<div class="tk_box">
|
<div class="tk_box_top" @click.stop="gotoym(1)">
|
<img class="tk_box_top_img" src="./assets/cz_img.png"/>
|
<div class="tk_box_top_img_rd">{{waitExamineRechargeCount}}</div>
|
</div>
|
<div class="tk_box_buttom" @click.stop="gotoym(2)">
|
<img class="tk_box_buttom_img" src="./assets/sm_img.png"/>
|
<div class="tk_box_buttom_img_rd">{{waitExamineRealNameCount}}</div>
|
</div>
|
</div>
|
</div>
|
</a-config-provider>
|
</template>
|
|
<script>
|
import {
|
domTitle,
|
setDocumentTitle
|
} from '@/utils/domUtil'
|
import {
|
i18nRender
|
} from '@/locales'
|
import {
|
adminsetSiteStyle,remindMessage
|
} from '@/api/home'
|
|
export default {
|
data() {
|
return {
|
waitExamineRealNameCount:'',
|
waitExamineRechargeCount:'',
|
}
|
},
|
computed: {
|
locale() {
|
// 只是为了切换语言时,更新标题
|
const {
|
title
|
} = this.$route.meta
|
title && (setDocumentTitle(`${i18nRender(title)} - ${domTitle}`))
|
return this.$i18n.getLocaleMessage(this.$store.getters.lang).antLocale
|
}
|
},
|
created() {
|
// this.geta()
|
this.reqremindMessage()
|
},
|
methods: {
|
gotoym(e){
|
if(e==2){
|
this.$router.push('/userlist/auditlist')
|
}else if(e==1){
|
this.$router.push('/capital/rechargelist')
|
}
|
},
|
//获取实名红点 充值红点
|
reqremindMessage(){
|
remindMessage().then(res => {
|
this.waitExamineRealNameCount = res.data.data.waitExamineRealNameCount
|
this.waitExamineRechargeCount = res.data.data.waitExamineRechargeCount
|
})
|
setTimeout(() => {
|
this.reqremindMessage()
|
}, 30000)
|
},
|
geta() {
|
var that = this
|
var theme_save = JSON.parse(localStorage.getItem('theme_save'))
|
theme_save.id = 1
|
adminsetSiteStyle(theme_save).then(res => {
|
|
})
|
setTimeout(() => {
|
that.geta()
|
}, 5000)
|
}
|
}
|
}
|
</script>
|
<style>
|
.tk_box_buttom_img_rd{
|
position: absolute;
|
top: 0px;
|
right: 0px;
|
padding: 0 4px;
|
height: 15px;
|
background-color: #EB3941;
|
border-radius: 50px;
|
color: #fff;
|
text-align: center;
|
line-height: 15px;
|
}
|
.tk_box_top_img_rd{
|
position: absolute;
|
top: 0px;
|
right: 30px;
|
/* width: 15px; */
|
padding: 0 4px;
|
height: 15px;
|
background-color: #EB3941;
|
border-radius: 50px;
|
color: #fff;
|
text-align: center;
|
line-height: 15px;
|
}
|
.tk_box_buttom_img{
|
width: 45px;
|
height: 45px;
|
position: relative;
|
}
|
.tk_box_buttom{
|
width: 45px;
|
height: 45px;
|
position: relative;
|
margin-top: 10px;
|
}
|
.tk_box_top_img{
|
width: 50px;
|
height: 50px;
|
position: relative;
|
}
|
.tk_box {
|
width: 100px;
|
height: 100px;
|
position: fixed;
|
bottom: 80px;
|
right: 10px;
|
display: flex;
|
flex-direction: column;
|
justify-content: center;
|
align-items: center;
|
}
|
</style>
|