Commit 50729d6c authored by 沈良进's avatar 沈良进

Merge branch 'master' of http://gitlab.oytour.com/viitto/million

parents 913b8e34 9e55d922
<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
<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) {
......
<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;
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment