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

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

parents 913b8e34 9e55d922
<template> <template>
<div class="q-mt-lg"> <div class="q-mt-lg">
<div class="section-block paragraph1"> <div class="section-block paragraph1" v-html="plugData.ParagraphContent">
{{plugData.ParagraphContent}}
</div> </div>
</div> </div>
</template> </template>
...@@ -19,4 +18,9 @@ ...@@ -19,4 +18,9 @@
padding: 20px 0; padding: 20px 0;
color: #666; color: #666;
} }
.paragraph1 li{
list-style: none;
padding:0;
margin:0;
}
</style> </style>
\ No newline at end of file
<template> <template>
<!--輪播圖-小--> <!--輪播圖-小-->
<q-carousel v-model="slide" transition-prev="slide-right" transition-next="slide-left" :autoplay="5000" swipeable <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" animated control-color="white" padding :arrows="imgLength>1" infinite height="235px"
class="bg-primary text-white shadow-1 q-mt-lg q-mb-xl"> class="bg-primary text-white q-mb-xl">
<q-carousel-slide v-for="(x, i) in plugData.Details" :key="i" @click="clickSlideHandler(x.LinkUrl)" :name="i" <template v-for="(x, i) in plugData.Details">
:img-src="x.LinkImg" /> <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> </q-carousel>
</template> </template>
<script> <script>
export default { export default {
props: ["plugData"], props: ["plugData"],
data() { data() {
return { return {
slide: 0, slide: 0,
imgLength:0
}; };
}, },
created() {
this.imgLength = this.plugData.Details.filter(x=>x.LinkImg!='').length
},
methods: { methods: {
clickSlideHandler(url) { clickSlideHandler(url) {
if (url && url.length > 1) { if (url && url.length > 1) {
......
<template> <template>
<q-page> <q-page >
<template v-for="(item,index) in CustomerData"> <template v-for="(item,index) in CustomerData">
<div :key="index"> <div :key="index">
<!--自訂版型(影片)--> <!--自訂版型(影片)-->
...@@ -62,6 +62,7 @@ ...@@ -62,6 +62,7 @@
<!--自訂版型(輪播圖)white_label_slider--> <!--自訂版型(輪播圖)white_label_slider-->
<sliderBig v-if="item.Id=='white_label_slider'&&item.plugData.Type==1" :plugData="item.plugData"></sliderBig> <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 v-if="item.Id=='white_label_slider'&&item.plugData.Type==2" :plugData="item.plugData">
</sliderSmall> </sliderSmall>
...@@ -235,6 +236,12 @@ ...@@ -235,6 +236,12 @@
return { return {
Id: 0, Id: 0,
CustomerData: {}, CustomerData: {},
pageTitle:''
};
},
meta() {
return {
title: this.pageTitle
}; };
}, },
created() { created() {
...@@ -255,6 +262,7 @@ ...@@ -255,6 +262,7 @@
res => { res => {
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
if (res.data.data) { if (res.data.data) {
this.pageTitle = res.data.data.PageName
this.CustomerData = res.data.data.PageDataList; 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