Commit fd0ebf28 authored by 黄奎's avatar 黄奎

页面修改

parent 4a6d1b6b
...@@ -1176,18 +1176,19 @@ ...@@ -1176,18 +1176,19 @@
x.type = 2 x.type = 2
}) })
} }
//获取酒店坐标 if (this.dataList && this.dataList.length > 0) {
this.dataList.forEach(x => { //获取酒店坐标
x.reviewRating = parseFloat(x.reviewRating); this.dataList.forEach(x => {
let obj = { x.reviewRating = parseFloat(x.reviewRating);
lat: x.latitudeW, let obj = {
lng: x.longitudeW, lat: x.latitudeW,
name: x.hotelName lng: x.longitudeW,
} name: x.hotelName
this.travelLngLat.push(obj); }
x.type = 1 this.travelLngLat.push(obj);
}) x.type = 1
})
}
this.dataList2 = ourHotelList.concat(this.dataList); this.dataList2 = ourHotelList.concat(this.dataList);
let jalanTotalCount = 0; let jalanTotalCount = 0;
if (res.data.data.parmResult && res.data.data.parmResult.numberOfResultMatched) { if (res.data.data.parmResult && res.data.data.parmResult.numberOfResultMatched) {
...@@ -1199,7 +1200,7 @@ ...@@ -1199,7 +1200,7 @@
ourHotelTotalCount = ourHotelList[0].totalHotelCount; ourHotelTotalCount = ourHotelList[0].totalHotelCount;
} }
let totalCount = Number(jalanTotalCount) + Number(ourHotelTotalCount); let totalCount = Number(jalanTotalCount) + Number(ourHotelTotalCount);
if (totalCount % 2 == 1) { if (totalCount % 2 == 1) {
this.TotalPage = parseInt(totalCount / 2) + 1 this.TotalPage = parseInt(totalCount / 2) + 1
} else { } else {
......
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