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
50729d6c
Commit
50729d6c
authored
Mar 14, 2023
by
沈良进
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://gitlab.oytour.com/viitto/million
parents
913b8e34
9e55d922
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
30 additions
and
7 deletions
+30
-7
paragraph.vue
src/components/label_other/paragraph.vue
+6
-2
small.vue
src/components/label_slider/small.vue
+15
-4
customer.vue
src/pages/customer.vue
+9
-1
No files found.
src/components/label_other/paragraph.vue
View file @
50729d6c
<
template
>
<div
class=
"q-mt-lg"
>
<div
class=
"section-block paragraph1"
>
{{
plugData
.
ParagraphContent
}}
<div
class=
"section-block paragraph1"
v-html=
"plugData.ParagraphContent"
>
</div>
</div>
</
template
>
...
...
@@ -19,4 +18,9 @@
padding
:
20px
0
;
color
:
#666
;
}
.paragraph1
li
{
list-style
:
none
;
padding
:
0
;
margin
:
0
;
}
</
style
>
\ No newline at end of file
src/components/label_slider/small.vue
View file @
50729d6c
<
template
>
<!--輪播圖-小-->
<q-carousel
v-model=
"slide"
transition-prev=
"slide-right"
transition-next=
"slide-left"
:autoplay=
"5000"
swipeable
animated
control-color=
"white"
padding
arrows
infinite
height=
"235px"
class=
"bg-primary text-white shadow-1 q-mt-lg q-mb-xl"
>
<q-carousel-slide
v-for=
"(x, i) in plugData.Details"
:key=
"i"
@
click=
"clickSlideHandler(x.LinkUrl)"
:name=
"i"
:img-src=
"x.LinkImg"
/>
animated
control-color=
"white"
padding
:arrows=
"imgLength>1"
infinite
height=
"235px"
class=
"bg-primary text-white q-mb-xl"
>
<template
v-for=
"(x, i) in plugData.Details"
>
<q-carousel-slide
:key=
"i"
v-if=
"x.LinkImg"
@
click=
"clickSlideHandler(x.LinkUrl)"
:name=
"i"
:img-src=
"x.LinkImg"
>
<div
class=
"full-height column justify-center text-h4"
>
<div
class=
"text-center text-shadow"
>
{{
plugData
.
Title
}}
</div>
</div>
</q-carousel-slide>
</
template
>
</q-carousel>
</template>
<
script
>
export
default
{
props
:
[
"plugData"
],
data
()
{
return
{
slide
:
0
,
imgLength
:
0
};
},
created
()
{
this
.
imgLength
=
this
.
plugData
.
Details
.
filter
(
x
=>
x
.
LinkImg
!=
''
).
length
},
methods
:
{
clickSlideHandler
(
url
)
{
if
(
url
&&
url
.
length
>
1
)
{
...
...
src/pages/customer.vue
View file @
50729d6c
<
template
>
<q-page>
<q-page
>
<template
v-for=
"(item,index) in CustomerData"
>
<div
:key=
"index"
>
<!--自訂版型(影片)-->
...
...
@@ -62,6 +62,7 @@
<!--自訂版型(輪播圖)white_label_slider-->
<sliderBig
v-if=
"item.Id=='white_label_slider'&&item.plugData.Type==1"
:plugData=
"item.plugData"
></sliderBig>
<sliderSmall
v-if=
"item.Id=='white_label_slider'&&item.plugData.Type==2"
:plugData=
"item.plugData"
>
</sliderSmall>
...
...
@@ -235,6 +236,12 @@
return
{
Id
:
0
,
CustomerData
:
{},
pageTitle
:
''
};
},
meta
()
{
return
{
title
:
this
.
pageTitle
};
},
created
()
{
...
...
@@ -255,6 +262,7 @@
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
if
(
res
.
data
.
data
)
{
this
.
pageTitle
=
res
.
data
.
data
.
PageName
this
.
CustomerData
=
res
.
data
.
data
.
PageDataList
;
}
}
...
...
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