Commit 13915e9f authored by 华国豪's avatar 华国豪 🙄

'行程特色图片位置问题@@@'

parent ea3583a8
......@@ -1410,9 +1410,9 @@
}
let json = this.FeatureData.FeatureHtmlJson ? JSON.parse(JSON.stringify(this.FeatureData.FeatureHtmlJson)) : '';
// console.log("jsonjsonjson",json)
this.hotelObj.title = json.hotelObj.title.first ? json.hotelObj.title : this.hotelObj.title;
this.restaurantObj.title = json.restaurantObj.title ? json.restaurantObj.title : this.restaurantObj.title;
this.viewSpotObj.title = json.viewSpotObj.title ? json.viewSpotObj.title : this.viewSpotObj.title;
this.hotelObj.title = json.hotelObj ? json.hotelObj.title : this.hotelObj.title;
this.restaurantObj.title = json.restaurantObj ? json.restaurantObj.title : this.restaurantObj.title;
this.viewSpotObj.title = json.viewSpotObj ? json.viewSpotObj.title : this.viewSpotObj.title;
},
// 酒店图片拖拽
onHotelDragstop(x,y){
......
......@@ -253,11 +253,15 @@
},
created() {
this.scenicArray.forEach(x=>{
if(!x.ScenicJson){
x.ScenicJson={ x:0, y:0 };
}
});
// this.scenicArray.forEach(x=>{
// if(!x.ScenicJson){
// x.ScenicJson= x.ScenicJsonStr ? JSON{ x:0, y:0 };
// }
// });
this.scenicArray.forEach(x=>{
x.ScenicJson = typeof(x.ScenicJsonStr) === 'string' ? JSON.parse(x.ScenicJsonStr) : { x:0, y:0 };
console.log(typeof(x.ScenicJsonStr) === 'string')
})
},
components: {
DMCchooseImg,
......
......@@ -301,6 +301,9 @@
methods: {
//非直采切换
NoDirectScenicCheck(number) {
// this.dayObj.ScenicArray.forEach(x=>{
// x.ScenicJson = x.ScenicJsonStr ? JSON.parse(x.ScenicJsonStr) : { x:0, y:0 };
// })
if (this.dayObj.ScenicArray == null) {
this.dayObj.ScenicArray = [];
}
......
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