Commit 1b94c972 by 陈超

A

parent 4dc34722
...@@ -77,6 +77,7 @@ export default { ...@@ -77,6 +77,7 @@ export default {
filters: {}, filters: {},
data() { data() {
return { return {
load: false,
alert: [{ alert: [{
title: "提现结果", title: "提现结果",
menuName: "钱包", menuName: "钱包",
...@@ -125,20 +126,12 @@ export default { ...@@ -125,20 +126,12 @@ export default {
}, },
created() { created() {
handleImg(this.userInfo.avatar, 'thumbnail') handleImg(this.userInfo.avatar, 'thumbnail')
this.$store.dispatch('GetUserInfo').then(r => {}).catch(e => {}) this.$store.dispatch('GetUserInfo').then(r => {
this.loadRead()
}).catch(e => {})
}, },
mounted() { mounted() {
listenfullscreen(this.setScreen) 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: { methods: {
search(name, menus) { search(name, menus) {
...@@ -158,6 +151,15 @@ export default { ...@@ -158,6 +151,15 @@ export default {
} }
}, },
loadRead() { 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 showList = this.alert.filter(item => { return !item.hide })
let now = showList.map(r => { return r.tag }).join(",") let now = showList.map(r => { return r.tag }).join(",")
if(now.length > 0) { if(now.length > 0) {
...@@ -186,7 +188,7 @@ export default { ...@@ -186,7 +188,7 @@ export default {
this.$router.push(item.url) this.$router.push(item.url)
}) })
.catch(e => { .catch(e => {
}) })
}, },
handleScreen() { 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