Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
L
linshenxs-shop
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
陈超
linshenxs-shop
Commits
1b94c972
Commit
1b94c972
authored
Jul 01, 2022
by
陈超
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
A
parent
4dc34722
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
12 deletions
+14
-12
src/page/index/top/index.vue
+14
-12
No files found.
src/page/index/top/index.vue
View file @
1b94c972
...
@@ -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
()
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment