|
@@ -110,7 +110,8 @@ export default {
|
|
|
}
|
|
|
let foodList = this.$refs.foodList
|
|
|
let el = foodList[index]
|
|
|
- this.foodsScroll.scrollToElement(el, 300)
|
|
|
+ // offsetY的值改为3,是因为px转rem有误差,iOS12.4.1点击左侧导航时,当前点击的菜单无法被选中,类似一个修正值
|
|
|
+ this.foodsScroll.scrollToElement(el, 300, true, 3)
|
|
|
},
|
|
|
selectFood (food, event) {
|
|
|
if (!event._constructed) {
|