Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
polysoft-nafmii
/
polysoft-h5
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 922fda2b
authored
Jun 01, 2021
by
amateur
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
组件调整
1 parent
a461f2c1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
8 deletions
src/views/home/components/DataModule.vue
src/views/home/index.vue
src/views/home/components/DataModule.vue
View file @
922fda2
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
<div
class=
"module-top-container"
>
<div
class=
"module-top-container"
>
<div
class=
"module-top-left"
>
<div
class=
"module-top-left"
>
<span
class=
"module-name"
>
{{
name
}}
</span>
<span
class=
"module-name"
>
{{
name
}}
</span>
<span
v-if=
"
!is
Top"
class=
"module-top-btn"
@
click=
"$emit('clickTop')"
>
{{
$t
(
'home.top'
)
}}
</span>
<span
v-if=
"
show
Top"
class=
"module-top-btn"
@
click=
"$emit('clickTop')"
>
{{
$t
(
'home.top'
)
}}
</span>
</div>
</div>
<div
class=
"module-more"
>
<div
class=
"module-more"
>
<span>
{{
$t
(
'home.more'
)
}}
</span>
<span>
{{
$t
(
'home.more'
)
}}
</span>
...
@@ -29,7 +29,7 @@ export default {
...
@@ -29,7 +29,7 @@ export default {
name
:
{
name
:
{
type
:
String
,
type
:
String
,
},
},
is
Top
:
{
show
Top
:
{
type
:
Boolean
,
type
:
Boolean
,
},
},
dateText
:
{
dateText
:
{
...
...
src/views/home/index.vue
View file @
922fda2
...
@@ -28,9 +28,9 @@ export default {
...
@@ -28,9 +28,9 @@ export default {
console
.
log
();
console
.
log
();
return
{
return
{
modules
:
[
modules
:
[
{
type
:
'1'
,
name
:
this
.
$t
(
'home.disclosure'
),
dateText
:
this
.
$t
(
'home.disclosureDate'
),
isTop
:
tru
e
},
{
type
:
'1'
,
name
:
this
.
$t
(
'home.disclosure'
),
dateText
:
this
.
$t
(
'home.disclosureDate'
),
showTop
:
fals
e
},
{
type
:
'2'
,
name
:
this
.
$t
(
'home.news'
),
dateText
:
this
.
$t
(
'home.updateDate'
),
isTop
:
fals
e
},
{
type
:
'2'
,
name
:
this
.
$t
(
'home.news'
),
dateText
:
this
.
$t
(
'home.updateDate'
),
showTop
:
tru
e
},
{
type
:
'3'
,
name
:
this
.
$t
(
'home.registered'
),
dateText
:
this
.
$t
(
'home.updateDate'
),
isTop
:
fals
e
}
{
type
:
'3'
,
name
:
this
.
$t
(
'home.registered'
),
dateText
:
this
.
$t
(
'home.updateDate'
),
showTop
:
tru
e
}
]
]
};
};
},
},
...
@@ -48,9 +48,9 @@ export default {
...
@@ -48,9 +48,9 @@ export default {
handleTop
(
module
)
{
handleTop
(
module
)
{
const
modules
=
[]
const
modules
=
[]
for
(
const
item
of
this
.
modules
)
{
for
(
const
item
of
this
.
modules
)
{
const
isTop
=
item
.
type
=
=
module
.
type
const
showTop
=
item
.
type
!
=
module
.
type
is
Top
?
modules
.
unshift
(
item
)
:
modules
.
push
(
item
)
!
show
Top
?
modules
.
unshift
(
item
)
:
modules
.
push
(
item
)
Object
.
assign
(
item
,
{
is
Top
})
Object
.
assign
(
item
,
{
show
Top
})
}
}
this
.
modules
=
modules
this
.
modules
=
modules
}
}
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment