Compare commits

..

No commits in common. "dd243e84dabef0cdec6a78e2ba2c87b601e5cb52" and "852ad874654d1f75c8d4d2576b8c41ac085efe74" have entirely different histories.

2 changed files with 2 additions and 11 deletions

View File

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

View File

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