Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
million
Project
Project
Details
Activity
Releases
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
viitto
million
Commits
ec715801
Commit
ec715801
authored
Nov 27, 2024
by
youjie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no message
parent
b5637b1c
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
6 deletions
+9
-6
indexNav.vue
src/components/home/indexNav.vue
+5
-1
indexRoll1.vue
src/components/home/indexRoll1.vue
+3
-4
indexSlider.vue
src/components/home/indexSlider.vue
+1
-1
No files found.
src/components/home/indexNav.vue
View file @
ec715801
...
...
@@ -33,7 +33,7 @@
:class=
"[CurrentIndex==index?'animate__bounceInUp':'animate__bounceOutUp']"
>
<div
class=
"row justify-center"
>
<template
v-for=
"(items,i) in item.SubMenuList"
>
<a
class=
"SubMenuListText relative writing-modes-vertical
text-white
<a
class=
"SubMenuListText relative writing-modes-vertical
remSubText font-serifEn tracking-2 q-px-xs cursor-pointer inline-block row items-center"
@
click=
"OpenNewUrl(items.LinkUrl)"
>
<span>
{{
items
.
MenuName
}}
</span>
...
...
@@ -227,6 +227,10 @@ export default {
letter-spacing
:
normal
;
line-height
:
23px
;
color
:
rgb
(
255
,
255
,
255
);
transition
:
all
.5s
;
}
.SubMenuListText
:hover
{
color
:
$secondary
;
}
.SubMenuListLin
{
width
:
1px
;
...
...
src/components/home/indexRoll1.vue
View file @
ec715801
<
template
>
<div
class=
""
@
mousemove=
"handleMouseMove"
@
mouseleave=
"handleMouseLeave"
<div
class=
"
no-course
"
@
mousemove=
"handleMouseMove"
@
mouseleave=
"handleMouseLeave"
@
click=
"carousel(Current)"
>
<div
class=
"relative gap-1 overflow-hidden"
:style=
"
{'background-color':plugData.BgColor?plugData.BgColor:'#fff'}">
...
...
@@ -30,7 +30,6 @@
<template
v-for=
"(item, index) in plugData.NavList"
>
<swiper-slide
:key=
"index"
:index=
"index"
class=
"cursor-pointer"
>
<div
class=
"relative"
:style=
"
{'background':`url(${item.FileUrl})no-repeat`,'background-size':'cover'}"
style="border-radius:10px;">
<q-img
alt=
"image"
:ratio=
"16/9"
fill=
"cover"
/>
...
...
@@ -150,7 +149,8 @@
disableOnInteraction
:
false
},
// 开启自动轮播后,设置自动轮播的延迟时间
loopAdditionalSlides
:
0
,
loopAdditionalSlides
:
1000
,
parallax
:
true
,
breakpoints
:
{
1440
:
{
slidesPerView
:
1.5
,
...
...
@@ -200,7 +200,6 @@
let
swiperInstance
=
this
.
$refs
.
mySwiper
.
swiper
swiperInstance
.
loopedSlides
=
this
.
FileUrlList
.
length
swiperInstance
.
update
()
console
.
log
(
this
.
$refs
.
mySwiper
.
swiper
.
loopedSlides
,
'----'
)
},
500
);
},
methods
:
{
...
...
src/components/home/indexSlider.vue
View file @
ec715801
...
...
@@ -178,7 +178,7 @@ export default {
if
(
el
.
x
<
width
){
this
.
Current
=
'left'
}
else
if
(
el
.
x
>
width
)
this
.
Current
=
'right'
this
.
X
=
el
.
x
this
.
X
=
el
.
x
-
50
this
.
Y
=
el
.
y
+
(
document
.
documentElement
.
scrollTop
||
document
.
body
.
scrollTop
)
},
handleMouseLeave
(){
...
...
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