Commit a407b4cf authored by youjie's avatar youjie
parents 8cb6c5d1 7fd3f019
...@@ -152,9 +152,9 @@ ...@@ -152,9 +152,9 @@
var oldJson = this.FeatureData.FeatureHtmlJson ? var oldJson = this.FeatureData.FeatureHtmlJson ?
JSON.parse(JSON.stringify(this.FeatureData.FeatureHtmlJson)) : JSON.parse(JSON.stringify(this.FeatureData.FeatureHtmlJson)) :
""; "";
console.log("oldJson",oldJson); console.log("oldJson", oldJson);
if (oldJson && oldJson.length>0) { if (oldJson && oldJson.length > 0) {
this.pageList=oldJson; this.pageList = oldJson;
} else { } else {
var tripObj = this.getTripData(); var tripObj = this.getTripData();
console.log("tripObj", tripObj); console.log("tripObj", tripObj);
...@@ -316,23 +316,26 @@ ...@@ -316,23 +316,26 @@
} }
if (dItem.HotelArray && dItem.HotelArray.length > 0) { if (dItem.HotelArray && dItem.HotelArray.length > 0) {
dItem.HotelArray.forEach(sItem => { dItem.HotelArray.forEach(sItem => {
var tempImgList = []; //排除“温馨的家”和“机场附近酒店”
if (sItem.ImaArray && sItem.ImaArray.length > 0) { if (sItem.HotelId != 1568 && sItem.HotelId != 2353) {
sItem.ImaArray.forEach(iItem => { var tempImgList = [];
tempImgList.push({ if (sItem.ImaArray && sItem.ImaArray.length > 0) {
url: iItem.Url sItem.ImaArray.forEach(iItem => {
}); tempImgList.push({
}) url: iItem.Url
} });
var hObj = { })
MainName: sItem.HotelName, }
MainDesc: sItem.Description, var hObj = {
ImgList: tempImgList, MainName: sItem.HotelName,
SourceType: 4 MainDesc: sItem.Description,
} ImgList: tempImgList,
var tempHotel = hotelArray.find(x => x.MainName == hObj.MainName) SourceType: 4
if (!tempHotel) { }
hotelArray.push(hObj); var tempHotel = hotelArray.find(x => x.MainName == hObj.MainName)
if (!tempHotel) {
hotelArray.push(hObj);
}
} }
}); });
} }
......
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