diff --git a/src/index-list/index.ts b/src/index-list/index.ts index 2b24318..da64eb1 100644 --- a/src/index-list/index.ts +++ b/src/index-list/index.ts @@ -113,7 +113,7 @@ Component({ const query = this.createSelectorQuery() query.selectAll('.index_list_item').boundingClientRect(rects => { const result: any = rects - data._tops = result.map(item => item.top) + data._tops = result.map(item => Math.floor(item.top)) }).exec() // 计算右侧字母栏小区块的高度等信息 query.select('.anchor-list').boundingClientRect(rect => {