Commit ab10755e authored by youjie's avatar youjie

no message

parent 236ac5c3
...@@ -125,7 +125,7 @@ ...@@ -125,7 +125,7 @@
v-if="item.ScenicArray.length>0||item.TrafficObj.trafficIntroduce.IntroduceImage" :w="786" v-if="item.ScenicArray.length>0||item.TrafficObj.trafficIntroduce.IntroduceImage" :w="786"
:h="524" :ref="'viewSpotVds_' + item * 4 + '_0'+index" tabindex="0" :resizable="false" :h="524" :ref="'viewSpotVds_' + item * 4 + '_0'+index" tabindex="0" :resizable="false"
:active="false" :parent="false" axis="y" @activated="onActivated(0)" :active="false" :parent="false" axis="y" @activated="onActivated(0)"
:x="ScenicArrayList&&ScenicArrayList.length>0?ScenicArrayList[0].ScenicJson.x:item.TrafficObj.trafficIntroduce.x" :x="0"
:y="ScenicArrayList&&ScenicArrayList.length>0?ScenicArrayList[0].ScenicJson.y:item.TrafficObj.trafficIntroduce.y" :y="ScenicArrayList&&ScenicArrayList.length>0?ScenicArrayList[0].ScenicJson.y:item.TrafficObj.trafficIntroduce.y"
:z="2" @dragstop="onViewSpotDragstop"> :z="2" @dragstop="onViewSpotDragstop">
<template v-if="ScenicArrayList&&ScenicArrayList.length>0"> <template v-if="ScenicArrayList&&ScenicArrayList.length>0">
...@@ -175,7 +175,7 @@ ...@@ -175,7 +175,7 @@
v-if="item.ScenicArray.length>1||item.TrafficObj.trafficIntroduce.IntroduceImage" :w="786" v-if="item.ScenicArray.length>1||item.TrafficObj.trafficIntroduce.IntroduceImage" :w="786"
:h="524" :ref="'viewSpotVds_' + item * 4 + '_1'+index" tabindex="0" :resizable="false" :h="524" :ref="'viewSpotVds_' + item * 4 + '_1'+index" tabindex="0" :resizable="false"
:active="false" :parent="false" axis="y" @activated="onActivated(1)" :active="false" :parent="false" axis="y" @activated="onActivated(1)"
:x="ScenicArrayList&&ScenicArrayList.length>1?ScenicArrayList[1].ScenicJson.x:item.TrafficObj.trafficIntroduce.x" :x="0"
:y="ScenicArrayList&&ScenicArrayList.length>1?ScenicArrayList[1].ScenicJson.y:item.TrafficObj.trafficIntroduce.y" :y="ScenicArrayList&&ScenicArrayList.length>1?ScenicArrayList[1].ScenicJson.y:item.TrafficObj.trafficIntroduce.y"
:z="2" @dragstop="onViewSpotDragstop"> :z="2" @dragstop="onViewSpotDragstop">
<template v-if="ScenicArrayList&&ScenicArrayList.length>1"> <template v-if="ScenicArrayList&&ScenicArrayList.length>1">
...@@ -597,6 +597,9 @@ ...@@ -597,6 +597,9 @@
this.$refs[ this.$refs[
"viewSpotVds_" + (this.item * 4) + "_" + this.imgIndex + this.index "viewSpotVds_" + (this.item * 4) + "_" + this.imgIndex + this.index
]._data.top = y; ]._data.top = y;
this.$refs[
"viewSpotVds_" + (this.item * 4) + "_" + this.imgIndex + this.index
]._data.left = 0;
}, },
onViewSpotDragstopY(x, y) { onViewSpotDragstopY(x, y) {
let imgWidth = document.querySelector( let imgWidth = document.querySelector(
...@@ -636,6 +639,9 @@ ...@@ -636,6 +639,9 @@
this.$refs[ this.$refs[
"viewSpotVds_" + (this.item * 4) + "_" + this.imgIndex + this.index "viewSpotVds_" + (this.item * 4) + "_" + this.imgIndex + this.index
]._data.left = x; ]._data.left = x;
this.$refs[
"viewSpotVds_" + (this.item * 4) + "_" + this.imgIndex + this.index
]._data.top = 0;
}, },
SelectImg(index) { SelectImg(index) {
......
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