Преглед изворни кода

修复好友列表导航条异常的bug

xsx пре 10 месеци
родитељ
комит
c89c9a3ca4

+ 0 - 4
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;

+ 2 - 2
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)