Forráskód Böngészése

fix:修复城市列表滚动问题

jinx 4 éve
szülő
commit
d856f82f18
2 módosított fájl, 5 hozzáadás és 0 törlés
  1. 1 0
      apps/RealtorEasier/app.js
  2. 4 0
      apps/RealtorEasier/pages/city/city.wxss

+ 1 - 0
apps/RealtorEasier/app.js

@@ -172,6 +172,7 @@ App({
     // city: '洛杉矶', // 默认进入首页的地址
     // city: '洛杉矶', // 默认进入首页的地址
     city: 'Los Angeles',
+    // city: 'test',
     // 默认进入首页的地址
     // cityId: '3392', // 默认进入首页的地址
     // province: '广东省',

+ 4 - 0
apps/RealtorEasier/pages/city/city.wxss

@@ -132,6 +132,7 @@ page {
     width: 34%;
     height: 100%;
     overflow-y: auto;
+    overflow-x: hidden;
     border-radius: 8rpx 0px 0px 8rpx;
 }
 
@@ -145,6 +146,9 @@ page {
     box-sizing: border-box;
     line-height: 96rpx;
     font-weight: bold;
+    overflow: hidden;
+    text-overflow: ellipsis;
+    white-space: nowrap;
 }
 
 .select-box .loacation-box .states-item.active {