Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
X
xxx_phase2_web
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
夏敏伟
xxx_phase2_web
Commits
7e70ee05
Commit
7e70ee05
authored
Jul 05, 2024
by
夏敏伟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化代码
parent
ffe4516f
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
15 deletions
+4
-15
src/view/homepage.vue
src/view/homepage.vue
+4
-15
No files found.
src/view/homepage.vue
View file @
7e70ee05
...
...
@@ -11,7 +11,7 @@
<div
class=
"left-content"
>
<div
class=
"leftModule bk-homeapge-animation"
v-for=
"(item, index) in modules.leftModule"
>
<div
:class=
"['module-info', isSelected == index ? ('selectedModule-left' + index) : '', 'left-div-' + index]"
@
click=
"choiceModule
Left
(index)"
>
@
click=
"choiceModule(index)"
>
<div
class=
"info-description"
>
<div
v-text=
"item.name"
></div>
<div
v-text=
"item.description"
></div>
...
...
@@ -35,7 +35,7 @@
<div
class=
"right-content"
>
<div
class=
"rightModule bk-homeapge-animation"
v-for=
"(item, index) in modules.rightModule"
>
<div
:class=
"['module-info', isSelected == (index + 3) ? ('selectedModule-right' + index) : '', 'right-div-' + index]"
@
click=
"choiceModule
Right(index
)"
>
@
click=
"choiceModule
(index + 3
)"
>
<div
class=
"info-description"
>
<div
v-text=
"item.name"
></div>
<div
v-text=
"item.description"
></div>
...
...
@@ -56,7 +56,7 @@ export default {
name
:
'
homepage
'
,
data
()
{
return
{
isSelected
:
0
,
isSelected
:
-
1
,
modules
:
{
leftModule
:
[
{
id
:
1
,
name
:
'
目标对象库
'
,
description
:
'
Target Object Library
'
},
...
...
@@ -83,7 +83,7 @@ export default {
}
},
methods
:
{
choiceModule
Left
(
index
)
{
choiceModule
(
index
)
{
let
arr
=
this
.
query_selector
(
'
.leader-line
'
);
if
(
arr
.
length
>
0
)
{
arr
.
forEach
(
element
=>
{
...
...
@@ -94,17 +94,6 @@ export default {
this
.
$store
.
commit
(
"
activeIndex
"
,
index
);
this
.
$router
.
push
(
"
/
"
);
},
choiceModuleRight
(
index
)
{
let
arr
=
this
.
query_selector
(
'
.leader-line
'
);
if
(
arr
.
length
>
0
)
{
arr
.
forEach
(
element
=>
{
element
.
remove
();
});
}
this
.
isSelected
=
index
+
3
;
this
.
$store
.
commit
(
"
activeIndex
"
,
index
+
3
);
this
.
$router
.
push
(
"
/
"
);
},
query_selector
(
selector
)
{
return
Array
.
from
(
document
.
querySelectorAll
(
selector
));
}
...
...
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