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 40ee0879
authored
Feb 20, 2024
by
前端
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
UI调整
1 parent
fac5d812
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
22 additions
and
225 deletions
src/assets/images/car/archite.png
src/assets/images/car/road.png
src/views/energyCar/Architecture.vue
src/views/energyCar/Model.vue
src/assets/images/car/archite.png
0 → 100644
View file @
40ee087
495 KB
src/assets/images/car/road.png
View file @
40ee087
708 KB
|
W:
|
H:
1.23 MB
|
W:
|
H:
2-up
Swipe
Onion skin
src/views/energyCar/Architecture.vue
View file @
40ee087
...
...
@@ -2,183 +2,34 @@
* @Description:
* @Author: huyue
* @Date: 2023-07-04 13:55:35
* @LastEditors:
yangming yangming
@didihu.com.cn
* @LastEditTime: 2024-0
1-29 16:02:34
* @LastEditors:
前端 qianduan01
@didihu.com.cn
* @LastEditTime: 2024-0
2-20 16:45:16
-->
<
template
>
<div
class=
"architecture-container"
>
<div
class=
"architecture-title"
>
{{
mainTitle
}}
</div>
<div
class=
"architecture-main"
>
<div
class=
"architecture-item"
v-for=
"(main, index) in mainList"
:key=
"'m' + index"
>
<div
class=
"architecture-type"
:style=
"
{ backgroundImage: 'url(' + require(`@/assets/images/car/row_${main.row}.png`) + ')', height: toTransform(main.height), lineHeight: toTransform(main.height) }"
>
{{
main
.
title
}}
</div>
<div
class=
"architecture-desc"
>
<div
class=
"architecture-desc-border"
>
<template
v-if=
"main.classification"
>
<div
class=
"architecture-classification"
v-for=
"(item, idx) in main.classification"
:key=
"'c' + idx"
>
{{
item
}}
</div>
</
template
>
<div
class=
"architecture-sub"
v-for=
"(item, idx) in main.desc"
:key=
"idx"
:style=
"{ width: item.width ? toTransform(item.width) : toTransform(107) }"
>
{{ item.label ? item.label : item }}
</div>
</div>
</div>
</div>
</div>
<div
class=
"architecture-subTitle"
>
{{ subTitle }}
</div>
<div
class=
"architecture-line"
></div>
<div
class=
"architecture-main"
>
<div
class=
"architecture-item"
v-for=
"(main, index) in subList"
:key=
"'ar' + index"
>
<div
class=
"architecture-type"
:style=
"{ backgroundImage: 'url(' + require(`@/assets/images/car/row_${main.row}.png`) + ')', height: toTransform(main.height), lineHeight: toTransform(main.height) }"
>
{{ main.title }}
</div>
<div
class=
"architecture-desc"
>
<div
class=
"architecture-desc-border gap-6"
>
<div
class=
"architecture-sub"
v-for=
"(item, idx) in main.desc"
:key=
"'sub' + idx"
:style=
"{ width: item.width + 'px' }"
>
{{ item.label }}
</div>
</div>
</div>
</div>
</div>
<img
src=
"@/assets/images/car/archite.png"
alt=
""
/>
</div>
</
template
>
<
script
>
import
{
mainTitle
,
subTitle
,
mainList
,
subList
,
VW
}
from
'./data'
export
default
{
name
:
'Architecture'
,
data
()
{
return
{
mainTitle
,
subTitle
,
mainList
,
subList
}
return
{}
},
created
()
{},
methods
:
{
toTransform
(
val
)
{
return
((
100
*
val
)
/
VW
).
toFixed
(
2
)
+
'vw'
}
}
methods
:
{}
}
</
script
>
<
style
lang=
"scss"
scoped
>
.architecture-container
{
position
:
absolute
;
left
:
80px
;
top
:
152px
;
width
:
792px
;
height
:
747px
;
background
:
url('../../assets/images/car/border.png')
;
background-size
:
100%
100%
;
.architecture-title
{
padding-top
:
20px
;
font-weight
:
700
;
font-size
:
24px
;
letter-spacing
:
0
;
text-align
:
center
;
text-align
:
center
;
background
:
linear-gradient
(
to
right
,
#01a4f9
,
#6df5f9
);
background-clip
:
text
;
-webkit-background-clip
:
text
;
-webkit-text-fill-color
:
transparent
;
margin-bottom
:
30px
;
}
.architecture-subTitle
{
color
:
#56f4fe
;
letter-spacing
:
0
;
text-align
:
center
;
text-shadow
:
0
0
12px
#0ad6fb
;
margin-top
:
26px
;
background
:
linear-gradient
(
to
right
,
#01a4f9
,
#6df5f9
);
background-clip
:
text
;
-webkit-background-clip
:
text
;
-webkit-text-fill-color
:
transparent
;
font-size
:
19px
;
position
:
relative
;
&::before
{
content
:
''
;
width
:
231.3px
;
position
:
absolute
;
top
:
11px
;
height
:
0.77px
;
left
:
50px
;
background
:
linear-gradient
(
to
right
,
transparent
,
#09aef2
,
transparent
);
}
&
::after
{
content
:
''
;
width
:
231.3px
;
position
:
absolute
;
top
:
11px
;
right
:
50px
;
height
:
0.77px
;
background
:
linear-gradient
(
to
right
,
transparent
,
#09aef2
,
transparent
);
}
}
.architecture-line
{
width
:
779.12px
;
height
:
0.77px
;
background
:
linear-gradient
(
to
right
,
transparent
,
#09aef2
,
transparent
);
margin
:
25px
0px
30px
0px
;
}
.architecture-main
{
margin-left
:
20px
;
}
}
.architecture-item
{
display
:
flex
;
.architecture-type
{
width
:
170.14px
;
font-weight
:
700
;
font-size
:
21.56px
;
color
:
#09aef2
;
letter-spacing
:
2.31px
;
background-size
:
100%
100%
;
text-align
:
center
;
margin-bottom
:
13px
;
}
.architecture-desc
{
flex
:
1
;
margin-left
:
13px
;
&-border
{
flex-wrap
:
wrap
;
display
:
flex
;
gap
:
6px
9px
;
&.gap-6
{
gap
:
6px
;
}
.architecture-classification
{
font-size
:
13.86px
;
color
:
#56f4fe
;
letter-spacing
:
0
;
text-align
:
center
;
text-shadow
:
0
0
12px
#0ad6fb
;
width
:
calc
(
25%
-
8px
);
margin-bottom
:
10px
;
}
.architecture-sub
{
width
:
106.24px
;
height
:
30.77px
;
line-height
:
31px
;
background
:
#0e2141
;
font-size
:
12.32px
;
color
:
#ffffff
;
letter-spacing
:
0
;
text-align
:
center
;
}
}
top
:
202px
;
left
:
50px
;
img
{
width
:
758px
;
height
:
640px
;
}
}
</
style
>
src/views/energyCar/Model.vue
View file @
40ee087
...
...
@@ -2,8 +2,8 @@
* @Description:
* @Author: huyue
* @Date: 2023-07-04 13:55:35
* @LastEditors:
yangming yangming
@didihu.com.cn
* @LastEditTime: 2024-0
1-29 15:53:33
* @LastEditors:
前端 qianduan01
@didihu.com.cn
* @LastEditTime: 2024-0
2-20 16:39:06
-->
<
template
>
<div
class=
"model-box"
>
...
...
@@ -12,48 +12,29 @@
<img
src=
"@/assets/images/car/line.png"
/>
</div>
<div
class=
"model-body"
>
<div
class=
"model-item"
v-for=
"(item, index) in modelList"
:key=
"'model' + index"
:class=
"
{ p16: index
< 5
?
true
:
false
}"
:style=
"
{
backgroundImage: 'url(' + require(`@/assets/images/car/car_${item.order}.png`) + ')',
height: toTransform(item.height),
width: toTransform(item.width),
top: toTransform(item.top),
right: toTransform(item.right)
}"
>
<div
class=
"model-item-title"
:class=
"
{ filter_7: item.filter ? true : false, 'spc-color': item.lineg ? true : false }">
{{
item
.
title
}}
</div>
<div
class=
"model-item-content"
>
{{
item
.
content
}}
</div>
</div>
<img
src=
"@/assets/images/car/road.png"
alt=
""
/>
</div>
</div>
</
template
>
<
script
>
import
{
color
}
from
'echarts'
import
{
modelTitle
,
modelList
,
VW
}
from
'./data'
import
{
modelTitle
}
from
'./data'
export
default
{
name
:
'Model'
,
data
()
{
return
{
modelTitle
,
modelList
}
return
{
modelTitle
}
},
created
()
{},
methods
:
{
toTransform
(
val
)
{
return
((
100
*
val
)
/
VW
).
toFixed
(
2
)
+
'vw'
}
}
methods
:
{}
}
</
script
>
<
style
lang=
"scss"
scoped
>
.model-box
{
position
:
absolute
;
top
:
1
6
7px
;
top
:
1
3
7px
;
right
:
70px
;
z-index
:
0
;
.model-title
{
font-weight
:
700
;
font-size
:
24px
;
...
...
@@ -73,45 +54,10 @@ export default {
height
:
12.23px
;
}
.model-body
{
position
:
relative
;
width
:
1575.18px
;
height
:
915.9px
;
background
:
url('../../assets/images/car/road.png')
;
background-size
:
100%
100%
;
.model-item
{
position
:
absolute
;
background-size
:
100%
100%
;
padding
:
13px
10px
;
box-sizing
:
border-box
;
&.p16
{
padding
:
16px
;
}
&
-title
{
font-weight
:
700
;
font-size
:
18px
;
color
:
#44ffff
;
letter-spacing
:
0
;
background
:
linear-gradient
(
to
right
,
#01a4f9
,
#6df5f9
);
background-clip
:
text
;
-webkit-background-clip
:
text
;
-webkit-text-fill-color
:
transparent
;
margin-bottom
:
4px
;
&.filter_7
{
opacity
:
0.7
;
}
&
.spc-color
{
color
:
#44ffff
;
background
:
linear-gradient
(
to
right
,
#01F9ED
,
#73FF74
);
background-clip
:
text
;
-webkit-background-clip
:
text
;
-webkit-text-fill-color
:
transparent
;
}
}
&
-content
{
font-size
:
15px
;
color
:
#ffffff
;
line-height
:
20px
;
}
margin-top
:
20px
;
img
{
width
:
1856px
;
height
:
916px
;
}
}
}
...
...
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