Commit 1b94c972 by 陈超

A

parent 4dc34722
......@@ -77,6 +77,7 @@ export default {
filters: {},
data() {
return {
load: false,
alert: [{
title: "提现结果",
menuName: "钱包",
......@@ -125,20 +126,12 @@ export default {
},
created() {
handleImg(this.userInfo.avatar, 'thumbnail')
this.$store.dispatch('GetUserInfo').then(r => {}).catch(e => {})
this.$store.dispatch('GetUserInfo').then(r => {
this.loadRead()
}).catch(e => {})
},
mounted() {
listenfullscreen(this.setScreen)
this.alert.forEach(item => {
let find = this.search(item.menuName, this.menu)
if(find) {
item.hide = false
item.url = find.path
} else {
item.hide = true
}
})
this.loadRead()
},
methods: {
search(name, menus) {
......@@ -158,6 +151,15 @@ export default {
}
},
loadRead() {
this.alert.forEach(item => {
let find = this.search(item.menuName, this.menu)
if(find) {
item.hide = false
item.url = find.path
} else {
item.hide = true
}
})
let showList = this.alert.filter(item => { return !item.hide })
let now = showList.map(r => { return r.tag }).join(",")
if(now.length > 0) {
......@@ -186,7 +188,7 @@ export default {
this.$router.push(item.url)
})
.catch(e => {
})
},
handleScreen() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment