diff --git a/im-uniapp/pages/friend/friend.vue b/im-uniapp/pages/friend/friend.vue index 2702702..b114171 100644 --- a/im-uniapp/pages/friend/friend.vue +++ b/im-uniapp/pages/friend/friend.vue @@ -118,10 +118,6 @@ export default { color: $im-text-color !important; } - :deep(.u-index-list__letter) { - margin-top: 50px; - } - :deep(.u-index-list__letter__item) { width: 40rpx !important; height: 40rpx !important; diff --git a/im-uniapp/uni_modules/uview-plus/components/u-index-list/u-index-list.vue b/im-uniapp/uni_modules/uview-plus/components/u-index-list/u-index-list.vue index b0aa31d..c55eafb 100644 --- a/im-uniapp/uni_modules/uview-plus/components/u-index-list/u-index-list.vue +++ b/im-uniapp/uni_modules/uview-plus/components/u-index-list/u-index-list.vue @@ -265,8 +265,8 @@ customNavHeight = sysData.windowTop // #endif // #ifndef H5 - // 在非H5中,为原生导航栏,其高度不算在windowHeight内,这里设置为负值,后面相加时变成减去其高度的一半 - customNavHeight = -(sysData.statusBarHeight + 44) + // 在非H5中,为原生导航栏,其高度不算在windowHeight内 + customNavHeight = sysData.statusBarHeight // #endif } else { customNavHeight = getPx(this.customNavHeight)