调整服务页UI入
This commit is contained in:
@@ -1281,8 +1281,10 @@ const initPage = () => {
|
||||
const systemInfo = uni.getSystemInfoSync()
|
||||
statusBarHeight.value = systemInfo.statusBarHeight != null ? systemInfo.statusBarHeight : 20
|
||||
const searchContentHeight = Math.round(68 * systemInfo.screenWidth / 750)
|
||||
const searchRowVerticalPadding = Math.round(18 * systemInfo.screenWidth / 750)
|
||||
const moduleRowHeight = Math.round(78 * systemInfo.screenWidth / 750)
|
||||
const searchTopGap = Math.round(14 * systemInfo.screenWidth / 750)
|
||||
const categoryTopGap = Math.round(12 * systemInfo.screenWidth / 750)
|
||||
const headerBottomPadding = Math.round(10 * systemInfo.screenWidth / 750)
|
||||
const moduleRowHeight = Math.round(62 * systemInfo.screenWidth / 750)
|
||||
const categoryRowHeight = Math.round(56 * systemInfo.screenWidth / 750)
|
||||
|
||||
let menuInfo: CapsuleButtonInfo | null = null
|
||||
@@ -1302,13 +1304,13 @@ const initPage = () => {
|
||||
// 计算右边距避让
|
||||
const rightReserve = systemInfo.screenWidth - menuInfo.left + 8
|
||||
navBarRight.value = rightReserve
|
||||
const searchRowTotalH = statusBarHeight.value + Math.max(navHeight, moduleRowHeight) + searchContentHeight + searchRowVerticalPadding + categoryRowHeight + Math.round(18 * systemInfo.screenWidth / 750)
|
||||
const searchRowTotalH = statusBarHeight.value + Math.max(navHeight, moduleRowHeight) + searchTopGap + searchContentHeight + categoryTopGap + categoryRowHeight + headerBottomPadding
|
||||
searchRowStyle.value = `padding-top:${statusBarHeight.value}px;height:${searchRowTotalH}px;padding-right:${rightReserve}px;`
|
||||
navbarTotalHeight.value = searchRowTotalH
|
||||
} else {
|
||||
navBarHeight.value = 44
|
||||
navBarRight.value = 0
|
||||
const searchRowTotalH = statusBarHeight.value + Math.max(44, moduleRowHeight) + searchContentHeight + searchRowVerticalPadding + categoryRowHeight + Math.round(18 * systemInfo.screenWidth / 750)
|
||||
const searchRowTotalH = statusBarHeight.value + Math.max(44, moduleRowHeight) + searchTopGap + searchContentHeight + categoryTopGap + categoryRowHeight + headerBottomPadding
|
||||
searchRowStyle.value = `padding-top:${statusBarHeight.value}px;height:${searchRowTotalH}px;`
|
||||
navbarTotalHeight.value = searchRowTotalH
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user