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() this.checkUserInfo()
// tabber // tabber
this.$store.commit('setTabbarCurrent', 0) this.$store.commit('setTabbarCurrent', 0)
console.log(this.orderList)
}, },
methods: { methods: {
// //

View File

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