Commit f046fea7 authored by 郭铭瑶's avatar 郭铭瑶 🤘

修改

parent 08316c17
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
...@@ -11,6 +11,8 @@ ...@@ -11,6 +11,8 @@
</div> </div>
<div class="outer"> <div class="outer">
<span class="move-dot"/> <span class="move-dot"/>
<div class="repair top" />
<div class="repair bottom" />
<div class="inner"> <div class="inner">
<div class="detail" :style="`background-image: url(${require('@/assets/images/flow-card-bg.png')})`"> <div class="detail" :style="`background-image: url(${require('@/assets/images/flow-card-bg.png')})`">
<img v-for="(img, i) in ((list[cur] && list[cur].imgs) || []) " :key="i" :src="require(`@/assets/images/screenshots/${img}.png`)" /> <img v-for="(img, i) in ((list[cur] && list[cur].imgs) || []) " :key="i" :src="require(`@/assets/images/screenshots/${img}.png`)" />
...@@ -95,7 +97,7 @@ export default { ...@@ -95,7 +97,7 @@ export default {
startMove() { startMove() {
this.timer = setInterval(() => { this.timer = setInterval(() => {
this.cur += 1 this.cur += 1
if (this.cur > this.list.length) { if (this.cur >= this.list.length) {
this.cur = 0 this.cur = 0
} }
}, 4000) }, 4000)
...@@ -170,6 +172,7 @@ export default { ...@@ -170,6 +172,7 @@ export default {
>img >img
width 3rem width 3rem
height 3rem height 3rem
animation shine 2s reverse linear infinite
>p >p
color #fff color #fff
font-family $font-pang font-family $font-pang
...@@ -177,6 +180,7 @@ export default { ...@@ -177,6 +180,7 @@ export default {
&.on &.on
color $color-map(1) color $color-map(1)
font-size 1.5rem font-size 1.5rem
text-shadow 0.1rem 0.1rem 0.3rem $color-map(0.8)
.outer .outer
width 80rem width 80rem
height 45rem height 45rem
...@@ -185,6 +189,17 @@ export default { ...@@ -185,6 +189,17 @@ export default {
padding 0.5rem padding 0.5rem
position relative position relative
overflow hidden overflow hidden
.repair
width 0.5rem
height 0.7rem
position absolute
left 0
border 0.1rem solid $color-map(0.3)
border-right none
&.top
top -0.1rem
&.bottom
bottom -0.1rem
.move-dot .move-dot
position absolute position absolute
display block display block
...@@ -249,4 +264,15 @@ export default { ...@@ -249,4 +264,15 @@ export default {
transform rotate(180deg) transform rotate(180deg)
} }
} }
@keyframes shine {
0% {
transform scale(1)
}
50% {
transform scale(1.5)
}
100% {
transform scale(1)
}
}
</style> </style>
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
:style="`background-image: url(${require('@/assets/images/home-card-bg.png')})`" :style="`background-image: url(${require('@/assets/images/home-card-bg.png')})`"
> >
<p><span/>{{titles[index]}}</p> <p><span/>{{titles[index]}}</p>
<img :src="require(`@/assets/images/${item}.png`)"/> <img :src="require(`@/assets/images/screenshots/${item}.png`)"/>
</div> </div>
</div> </div>
</template> </template>
...@@ -23,8 +23,8 @@ export default { ...@@ -23,8 +23,8 @@ export default {
}, },
data() { data() {
return { return {
routes: ['industry', 'special', 'production', 'trade', 'fish', 'disease', 'enterprise'], routes: ['industry', 'special', 'production', 'trade', 'fish', 'disease', 'enterprise', 'flow'],
titles: ['广东省渔业产业布局分析专题', '广东省渔业特色种苗专题', '广东省渔业生产专题', '渔业种业综合交易平台交易分析专题', '广东省罗非鱼专题', '广东省水生动物病害数据分析专题', '广东省渔业企业介绍专题'], titles: ['广东省渔业产业布局分析专题', '广东省渔业特色种苗专题', '广东省渔业生产专题', '渔业种业综合交易平台交易分析专题', '广东省罗非鱼专题', '广东省水生动物病害数据分析专题', '广东省渔业企业介绍专题', '操作流程'],
} }
}, },
methods: { methods: {
...@@ -39,34 +39,32 @@ export default { ...@@ -39,34 +39,32 @@ export default {
#container #container
$gd-layout() $gd-layout()
grid-template-areas \ grid-template-areas \
'. theme .'\ '. theme theme .'\
'box1 box2 box5'\ 'box1 box2 box3 box4'\
'box1 box2 box5'\ 'box5 box6 box7 box8'
'box1 box2 box6'\ grid-template-rows 4rem 1fr 1fr
'box3 box4 box6'\ grid-template-columns 1fr 1fr 1fr 1fr
'box3 box4 box7'\
'box3 box4 box7'
grid-template-rows 4rem 1fr 1fr 1fr 1fr 1fr 1fr
grid-template-columns 1fr 1fr 1fr
grid-gap 0
padding 1rem 0 0
.theme .theme
grid-area theme grid-area theme
width 150% width 100%
margin-left -25%
.box .box
width 100% width 100%
height 100% height 100%
background-size 100% 100% background-size 100% 100%
padding 2rem padding 2rem
cursor pointer cursor pointer
display flex
flex-direction column
justify-content center
&:hover
background-color $color-map(0.3)
>p >p
display flex display flex
align-items center align-items center
color #b3ecff color #b3ecff
font-size 1.1rem font-size 1.2rem
font-weight bold font-weight bold
margin 0.5rem 0 margin-bottom 1rem
>span >span
display inline-block display inline-block
margin-right 0.8rem margin-right 0.8rem
...@@ -75,21 +73,21 @@ export default { ...@@ -75,21 +73,21 @@ export default {
background #b3ecff background #b3ecff
>img >img
width 100% width 100%
height 90% height 56%
&.box1 .box1
grid-area box1 grid-area box1
&.box2 .box2
grid-area box2 grid-area box2
&.box3 .box3
grid-area box3 grid-area box3
&.box4 .box4
grid-area box4 grid-area box4
&.box5 .box5
grid-area box5 grid-area box5
&.box6 .box6
grid-area box6 grid-area box6
&.box7 .box7
grid-area box7 grid-area box7
&:hover .box8
background-color $color-map(0.3) grid-area box8
</style> </style>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment