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
bd5570e2
Commit
bd5570e2
authored
Dec 03, 2024
by
youjie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no message
parent
1e782eeb
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
55 additions
and
38 deletions
+55
-38
left.svg
src/assets/svg/left.svg
+11
-0
right.svg
src/assets/svg/right.svg
+10
-4
right0.svg
src/assets/svg/right0.svg
+5
-0
indexRoll1.vue
src/components/home/indexRoll1.vue
+10
-7
indexSlider.vue
src/components/home/indexSlider.vue
+18
-26
mouse.vue
src/components/home/mouse.vue
+1
-1
No files found.
src/assets/svg/left.svg
0 → 100644
View file @
bd5570e2
<svg
xmlns=
"http://www.w3.org/2000/svg"
width=
"72"
height=
"72"
viewBox=
"0 0 72 72"
>
<defs>
<style>
.cls-1 {
fill: #9b8a6f;
fill-rule: evenodd;
}
</style>
</defs>
<path
id=
"left.svg"
class=
"cls-1"
d=
"M171.012,450.985a36,36,0,1,0,36,36A36,36,0,0,0,171.012,450.985Zm0,1a35,35,0,1,0,35,35A35,35,0,0,0,171.011,451.985ZM183.165,486h-25v1h25v-1Zm-18.008-5.022L158.169,486v1l6.988-5.021v-1Zm0,11.038L158.169,487v-1l6.988,5.021v1Z"
transform=
"translate(-135 -451)"
/>
</svg>
src/assets/svg/right.svg
View file @
bd5570e2
<?xml version="1.0" encoding="UTF-8"?>
<svg
xmlns=
"http://www.w3.org/2000/svg"
width=
"25.352"
height=
"7.787"
>
<path
fill=
"none"
stroke=
"#897658"
stroke-linecap=
"round"
d=
"M23.719 3.893H.5"
></path>
<path
d=
"m17.776 0 7.576 3.893-7.576 3.893 3.076-3.893Z"
fill=
"#897658"
></path>
<svg
xmlns=
"http://www.w3.org/2000/svg"
width=
"72"
height=
"72"
viewBox=
"0 0 72 72"
>
<defs>
<style>
.cls-1 {
fill: #9b8a6f;
fill-rule: evenodd;
}
</style>
</defs>
<path
id=
"right.svg"
class=
"cls-1"
d=
"M259.012,450.985a36,36,0,1,0,36,36A36,36,0,0,0,259.012,450.985Zm0,1a35,35,0,1,0,35,35A35,35,0,0,0,259.011,451.985Zm-12,35.02H272v1H247.012v-1Zm18-5,6.985,5v1l-6.985-5v-1Zm0,10.99L272,488v-1l-6.985,5v1Z"
transform=
"translate(-223 -451)"
/>
</svg>
src/assets/svg/right0.svg
0 → 100644
View file @
bd5570e2
<?xml version="1.0" encoding="UTF-8"?>
<svg
xmlns=
"http://www.w3.org/2000/svg"
width=
"25.352"
height=
"7.787"
>
<path
fill=
"none"
stroke=
"#897658"
stroke-linecap=
"round"
d=
"M23.719 3.893H.5"
></path>
<path
d=
"m17.776 0 7.576 3.893-7.576 3.893 3.076-3.893Z"
fill=
"#897658"
></path>
</svg>
src/components/home/indexRoll1.vue
View file @
bd5570e2
...
...
@@ -65,7 +65,7 @@
<div
class=
"swipercomTitleL row"
>
<div
class=
"font-serifEn"
>
{{ item.SubName }}
</div>
</div>
<div
v-if=
"windowWidth>
1280
"
class=
"swipercomTitleA"
>
<div
v-if=
"windowWidth>
=768
"
class=
"swipercomTitleA"
>
<q-separator
vertical
inset
class=
"q-mx-lg q-py-lg"
/>
</div>
<div
class=
"swipercomTitleR text-left font-serifEn col"
>
...
...
@@ -252,16 +252,19 @@
}
}
</
script
>
<
style
scoped
>
.activeL
{
cursor
:
url('../../assets/svg/left.svg')
,
auto
;
}
.activeR
{
cursor
:
url('../../assets/svg/right.svg')
,
auto
;
}
</
style
>
<
style
lang=
"scss"
>
.indexRoll1Box
{
overflow
:
hidden
;
}
.activeL
{
cursor
:
url('../../assets/img/home/left.png')
,
auto
!
important
;
}
.activeR
{
cursor
:
url('../../assets/img/home/right.png')
,
auto
!
important
;
}
.indexRoll1Hst
{
font-size
:
1
.25rem
;
left
:
0
;
...
...
src/components/home/indexSlider.vue
View file @
bd5570e2
<
template
>
<!-- no-course -->
<!-- :class="[Current=='left'?'activeL':Current=='right'?'activeR':'']" -->
<!-- :style="[Current=='left'?`cursor:url($
{cursorUrlL}),auto,fontSize:${cursorSize} + 'px'`:Current=='right'?`cursor:url(${cursorUrlR}),auto,fontSize:${cursorSize} + 'px'`:''
]" -->
<div
class=
"indexSliderBox animate__animated duration2"
@
mousemove=
"handleMouseMove"
@
mouseleave=
"handleMouseLeave"
:style=
"
{ cursor: 'url(' + `${Current=='left'?cursorUrlL:Current=='right'?cursorUrlR:''}` + '), auto',
fontSize: cursorSize + 'px'}"
:class=
"[Current=='left'?'activeL':Current=='right'?'activeR':'']"
@
click=
"carousel(Current)"
>
<div
class=
"relative gap-1 overflow-hidden"
:style=
"
{'background-color':plugData.BgColor?plugData.BgColor:'#fff'}"
...
...
@@ -114,7 +109,7 @@
</div>
</div>
</div>
<!-- <mouse v-if="windowWidth>=768
&&isRight
" :X="X" :Y="Y" :isRight="isRight" :Current="Current"></mouse> -->
<!-- <mouse v-if="windowWidth>=768" :X="X" :Y="Y" :isRight="isRight" :Current="Current"></mouse> -->
</div>
</template>
...
...
@@ -132,8 +127,8 @@ export default {
autoplay
:
40000000
,
FileUrlList
:
[],
isRight
:
false
,
cursorUrlL
:
require
(
'../../assets/
img/home/left.pn
g'
),
cursorUrlR
:
require
(
'../../assets/
img/home/right.pn
g'
),
cursorUrlL
:
require
(
'../../assets/
svg/left.sv
g'
),
cursorUrlR
:
require
(
'../../assets/
svg/right.sv
g'
),
cursorSize
:
16
,
}
},
...
...
@@ -180,18 +175,21 @@ export default {
}
},
handleMouseMove
(
el
)
{
console
.
log
(
el
.
clientX
,
'-------------'
)
if
(
this
.
windowWidth
<
768
)
return
this
.
Current
=
null
if
(
!
this
.
isRight
)
this
.
isRight
=
true
let
width
=
this
.
windowWidth
/
2
if
(
el
.
x
<
width
){
this
.
Current
=
'left'
//
this.X = el.x+50
this
.
X
=
el
.
x
+
50
}
else
if
(
el
.
x
>
width
)
{
this
.
Current
=
'right'
//
this.X = el.x-50
this
.
X
=
el
.
x
-
50
}
// this.Y = el.y+(document.documentElement.scrollTop || document.body.scrollTop)
this
.
Y
=
el
.
y
+
(
document
.
documentElement
.
scrollTop
||
document
.
body
.
scrollTop
)
// this.X = el.clientX
// this.Y = el.clientY
},
handleMouseLeave
(){
this
.
isRight
=
false
...
...
@@ -199,6 +197,14 @@ export default {
}
}
</
script
>
<
style
scoped
>
.activeL
{
cursor
:
url('../../assets/svg/left.svg')
,
auto
;
}
.activeR
{
cursor
:
url('../../assets/svg/right.svg')
,
auto
;
}
</
style
>
<
style
lang=
"scss"
>
.indexSlider-right
{
.q-carousel
{
...
...
@@ -215,20 +221,6 @@ export default {
.indexSliderBox
{
height
:
100%
;
}
.activeL
{
cursor
:
url('../../assets/img/home/left.png')
,
auto
!
important
;
/* 禁止缩放cursor */
-webkit-user-zoom
:
fixed
!
important
;
-moz-user-zoom
:
fixed
!
important
;
user-zoom
:
fixed
!
important
;
/* 以下是针对IE的额外设置 */
-ms-user-zoom
:
fixed
!
important
;
-ms-touch-action
:
none
!
important
;
}
.activeR
{
cursor
:
url('../../assets/img/home/right.png')
,
auto
!
important
;
}
.indexSliderBox.q-py
{
padding
:
80px
0
40px
0
;
}
...
...
src/components/home/mouse.vue
View file @
bd5570e2
...
...
@@ -5,7 +5,7 @@
:style=
"
{left:`${X}px`,top:`${Y}px`}"
:class="[isRight?'active':'']">
<div
class=
"sliderRightC relative row justify-center items-center backdrop-blur"
:class=
"[Current=='left'?'active':'']"
>
<img
src=
"../../assets/svg/right.svg"
alt=
"Logo"
>
<img
src=
"../../assets/svg/right
0
.svg"
alt=
"Logo"
>
</div>
</div>
</
template
>
...
...
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