Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
E
exhibition_page
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
龙菲
exhibition_page
Commits
f9b244c9
提交
f9b244c9
authored
10月 12, 2022
作者:
Anix
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
首页精品展动画
上级
9f41a999
显示空白字符变更
内嵌
并排
正在显示
12 个修改的文件
包含
264 行增加
和
57 行删除
+264
-57
jyycc.jpg
src/assets/imgs/topic/jyycc/jyycc.jpg
+0
-0
sdcs.png
src/assets/imgs/topic/sdcs/sdcs.png
+0
-0
animal.png
src/assets/imgs/topic/smgz/animal.png
+0
-0
stone.png
src/assets/imgs/topic/smgz/stone.png
+0
-0
考古.png
src/assets/imgs/topic/smgz/考古.png
+0
-0
ylgdyw.png
src/assets/imgs/topic/ylgdyw/ylgdyw.png
+0
-0
Boutique.vue
src/views/home/components/Boutique.vue
+81
-11
swiper.vue
src/views/home/components/swiper.vue
+62
-33
jyycc.vue
src/views/home/components/topic/jyycc.vue
+26
-0
sdcs.vue
src/views/home/components/topic/sdcs.vue
+26
-0
smgz.vue
src/views/home/components/topic/smgz.vue
+45
-13
ylgdyw.vue
src/views/home/components/topic/ylgdyw.vue
+24
-0
没有找到文件。
src/assets/imgs/topic/jyycc/jyycc.jpg
0 → 100644
浏览文件 @
f9b244c9
208.1 KB
src/assets/imgs/topic/sdcs/sdcs.png
0 → 100644
浏览文件 @
f9b244c9
差异被折叠。
点击展开。
src/assets/imgs/topic/smgz/animal.png
查看替换文件 @
9f41a999
浏览文件 @
f9b244c9
差异被折叠。
点击展开。
src/assets/imgs/topic/smgz/stone.png
查看替换文件 @
9f41a999
浏览文件 @
f9b244c9
123.2 KB
|
W:
|
H:
111.8 KB
|
W:
|
H:
2-up
Swipe
Onion skin
src/assets/imgs/topic/smgz/考古.png
0 → 100644
浏览文件 @
f9b244c9
263.7 KB
src/assets/imgs/topic/ylgdyw/ylgdyw.png
0 → 100644
浏览文件 @
f9b244c9
差异被折叠。
点击展开。
src/views/home/components/Boutique.vue
浏览文件 @
f9b244c9
<
template
>
<div
class=
"boutique"
>
<el-carousel
class=
"slider"
autoplay
arrow=
"nerver"
>
<el-carousel-item>
<el-carousel
class=
"slider"
autoplay
arrow=
"nerver"
@
change=
"handleCarouselChange"
:interval=
"5000"
ref=
"cur_carousel"
>
<!--
<el-carousel-item>
<div
class=
"img-container"
>
<!--
<img
src=
"@/assets/imgs/boutique/1.jpg"
width=
"100%"
/>
-->
<m-smgz></m-smgz>
</div>
</el-carousel-item>
<el-carousel-item>
<div
class=
"img-container"
>
<m-jyycc></m-jyycc>
</div>
</el-carousel-item>
<el-carousel-item>
<div
class=
"img-container"
>
<m-ylgdyw></m-ylgdyw>
</div>
</el-carousel-item>
<el-carousel-item>
<div
class=
"img-container"
>
<m-sdcs></m-sdcs>
</div>
</el-carousel-item>
-->
<el-carousel-item
v-for=
"(node, i) in topics"
:key=
"i"
>
<div
class=
"img-container"
>
<component
:is=
"node.component"
v-if=
"node.show"
></component>
</div>
</el-carousel-item>
</el-carousel>
<div
class=
"bottom-carousel"
>
<m-swiper></m-swiper>
<m-swiper
:index
.
sync=
"curIndex"
@
setSwiper=
"setCarouselIndex"
></m-swiper>
</div>
</div>
</
template
>
<
script
>
import
mSmgz
from
"./topic/smgz.vue"
import
mJyycc
from
'./topic/jyycc.vue'
import
mYlgdyw
from
'./topic/ylgdyw.vue'
import
mSdcs
from
'./topic/sdcs.vue'
export
default
{
name
:
"Boutique"
,
components
:
{
mSmgz
:
()
=>
import
(
'./topic/smgz.vue'
),
mSwiper
:
()
=>
import
(
'./swiper.vue'
)
mSmgz
,
mJyycc
,
mYlgdyw
,
mSdcs
,
mSwiper
:
()
=>
import
(
"./swiper.vue"
),
},
data
()
{
return
{};
return
{
curIndex
:
0
,
topics
:
[
{
component
:
mSmgz
,
show
:
true
,
},
{
component
:
mJyycc
,
show
:
true
,
},
{
component
:
mYlgdyw
,
show
:
true
,
},
{
component
:
mSdcs
,
show
:
true
,
},
],
};
},
methods
:
{
handleCarouselChange
(
ix
)
{
console
.
log
(
'iiiiiiiiiiiiiiiiii:'
,
ix
)
this
.
curIndex
=
ix
this
.
topics
[
ix
].
show
=
false
;
this
.
$nextTick
(()
=>
{
this
.
topics
[
ix
].
show
=
true
;
});
},
setCarouselIndex
(
i
)
{
this
.
handleCarouselChange
(
i
)
let
em
=
this
.
$refs
[
'cur_carousel'
]
em
.
setActiveItem
(
i
)
}
},
};
</
script
>
...
...
@@ -37,10 +107,10 @@ export default {
height
:
100vh
;
width
:
100%
;
}
.img-container
{
.img-container
{
width
:
100%
;
height
:
100%
;
img
{
img
{
width
:
100%
;
height
:
100%
;
object-fit
:
cover
;
...
...
@@ -58,4 +128,5 @@ export default {
height
:
100%
;
}
}
</
style
>
>
\ No newline at end of file
</
style
>
>
src/views/home/components/swiper.vue
浏览文件 @
f9b244c9
...
...
@@ -6,9 +6,8 @@
:key=
"item.id"
:class=
"`block$
{5 - index}`"
class="list-complete-item"
@click="openLink(item.id)"
>
<img
:src=
"item.img"
alt=
"图片"
/>
<img
:src=
"item.img"
alt=
"图片"
@
click
.
stop=
"changeTopic(item.id)"
/>
<!--
<span
class=
"name"
>
{{
item
.
name
}}
</span>
-->
</div>
</transition-group>
...
...
@@ -16,44 +15,74 @@
</
template
>
<
script
>
import
pic
from
"@/assets/imgs/boutique/1.jpg"
;
import
pic0
from
"@/assets/imgs/boutique/1.jpg"
;
import
pic1
from
"@/assets/imgs/topic/jyycc/jyycc.jpg"
;
import
pic2
from
"@/assets/imgs/topic/ylgdyw/ylgdyw.png"
;
import
pic3
from
"@/assets/imgs/topic/sdcs/sdcs.png"
;
export
default
{
props
:
{
index
:
{
type
:
Number
,
default
:
0
,
},
},
data
()
{
return
{
list
:
[],
list
:
[
{
id
:
0
,
name
:
`card1`
,
url
:
`/#/`
,
img
:
pic0
,
},
{
id
:
1
,
name
:
`card2`
,
url
:
`/#/`
,
img
:
pic1
,
},
{
id
:
2
,
name
:
`card3`
,
url
:
`/#/`
,
img
:
pic2
,
},
{
id
:
3
,
name
:
`card4`
,
url
:
`/#/`
,
img
:
pic3
,
},
],
};
},
watch
:
{
index
(
cur
)
{
this
.
handleChange
(
cur
);
},
},
methods
:
{
getLoopData
()
{
let
arr
=
[];
for
(
let
i
=
0
;
i
<
5
;
i
++
)
{
arr
.
push
({
id
:
i
,
name
:
`card
${
i
+
1
}
`
,
url
:
`/#/`
,
img
:
pic
,
});
}
this
.
list
=
arr
;
handleChange
(
i
)
{
let
list
=
this
.
list
;
this
.
$nextTick
(()
=>
{
let
_this
=
this
;
setInterval
(()
=>
{
let
list
=
_this
.
list
;
let
first
=
list
[
0
];
// Math.floor(Math.random() * 1000 + Math.random())
// list.splice(list.length - 1, 1);
// list.splice(0, 0, first);
list
.
splice
(
0
,
1
);
list
.
push
(
first
);
},
5000
);
});
},
if
(
i
===
0
)
{
i
=
4
}
let
last
=
list
.
splice
(
0
,
Math
.
abs
(
i
-
first
.
id
));
list
.
splice
(
list
.
length
,
0
,
...
last
)
},
mounted
()
{
this
.
getLoopData
();
changeTopic
(
i
)
{
this
.
$emit
(
'setSwiper'
,
i
)
}
},
/* mounted() {
setTimeout(() => {
this.animate();
}, 6000);
}, */
};
</
script
>
...
...
@@ -88,9 +117,9 @@ export default {
&
:hover
{
// hover放大,突出显示
opacity
:
1
;
z-index
:
100
!
important
;
left
:
0
!
important
;
bottom
:
0
!
important
;
z-index
:
100
!
important
;
left
:
0
!
important
;
bottom
:
0
!
important
;
transform
:
scale
(
1
.5
)
!
important
;
&
>
img
{
cursor
:
pointer
;
...
...
@@ -161,7 +190,7 @@ export default {
}
}
.list-complete-item
{
transition
:
all
.3s
ease
;
transition
:
all
0
.3s
ease
;
}
.list-complete-enter
,
.list-complete-leave-to
/*
.list-complete-leave-active
for
below
version
2
.1.8
*/
{
...
...
src/views/home/components/topic/jyycc.vue
0 → 100644
浏览文件 @
f9b244c9
<
template
>
<div
class=
"m-jyycc"
>
<div
class=
"banner"
>
<img
src=
"@/assets/imgs/topic/jyycc/jyycc.jpg"
alt=
""
/>
</div>
</div>
</
template
>
<
script
>
export
default
{};
</
script
>
<
style
lang=
"scss"
scoped
>
.m-jyycc
{
.banner
{
width
:
100%
;
height
:
100%
;
>
img
{
width
:
100%
;
height
:
100%
;
}
}
}
</
style
>
\ No newline at end of file
src/views/home/components/topic/sdcs.vue
0 → 100644
浏览文件 @
f9b244c9
<
template
>
<div
class=
"m-sdcs"
>
<div
class=
"banner"
>
<img
src=
"@/assets/imgs/topic/sdcs/sdcs.png"
alt=
""
/>
</div>
</div>
</
template
>
<
script
>
export
default
{};
</
script
>
<
style
lang=
"scss"
scoped
>
.m-sdcs
{
.banner
{
width
:
100%
;
height
:
100%
;
>
img
{
width
:
100%
;
height
:
100%
;
}
}
}
</
style
>
\ No newline at end of file
src/views/home/components/topic/smgz.vue
浏览文件 @
f9b244c9
<
template
>
<div
class=
"m-smgz"
>
<div
class=
"waterfall"
>
<div
class=
"waterfall
animate__animated animate__fadeInLeft delay3
"
>
<img
src=
"@/assets/imgs/topic/smgz/waterfall.png"
alt=
""
/>
</div>
<div
class=
"gzmap"
>
<div
class=
"gzmap
animate__animated animate__fadeInRight delay3
"
>
<img
src=
"@/assets/imgs/topic/smgz/map.png"
alt=
""
/>
</div>
<div
class=
"animal"
>
<div
class=
"animal
animate__animated animate__fadeIn delay1
"
>
<img
src=
"@/assets/imgs/topic/smgz/animal.png"
alt=
""
/>
</div>
<div
class=
"stone"
>
<div
class=
"stone
animate__animated animate__fadeInRight
"
>
<img
src=
"@/assets/imgs/topic/smgz/stone.png"
alt=
""
/>
</div>
<div
class=
"fish"
>
<div
class=
"fish animate__animated animate__collapseInRight delay4"
>
<div>
<img
src=
"@/assets/imgs/topic/smgz/fish.png"
alt=
""
/>
</div>
<div
class=
"gzregion"
>
</div>
<div
class=
"gzregion animate__animated animate__fadeInRight delay4"
>
<img
src=
"@/assets/imgs/topic/smgz/region.png"
alt=
""
/>
</div>
<div
class=
"archaeology"
>
<div
class=
"archaeology
animate__animated animate__fadeInUp delay1
"
>
<img
src=
"@/assets/imgs/topic/smgz/archaeology.png"
alt=
""
/>
</div>
<div
class=
"evolution"
>
<div
class=
"evolution
animate__animated animate__bounceIn delay5
"
>
<img
src=
"@/assets/imgs/topic/smgz/evolution.png"
alt=
""
/>
</div>
<div
class=
"title-first"
>
<div
class=
"title-first
animate__animated animate__fadeInDown delay6
"
>
<img
src=
"@/assets/imgs/topic/smgz/smgz.png"
alt=
""
/>
</div>
<div
class=
"title-last"
>
<div
class=
"title-last
animate__animated animate__fadeInUp delay6
"
>
<img
src=
"@/assets/imgs/topic/smgz/gswwg.png"
alt=
""
/>
</div>
</div>
</
template
>
<
script
>
export
default
{};
export
default
{
methods
:
{}
};
</
script
>
<
style
lang=
"scss"
scoped
>
...
...
@@ -81,10 +85,17 @@ export default {};
height
:
calc
(
100%
-
55px
);
}
.fish
{
left
:
5
0px
;
right
:
136
0px
;
top
:
128px
;
width
:
512px
;
height
:
276px
;
overflow
:
hidden
;
>
div
{
position
:
absolute
;
right
:
0
;
top
:
0
;
width
:
512px
;
height
:
100%
;
}
}
.gzregion
{
bottom
:
140px
;
...
...
@@ -110,5 +121,26 @@ export default {};
width
:
418px
;
height
:
125px
;
}
@for
$var
from
1
through
8
{
$date
:
$var
*
0
.5
+
s
;
.delay
#{
$var
}
{
animation-delay
:
$date
;
}
}
.animate__collapseInRight
{
animation-name
:
collapseInRight
;
}
@keyframes
collapseInRight
{
0
%
{
width
:
0
;
overflow
:
hidden
;
}
100
%
{
width
:
512px
;
overflow
:
hidden
;
}
}
}
</
style
>
src/views/home/components/topic/ylgdyw.vue
0 → 100644
浏览文件 @
f9b244c9
<
template
>
<div
class=
"m-ylgdyw"
>
<div
class=
"banner"
>
<img
src=
"@/assets/imgs/topic/ylgdyw/ylgdyw.png"
alt=
""
/>
</div>
</div>
</
template
>
<
script
>
export
default
{};
</
script
>
<
style
lang=
"scss"
scoped
>
.m-ylgdyw
{
.banner
{
width
:
100%
;
height
:
100%
;
>
img
{
width
:
100%
;
height
:
100%
;
}
}
}
</
style
>
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论