Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
phsl
/
client
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
c277cb1e
authored
Jun 24, 2024
by
孙美琪
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
banner轮播图跳转
parent
0ce43b7a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
17 deletions
+24
-17
src/views/index-copy.vue
+24
-17
No files found.
src/views/index-copy.vue
View file @
c277cb1e
...
...
@@ -2,26 +2,26 @@
<div
class=
"app-container home"
>
<div
class=
"banner"
>
<el-carousel
height=
"600px"
:indicator-position=
"bannerImgList.length
<
=
1
?
'
none
'
:
''
"
>
<el-carousel-item
v-for=
"item in bannerImgList"
:key=
"item"
>
<el-carousel-item
v-for=
"item in bannerImgList"
:key=
"item"
@
click=
"handleCarousel(item.url)"
>
<img
:src=
"baseUrl + item.image"
alt=
""
>
</el-carousel-item>
</el-carousel>
<!--
<div
class=
"banner-text"
>
-->
<!--
<div
class=
"banner-left"
>
-->
<!--
<div>
开启先进计算
<span>
新时代
</span></div>
-->
<!--
<div>
安全 / 便携 / 弹性 / 丰富 / 节约 / 高效
</div>
-->
<!--
</div>
-->
<!--
<div
class=
"banner-right"
>
-->
<!--
<div
class=
"text-right"
>
-->
<!--
<div
class=
"text-right-del"
>
-->
<!--
<div>
OPENING
</div>
-->
<!--
<div>
UP BRILLIANCE
</div>
-->
<!--
</div>
-->
<!--
<div
class=
"exclamation-point"
>
!
</div>
-->
<!--
</div>
-->
<!--
<div
class=
"text-bottom"
>
THE
<span>
NEW ERA
</span></div>
-->
<!--
</div>
-->
<!--
</div>
-->
<!--
<div
class=
"banner-text"
>
-->
<!--
<div
class=
"banner-left"
>
-->
<!--
<div>
开启先进计算
<span>
新时代
</span></div>
-->
<!--
<div>
安全 / 便携 / 弹性 / 丰富 / 节约 / 高效
</div>
-->
<!--
</div>
-->
<!--
<div
class=
"banner-right"
>
-->
<!--
<div
class=
"text-right"
>
-->
<!--
<div
class=
"text-right-del"
>
-->
<!--
<div>
OPENING
</div>
-->
<!--
<div>
UP BRILLIANCE
</div>
-->
<!--
</div>
-->
<!--
<div
class=
"exclamation-point"
>
!
</div>
-->
<!--
</div>
-->
<!--
<div
class=
"text-bottom"
>
THE
<span>
NEW ERA
</span></div>
-->
<!--
</div>
-->
<!--
</div>
-->
</div>
<div
class=
"new-model"
>
<div
class=
"model-box"
v-for=
"(i,index) in list"
:key=
"i"
>
...
...
@@ -305,6 +305,12 @@ getInformation()
function
openAssembly
(
data
)
{
window
.
open
(
data
.
url
)
}
function
handleCarousel
(
url
)
{
if
(
url
)
{
window
.
open
(
url
)
}
}
</
script
>
<
style
scoped
lang=
"scss"
>
...
...
@@ -455,6 +461,7 @@ function openAssembly(data) {
.banner
{
position
:
relative
;
cursor
:
pointer
;
//
margin-bottom
:
64px
;
img
{
...
...
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