Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
liyeyun
Project
Project
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
cfld-frontend
liyeyun
Commits
da049175
Commit
da049175
authored
Dec 14, 2023
by
王玉鑫
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 星级开发区,信息展示样式
parent
74e5b7b6
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
36 additions
and
11 deletions
+36
-11
StarDetail.vue
src/components/detail/StarDetail.vue
+32
-2
StarInfoCell.vue
src/components/detail/StarInfoCell.vue
+4
-9
No files found.
src/components/detail/StarDetail.vue
View file @
da049175
...
...
@@ -55,16 +55,20 @@
></StarIconCell>
</div>
<DetailInfoCell
v-for=
"
info
of infos"
v-for=
"
(info, index)
of infos"
:key=
"info.name"
title-center
:title=
"info.name"
class=
"py-5"
>
<div
class=
"flex items-center space-x-[23px]"
>
<div
class=
"flex items-center space-x-[23px]"
:class=
"
{ 'space-x-9 overflow-x-auto': index === 1 }"
>
<StarInfoCell
v-for=
"item of info.value"
:key=
"item.title"
:class=
"
{ 'star-info-cell_small': index === 1 }"
:title="item.title"
:img="item.coverUrl"
:content="item.titleIntroduce"
...
...
@@ -194,4 +198,30 @@ const handleShowDesc = () => {
padding
:
0
;
}
}
.star-info-cell_small
{
flex
:
none
;
width
:
272px
;
height
:
262px
;
padding
:
20px
16px
;
overflow
:
hidden
;
.star-info-img
{
width
:
100%
;
height
:
181
.5px
;
}
.star-info-content
{
position
:
static
;
width
:
208px
;
height
:
30px
;
margin-top
:
12px
;
padding-top
:
0
;
}
&
:hover
{
.star-info-img
{
transform
:
scale
(
1
.2
);
}
.star-info-content
{
height
:
30px
;
}
}
}
</
style
>
src/components/detail/StarInfoCell.vue
View file @
da049175
<!-- 星级开发区信息 -->
<
template
>
<div
class=
"star-info-cell
relative star-info-shadow
h-[357px] w-[370px] cursor-pointer rounded-sm px-[21px] py-[27px]"
class=
"star-info-cell
star-info-shadow relative
h-[357px] w-[370px] cursor-pointer rounded-sm px-[21px] py-[27px]"
>
<div>
<CommonImage
...
...
@@ -9,8 +9,8 @@
:src=
"img || null"
/>
</div>
<div
class=
"
absolute star-info-content
"
>
<div
class=
"font-yahei text-lg
leading-[41px] font-bold
text-[#1A1A1A]"
>
<div
class=
"
star-info-content absolute
"
>
<div
class=
"font-yahei text-lg
font-bold leading-[41px]
text-[#1A1A1A]"
>
{{
title
}}
</div>
<div
class=
"overflow-hidden break-all text-xs leading-5"
>
...
...
@@ -43,17 +43,12 @@ withDefaults(
overflow
:
hidden
;
padding-top
:
17px
;
background-color
:
#fff
;
transition
:
height
0
.3s
;
transition
:
all
0
.3s
;
width
:
327px
;
}
.star-info-cell
:hover
{
// .star-info-img {
// height: 0;
// transition-delay: 0.2s;
// }
.star-info-content
{
height
:
320px
;
// transition-delay: 0.3s;
}
}
</
style
>
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