Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
h5
/
glsk-data-view-scene
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 941a477b
authored
Jul 12, 2024
by
李伟康
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
commit 增加等会
1 parent
7c9a4e53
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
77 additions
and
105 deletions
src/views/energyCar/components/CenterModel.vue
src/views/energyCar/components/DialogBox.vue
src/views/energyCar/components/CenterModel.vue
View file @
941a477
...
@@ -129,7 +129,6 @@ export default {
...
@@ -129,7 +129,6 @@ export default {
},
},
methods
:
{
methods
:
{
showDialog
(
index
)
{
showDialog
(
index
)
{
console
.
log
(
index
)
this
.
isShowDialog
=
true
this
.
isShowDialog
=
true
this
.
currentIndex
=
index
this
.
currentIndex
=
index
}
}
...
...
src/views/energyCar/components/DialogBox.vue
View file @
941a477
...
@@ -3,32 +3,52 @@
...
@@ -3,32 +3,52 @@
class=
"mask"
class=
"mask"
v-if=
"isShowDialog"
v-if=
"isShowDialog"
>
>
<div
<div
class=
"dialog-wrap"
>
class=
"dialog-wrap"
<div
:style=
"
{'background-image': `url(${backgroundImageList[currentIndex]})`}"
class=
"close"
>
@
click=
"closeHandle"
>
<img
src=
"@/assets/images/icon-close.png"
/>
</div>
<div
class=
"dialog"
>
<div
class=
"dialog"
>
<div
class=
"dialog-title"
>
<div
{{
titleList
[
currentIndex
]
}}
:class=
"['dialog-content',modeName]"
<div
:style=
"
{'background-image': `url(${backgroundImageList[currentIndex]})`}"
class=
"close"
>
@
click=
"closeHandle"
<div
class=
"dialog-title"
>
>
{{
titleList
[
currentIndex
]
}}
<img
src=
"@/assets/images/icon-close.png"
/>
</div>
</div>
</div>
</div>
</div>
</div>
<div
class=
"left_arrow"
>
<div
class=
"left_arrow"
>
<div
class=
"arrow_inner"
@
click=
"changeHandle(-1)"
>
<div
<img
src=
"@/assets/images/arrow_left.png"
class=
"img"
/>
class=
"arrow_inner"
<img
src=
"@/assets/images/arrow_circle.png"
class=
"circle"
/>
@
click=
"changeHandle(-1)"
>
<img
src=
"@/assets/images/arrow_left.png"
class=
"img"
/>
<img
src=
"@/assets/images/arrow_circle.png"
class=
"circle"
/>
</div>
</div>
</div>
</div>
<div
class=
"right_arrow"
>
<div
class=
"right_arrow"
>
<div
class=
"arrow_inner"
@
click=
"changeHandle(1)"
>
<div
<img
src=
"@/assets/images/arrow_right.png"
class=
"img"
/>
class=
"arrow_inner"
<img
src=
"@/assets/images/arrow_circle.png"
class=
"circle"
/>
@
click=
"changeHandle(1)"
>
<img
src=
"@/assets/images/arrow_right.png"
class=
"img"
/>
<img
src=
"@/assets/images/arrow_circle.png"
class=
"circle"
/>
</div>
</div>
</div>
</div>
</div>
</div>
...
@@ -55,17 +75,21 @@ export default {
...
@@ -55,17 +75,21 @@ export default {
},
},
data
()
{
data
()
{
return
{
return
{
m
sg
:
''
m
odeName
:
''
}
}
},
},
methods
:
{
methods
:
{
closeHandle
()
{
closeHandle
()
{
this
.
$emit
(
'update:isShowDialog'
,
false
)
this
.
$emit
(
'update:isShowDialog'
,
false
)
},
},
changeHandle
(
val
){
changeHandle
(
val
)
{
const
{
currentIndex
,
backgroundImageList
}
=
this
const
{
currentIndex
,
backgroundImageList
}
=
this
if
((
currentIndex
==
0
&&
val
==
-
1
)
||
(
currentIndex
==
backgroundImageList
.
length
-
1
&&
val
==
1
))
return
alert
(
'无更多内容'
)
if
((
currentIndex
==
0
&&
val
==
-
1
)
||
(
currentIndex
==
backgroundImageList
.
length
-
1
&&
val
==
1
))
return
alert
(
'无更多内容'
)
this
.
modeName
=
val
==
-
1
?
'to-left'
:
'to-right'
this
.
$emit
(
'update:currentIndex'
,
currentIndex
+
val
)
this
.
$emit
(
'update:currentIndex'
,
currentIndex
+
val
)
setTimeout
(()
=>
{
this
.
modeName
=
''
},
300
)
}
}
}
}
}
}
...
@@ -100,110 +124,59 @@ export default {
...
@@ -100,110 +124,59 @@ export default {
z-index
:
1
;
z-index
:
1
;
left
:
50%
;
left
:
50%
;
top
:
50%
;
top
:
50%
;
background-repeat
:
no-repeat
;
background-size
:
100%
100%
;
transform
:
translate
(
-50%
,
-50%
);
transform
:
translate
(
-50%
,
-50%
);
border-radius
:
5px
;
padding
:
0
3.67vw
3.9vh
;
box-sizing
:
border-box
;
.close
{
.close
{
width
:
60px
;
width
:
60px
;
height
:
60px
;
height
:
60px
;
position
:
absolute
;
position
:
absolute
;
right
:
-
31vw
;
right
:
-
103px
;
top
:
0
;
top
:
0
.96vh
;
cursor
:
pointer
;
cursor
:
pointer
;
z-index
:
3
;
z-index
:
3
;
}
}
.dialog-title
{
.dialog
{
width
:
13.19vw
;
width
:
100%
;
font-weight
:
900
;
height
:
100%
;
font-size
:
30px
;
overflow
:
hidden
;
color
:
#19ecff
;
&-content
{
//
background-image
:
url('../../../assets/images/title-dialog.png')
;
width
:
100%
;
//
background-repeat
:
no-repeat
;
height
:
100%
;
//
background-size
:
100%
100%
;
background-repeat
:
no-repeat
;
text-align
:
center
;
background-size
:
100%
100%
;
margin
:
0
auto
;
position
:
relative
;
line-height
:
8.39vh
;
}
.dialog-content
{
flex-wrap
:
wrap
;
justify-content
:
space-between
;
margin-top
:
3.5vh
;
.axis
{
width
:
26.88vw
;
height
:
34.97vh
;
margin-right
:
1.25vw
;
img
{
height
:
100%
;
}
}
.content-top-title
{
width
:
10vw
;
margin
:
7px
auto
;
display
:
flex
;
align-items
:
center
;
height
:
2.68vh
;
.title-icon
{
width
:
21px
;
height
:
7px
;
}
.title
{
font-weight
:
500
;
font-size
:
16px
;
color
:
#ffffff
;
margin
:
0
auto
;
height
:
2.68vh
;
line-height
:
2.68vh
;
}
}
}
.
content-info
{
.
dialog-title
{
font-weight
:
400
;
width
:
13.19vw
;
font-
size
:
14px
;
font-
weight
:
900
;
color
:
#c0c8d4
;
font-size
:
30px
;
margin
:
0
auto
;
color
:
#19ecff
;
text-align
:
center
;
text-align
:
center
;
margin
:
0
auto
;
position
:
relative
;
line-height
:
8.39vh
;
}
}
}
}
.content-top
{
.to-left
{
width
:
25.14vw
;
animation
:
to-move
0.25s
forwards
;
height
:
27.93vh
;
margin-bottom
:
4.45vh
;
}
}
.content-bottom
{
.to-right
{
width
:
25.14vw
;
animation
:
to-move
0.25s
forwards
;
height
:
14.88vh
;
animation-direction
:
reverse
;
font-weight
:
400
;
}
font-size
:
14px
;
@keyframes
to-move
{
color
:
#ffffff
;
0
%
{
padding
:
1.2vh
1.39vw
;
transform
:
translateX
(
100%
);
box-sizing
:
border-box
;
.title
{
font-weight
:
500
;
font-size
:
16px
;
margin-bottom
:
8px
;
height
:
2.68vh
;
}
}
.info
{
100
%
{
font-weight
:
400
;
transform
:
translateX
(
0
);
font-size
:
14px
;
color
:
#c0c8d4
;
}
}
}
}
.bg
{
background
:
#001d43
;
box-shadow
:
inset
0
0
20px
0
#003587
;
border-radius
:
4px
;
}
}
}
.left_arrow
,
.left_arrow
,
.right_arrow
{
.right_arrow
{
position
:
absolute
;
position
:
absolute
;
top
:
0
;
top
:
0
;
bottom
:
0
;
bottom
:
0
;
z-index
:
10
;
z-index
:
2
;
width
:
100px
;
width
:
100px
;
.arrow_inner
{
.arrow_inner
{
position
:
absolute
;
position
:
absolute
;
...
...
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