Compare commits

..

3 Commits

Author SHA1 Message Date
tk
dd243e84da 【类 型】:fix
【主	题】:导航栏bug
【描	述】:
	[原因]:每次点击导航栏  右侧内容栏滚动 反向导致 导航栏乱跳bug
	[过程]:点击时加个标记 定时删除标记
	[影响]:
【结	束】

# 类型 包含:
# feat:新功能(feature)
# fix:修补bug
# docs:文档(documentation)
# style: 格式(不影响代码运行的变动)
# refactor:重构(即不是新增功能,也不是修改bug的代码变动)
# test:增加测试
# chore:构建过程或辅助工具的变动
2024-06-13 17:03:30 +08:00
tk
d2c0364cbf 【类 型】:fix
【主	题】:修复导航栏bug 未成功版本(之后会追溯 特做标记)
【描	述】:
	[原因]:
	[过程]:
	[影响]:
【结	束】

# 类型 包含:
# feat:新功能(feature)
# fix:修补bug
# docs:文档(documentation)
# style: 格式(不影响代码运行的变动)
# refactor:重构(即不是新增功能,也不是修改bug的代码变动)
# test:增加测试
# chore:构建过程或辅助工具的变动
2024-06-13 15:49:30 +08:00
tk
a87a70e057 【类 型】:test
【主	题】:
【描	述】:
	[原因]:
	[过程]:
	[影响]:
【结	束】

# 类型 包含:
# feat:新功能(feature)
# fix:修补bug
# docs:文档(documentation)
# style: 格式(不影响代码运行的变动)
# refactor:重构(即不是新增功能,也不是修改bug的代码变动)
# test:增加测试
# chore:构建过程或辅助工具的变动
2024-06-13 15:43:49 +08:00
2 changed files with 11 additions and 2 deletions

View File

@ -80,7 +80,6 @@
this.checkUserInfo()
// tabber
this.$store.commit('setTabbarCurrent', 0)
console.log(this.orderList)
},
methods: {
//

View File

@ -114,6 +114,9 @@
arr: [], // item
scrollRightTop: 0, // scroll-view
timer: null, //
isScrollingByClick: false, //
scrollingTiemout: null, //timeout
}
},
onReady() {
@ -166,6 +169,8 @@
totalPrice,
//
async swichMenu(index) {
clearTimeout(this.scrollingTiemout) //timeout
this.isScrollingByClick = true
if (this.arr.length == 0) {
await this.getMenuItemTop()
}
@ -176,6 +181,9 @@
this.current = index
this.leftMenuStatus(index)
})
this.scrollingTiemout = setTimeout(() => {
this.isScrollingByClick = false
}, 800)
},
//
getElRect(elClass, dataVal) {
@ -262,7 +270,9 @@
let height2 = this.arr[i + 1]
// height2
if (!height2 || scrollHeight >= height1 && scrollHeight < height2) {
this.leftMenuStatus(i)
if (!this.isScrollingByClick) {
this.leftMenuStatus(i)
}
return
}
}