Commit 0085ebd7 authored by Damon's avatar Damon

异常定位滚动

parent 5244262e
......@@ -560,13 +560,11 @@
})
},
locationCompleteItem(panelIndex,groupIndex,eleIndex){ // 页面定位到某一项
this.getMenuItemTop()
this.tabIndex = panelIndex
this.arr = []
this.scrollRightTop = 0;
this.current = groupIndex;
this.itemId = ''
this.$nextTick(function() {
this.swichMenu(groupIndex)
if (this.oldItemId)this.itemId = this.oldItemId
})
},
// 提交订单
......@@ -768,10 +766,8 @@
this.scrollRightTop = this.oldScrollTop;
this.$nextTick(function() {
setTimeout(() => {
this.itemId = this.oldItemId
// 没有指定滚动到某一小项,就滚动到大的项
if(!this.oldItemId) this.scrollRightTop = this.arr[index]
this.oldItemId = ''
this.scrollRightTop = this.arr[index]
this.current = index
}, 100)
})
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment