修改地图弹框文本切割问题 #33

Merged
zhangyao merged 2 commits from dev into test 3 years ago
  1. 4
      public/static/qm/MainMap_QM.js
  2. 3
      src/components/Map/Map.vue

4
public/static/qm/MainMap_QM.js

@ -3678,8 +3678,8 @@ MainMap_QM.prototype = {
} }
if (item.hasOwnProperty("Facilities") && item.Facilities) { //设施 if (item.hasOwnProperty("Facilities") && item.Facilities) { //设施
Map_QM.util.pathStateObj.forShopArr.wayList.push({ Map_QM.util.pathStateObj.forShopArr.wayList.push({
isAddPrefix: true, name: "乘坐 " + item.Facilities.userData.title +item.Facilities.userData.facCode=="dt"?"电梯":"" + "到 " + Map_QM.mapArr[Map_QM.util.selectBuild][parseInt(Map_QM.forShopArr[index + 1].floor)].floorName,
nameEn: "BY " + item.Facilities.userData.title+item.Facilities.userData.facCode=="dt"?"elevator ":"" + "TO " + Map_QM.mapArr[Map_QM.util.selectBuild][parseInt(Map_QM.forShopArr[index + 1].floor)].floorName, logoPath: item.Facilities.imgUrl, code: (((Math.random()) * 0x1234567) | 0).toString(16).substring(0), shopNum: item.Facilities.userData.facCode + item.Facilities.userData.no
isAddPrefix: true, name: "乘坐 " + item.Facilities.userData.title +(item.Facilities.userData.facCode=="dt"?"电梯":"") + "到 " + Map_QM.mapArr[Map_QM.util.selectBuild][parseInt(Map_QM.forShopArr[index + 1].floor)].floorName,
nameEn: "BY " + item.Facilities.userData.title+(item.Facilities.userData.facCode=="dt"?"elevator ":"") + "TO " + Map_QM.mapArr[Map_QM.util.selectBuild][parseInt(Map_QM.forShopArr[index + 1].floor)].floorName, logoPath: item.Facilities.imgUrl, code: (((Math.random()) * 0x1234567) | 0).toString(16).substring(0), shopNum: item.Facilities.userData.facCode + item.Facilities.userData.no
}); });
} }
}); });

3
src/components/Map/Map.vue

@ -79,7 +79,7 @@ watch(shop, () => {
overflow: hidden; overflow: hidden;
width: 220px; width: 220px;
height: 60px; height: 60px;
padding: 25px 18px 0 36px;
padding: 20px 18px 0 36px;
font-size: 22px; font-size: 22px;
font-family: 'font_bold'; font-family: 'font_bold';
white-space: nowrap; white-space: nowrap;
@ -88,6 +88,7 @@ watch(shop, () => {
.name { .name {
display: inline-block; display: inline-block;
line-height: inherit; line-height: inherit;
padding-top: 5px;
} }
// @include no-wrap; // @include no-wrap;

Loading…
Cancel
Save