Commit 40b3ffdc authored by youjie's avatar youjie

修复放大缩小bug

parent ed3366af
......@@ -204,24 +204,27 @@
</div>
<div class="dayPage-box row">
<div class="dayPage-form relative" v-if="!item.isHide">
<el-tooltip class="item" effect="dark" content="放大行程" placement="top">
<span class="el-icon-full-screen absolute BlowUpTravelDays"
@click="clickBlowUpTravelDays(item)"></span>
</el-tooltip>
<template v-if="!item.IsBlowUp">
<travelDaysHV v-if="dataAll.FeaturePageType==1" :index="index" :dataAll="dataAll" :item="item">
</travelDaysHV>
<travelDays v-if="dataAll.FeaturePageType==2" :index="index" :dataAll="dataAll" :item="item">
</travelDays>
</template>
<div v-if="item.IsBlowUp" class="BlowUpTravelDaysBox">
<travelDaysHV v-if="dataAll.FeaturePageType==1" :index="index" :dataAll="dataAll" :item="item">
</travelDaysHV>
<travelDays v-if="dataAll.FeaturePageType==2" :index="index" :dataAll="dataAll" :item="item">
</travelDays>
<span v-if="item.IsBlowUp" class="el-icon-error BlowUpTravelDaysClose"
<template v-if="isTemplate">
<el-tooltip class="item" effect="dark" content="放大行程" placement="top">
<span class="el-icon-full-screen absolute BlowUpTravelDays"
@click="clickBlowUpTravelDays(item)"></span>
</div>
</el-tooltip>
<template v-if="!item.IsBlowUp">
<travelDaysHV v-if="dataAll.FeaturePageType==1" :index="index" :dataAll="dataAll" :item="item">
</travelDaysHV>
<travelDays v-if="dataAll.FeaturePageType==2" :index="index" :dataAll="dataAll" :item="item">
</travelDays>
</template>
<div v-if="item.IsBlowUp" class="BlowUpTravelDaysBox">
<travelDaysHV v-if="dataAll.FeaturePageType==1" :index="index" :dataAll="dataAll" :item="item">
</travelDaysHV>
<travelDays v-if="dataAll.FeaturePageType==2" :index="index" :dataAll="dataAll" :item="item">
</travelDays>
<span v-if="item.IsBlowUp" class="el-icon-error BlowUpTravelDaysClose"
@click="clickBlowUpTravelDays(item)"></span>
</div>
</template>
<span v-else style="color: red;">请选择版型</span>
</div>
<div class="newDayContent"
:style="{'width':!item.isHide?'520px':'1020px'}">
......@@ -276,23 +279,25 @@
},
methods: {
PromptTemplate(){
let _this = this
this.$confirm("一旦选择不可更改, 确认?", "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning"
})
.then(() => {
this.isTemplate = true
this.getFeaturePageType()
_this.isTemplate = true
_this.getFeaturePageType()
})
.catch(() => {
this.isTemplate = false
this.dataAll.FeaturePageType = 0
_this.isTemplate = false
_this.dataAll.FeaturePageType = 0
});
},
getFeaturePageType(){
this.subConfig.DayList.forEach(x=>{
x.IsBlowUp = false
x.ScenicArray.forEach(y=>{
y.ScenicJson = {
x: 0,
......@@ -361,6 +366,8 @@
dayItem.WarmTipObj = warmTipObj;
dayItem.isHide = false;
dayItem.isRead = false;
dayItem.IsBlowUp = false
dayItem.zoom = 1
if(this.dataAll.FeaturePageType==1){
dayItem.zoom = 0.285
}
......
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