Commit a41cf93a authored by 黄奎's avatar 黄奎

页面修改

parent a4e806a7
...@@ -28,10 +28,14 @@ ...@@ -28,10 +28,14 @@
var range = sel.getRangeAt(0); var range = sel.getRangeAt(0);
if (range) { if (range) {
var textNode = range.startContainer; var textNode = range.startContainer;
if (textNode) {
range.setStart(textNode, offset) range.setStart(textNode, offset)
}
if (sel) {
sel.removeAllRanges() sel.removeAllRanges()
sel.addRange(range) sel.addRange(range)
} }
}
}, 0) }, 0)
} }
} }
......
...@@ -214,38 +214,47 @@ ...@@ -214,38 +214,47 @@
} }
//酒店 //酒店
else if (pItem.pageType == 4) { else if (pItem.pageType == 4) {
newObj.SubName = "特色酒店";
if (tripObj.hotelArray && tripObj.hotelArray.length > 0) { if (tripObj.hotelArray && tripObj.hotelArray.length > 0) {
newObj.MainName = tripObj.hotelArray[0].MainName; newObj.MainName = tripObj.hotelArray[0].MainName;
newObj.SubName = "特色酒店";
newObj.ImgList = tripObj.hotelArray[0].ImgList; newObj.ImgList = tripObj.hotelArray[0].ImgList;
newObj.MainDesc = tripObj.hotelArray[0].MainDesc; newObj.MainDesc = tripObj.hotelArray[0].MainDesc;
} else { } else {
newObj.MainName = "富士山花园酒店"; newObj.MainName = "默认酒店";
newObj.SubName = "特色酒店";
newObj.ImgList = [{ newObj.ImgList = [{
url: "https://imgfile.oytour.com/Upload/DMC/202305290204327370000000012.jpg" url: "https://imgfile.oytour.com/Upload/DMC/202305290204327370000000012.jpg"
}]; }];
newObj.MainDesc = "新大谷INN东京位于山手线大崎车站徒步一分钟,离品川,涉谷,原宿,都非常近,方便购物 观光,酒店房间干净 舒适,"; newObj.MainDesc = "默认酒店描述信息";
} }
} //餐 } //餐
else if (pItem.pageType == 5) { else if (pItem.pageType == 5) {
newObj.MainName = "箱根湖畔日式料理";
newObj.SubName = "特色餐食"; newObj.SubName = "特色餐食";
if (tripObj.dinnerArray && tripObj.dinnerArray.length > 0) {
newObj.MainName = tripObj.dinnerArray[0].MainName;
newObj.ImgList = tripObj.dinnerArray[0].ImgList;
newObj.MainDesc = tripObj.dinnerArray[0].MainDesc;
} else {
newObj.MainName = "默认餐食";
newObj.ImgList = [{ newObj.ImgList = [{
url: "http://imgfile.oytour.com/Upload/DMC/Z4DbAPRPmBPkaJQyxwesEWAz3sbZadNj.jpg" url: "http://imgfile.oytour.com/Upload/DMC/Z4DbAPRPmBPkaJQyxwesEWAz3sbZadNj.jpg"
}]; }];
newObj.MainDesc = "箱根湖畔日式料理箱根湖畔日式料理箱根湖畔日式料理箱根湖畔日式料理箱根湖畔日式料理箱根湖畔日式料理箱根湖畔日式料理"; newObj.MainDesc = "默认餐食描述";
}
} }
//景点 //景点
else if (pItem.pageType == 6) { else if (pItem.pageType == 6) {
newObj.MainName = "东京秋叶原动漫.电器";
newObj.SubName = "特色景点"; newObj.SubName = "特色景点";
if (tripObj.scenicArray && tripObj.scenicArray.length > 0) {
newObj.MainName = tripObj.scenicArray[0].MainName;
newObj.ImgList = tripObj.scenicArray[0].ImgList;
newObj.MainDesc = tripObj.scenicArray[0].MainDesc;
} else {
newObj.MainName = "默认景点";
newObj.ImgList = [{ newObj.ImgList = [{
url: "http://imgfile.oytour.com/Upload/DMC/20200201061804955.jpg" url: "http://imgfile.oytour.com/Upload/DMC/20200201061804955.jpg"
}]; }];
newObj.MainDesc = newObj.MainDesc = "默认景点描述信息";
"秋叶原是与时代尖端产业同步的电器大街,亦是目前世界上数一数二的电子科技街,集和了各种世界尖端科技产品,以及动漫商店,是许多年轻游客赴日必到的景点之一。秋叶原动漫大道这里可以说是动漫控们的天堂,因为不仅仅可以看到原汁原味的日本萌妹子化装成各种动漫造型,你也可以购买动漫人物的各种Q版造型,这条街上随处可见这种COS造型"; }
} }
pItem.dataObj = newObj; pItem.dataObj = newObj;
}); });
...@@ -329,9 +338,13 @@ ...@@ -329,9 +338,13 @@
}); });
}) })
} }
var description = "暂无描述";
if (sItem.Description && sItem.Description != '') {
description = sItem.Description;
}
var dObj = { var dObj = {
MainName: sItem.DinnerName, MainName: sItem.DinnerName,
MainDesc: sItem.Description, MainDesc: description,
ImgList: tempImgList, ImgList: tempImgList,
SourceType: 5 SourceType: 5
}; };
......
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