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
1cd276b5
Commit
1cd276b5
authored
Dec 04, 2024
by
youjie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no message
parent
ac178a41
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
34 additions
and
23 deletions
+34
-23
indexRoll1.vue
src/components/home/indexRoll1.vue
+9
-7
indexRoll2.vue
src/components/home/indexRoll2.vue
+10
-8
indexSlider.vue
src/components/home/indexSlider.vue
+15
-8
No files found.
src/components/home/indexRoll1.vue
View file @
1cd276b5
...
...
@@ -35,17 +35,19 @@
style="border-radius:10px;" @click.stop="OpenUrl(item.LinkUrl,index)" >
<template
v-if=
"item.FileType==1"
>
<q-img
:src=
"item.FileUrl"
no-default-spinner
alt=
"image"
:ratio=
"16/9"
fill=
"cover"
@
click
.
stop=
"OpenUrl(item.LinkUrl,index)"
class=
""
>
@
click
.
stop=
"OpenUrl(item.LinkUrl,index)"
class=
"
relative
"
>
<template
v-slot:error
>
<div
class=
"absolute inSliMLogo"
>
<q-img
v-if=
"plugData.MLogo"
:src=
"plugData.MLogo"
style=
"width: 2rem;height: 2rem;background: none;"
/>
</div>
<img
class=
"absolute inSliMLogo"
v-if=
"plugData.MLogo"
:src=
"plugData.MLogo"
style=
"width: 35px;background: rgba(25,25,25,0);"
/>
</
template
>
</q-img>
</template>
<q-img
v-if=
"item.FileType==2"
:ratio=
"16/9"
class=
"carousel1-rightV"
@
click
.
stop=
"OpenUrl(item.LinkUrl,index)"
>
<
template
v-slot:error
>
<img
class=
"absolute inSliMLogo"
v-if=
"plugData.MLogo"
:src=
"plugData.MLogo"
style=
"width: 35px;background: rgba(25,25,25,0);"
/>
</
template
>
<!-- autoplay -->
<video
:src=
"item.FileUrl"
muted
:ref=
"`videoPlayerRoll1${index}`"
...
...
@@ -482,8 +484,8 @@
}
.inSliMLogo
{
top
:
9rem
;
right
:
.5rem
;
bottom
:
10px
;
right
:
10
;
background
:
none
;
}
.swipercomSubEnR
{
...
...
src/components/home/indexRoll2.vue
View file @
1cd276b5
...
...
@@ -37,16 +37,18 @@
<template
v-if=
"item.FileType==1"
>
<q-img
:src=
"item.FileUrl"
alt=
"image"
:ratio=
"0.64"
fill=
"cover"
@
click
.
stop=
"OpenNewUrl(item.LinkUrl)"
>
<template
v-slot:error
>
<div
class=
"absolute inSliMLogo"
>
<q-img
v-if=
"plugData.MLogo"
:src=
"plugData.MLogo"
style=
"width: 2rem;height: 2rem;background: none;"
/>
</div>
</
template
>
<template
v-slot:error
>
<img
class=
"absolute inSliMLogo"
v-if=
"plugData.MLogo"
:src=
"plugData.MLogo"
style=
"width: 35px;background: rgba(25,25,25,0);"
/>
</
template
>
</q-img>
</template>
<div
class=
"carousel1-rightV"
>
<q-img
v-show=
"item.FileType==2"
:ratio=
"0.64"
>
<
template
v-slot:error
>
<img
class=
"absolute inSliMLogo"
v-if=
"plugData.MLogo"
:src=
"plugData.MLogo"
style=
"width: 35px;background: rgba(25,25,25,0);"
/>
</
template
>
<!-- autoplay controls-->
<video
:src=
"item.FileUrl"
muted
:ref=
"`videoPlayerRoll2${index}`"
...
...
@@ -446,8 +448,8 @@
}
.inSliMLogo
{
top
:
9rem
;
right
:
.5rem
;
bottom
:
10px
;
right
:
10px
;
background
:
none
;
}
.swipercomSubEnR
{
...
...
src/components/home/indexSlider.vue
View file @
1cd276b5
...
...
@@ -41,21 +41,27 @@
<q-carousel-slide
:key=
"index"
:name=
"index+1"
class=
"indexSliderImgC"
>
<div
class=
"col relative h100"
:class=
"[slide==index+1?'':'']"
>
<q-img
class=
"cursor-pointer"
:ratio=
"16/9"
v-if=
"item.FileType==1"
:src=
"item.FileUrl"
fill=
"cover"
@
click
.
stop=
"OpenNewUrl(item.LinkUrl)"
>
<q-img
class=
"cursor-pointer
relative
"
:ratio=
"16/9"
v-if=
"item.FileType==1"
:src=
"item.FileUrl"
fill=
"cover"
@
click
.
stop=
"OpenNewUrl(item.LinkUrl)"
>
<template
v-slot:error
>
<div
class=
"absolute inSliMLogo"
>
<q-img
v-if=
"plugData.MLogo"
:src=
"plugData.MLogo"
style=
"width: 2rem;height: 2rem;background: none;"
/>
</div>
<img
class=
"absolute inSliMLogo"
v-if=
"plugData.MLogo"
:src=
"plugData.MLogo"
style=
"width: 35px;background: rgba(25,25,25,0);"
/>
</
template
>
</q-img>
<q-img
v-show=
"item.FileType==2"
:ratio=
"16/9"
class=
"cursor-pointer carousel1-rightV"
>
<
template
v-slot:error
>
<img
class=
"absolute inSliMLogo"
v-if=
"plugData.MLogo"
:src=
"plugData.MLogo"
style=
"width: 35px;background: rgba(25,25,25,0);"
/>
</
template
>
<video
:src=
"item.FileUrl"
muted
controls
:ref=
"`videoPlayerSli${index+1}`"
@
timeupdate=
"(event)=>handleTimeUpdate(event,`videoPlayerSli${index+1}`,index)"
@
ended=
"(event)=>handleEnded(event,`videoPlayerSli${index+1}`,index)"
></video>
</q-img>
<!-- <div class="absolute inSliMLogo">
<q-img v-if="plugData.MLogo" :src="plugData.MLogo"
style="width: 2rem;height: 2rem;background: none;"/>
</div> -->
<div
class=
"inSliSubNameBox absolute cursor-pointer"
:style=
"{'background-color':windowWidth>=992?plugData.BgColor:''}"
:class=
"[windowWidth>=992?'h-66':'',]"
>
...
...
@@ -128,7 +134,7 @@ export default {
Y
:
0
,
Current
:
null
,
slide
:
1
,
autoplay
:
5000
,
autoplay
:
5000
0000
,
FileUrlList
:
[],
isRight
:
false
,
cursorUrlL
:
require
(
'../../assets/svg/left.svg'
),
...
...
@@ -496,9 +502,10 @@ export default {
}
.inSliMLogo
{
top
:
9rem
;
right
:
.5rem
;
bottom
:
10px
;
right
:
10px
;
background
:
none
;
z-index
:
9999
;
}
.inSliBox
{
width
:
8px
;
...
...
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