Fix:5451 【商城小程序】店铺查看资讯详情返回列表页时,列表自动滑动至顶部
This commit is contained in:
@@ -588,7 +588,8 @@ export default {
|
||||
pageKeyId: '',
|
||||
shareImg: '',
|
||||
videoPlayers: [],
|
||||
isView: false
|
||||
isView: false,
|
||||
skipRefreshOnShow: false
|
||||
}
|
||||
},
|
||||
// 必须在页面加 onPageScroll(e){} ,才能滑动显示背景
|
||||
@@ -679,6 +680,10 @@ export default {
|
||||
if (!this.isLoad) {
|
||||
return
|
||||
}
|
||||
if (this.skipRefreshOnShow) {
|
||||
this.skipRefreshOnShow = false
|
||||
return
|
||||
}
|
||||
this.fetchInnDetail()
|
||||
if(this.isView) return
|
||||
if(this.activeIndex === 1) {
|
||||
@@ -834,6 +839,7 @@ export default {
|
||||
})
|
||||
},
|
||||
infoClick: function (info) {
|
||||
this.skipRefreshOnShow = true
|
||||
this.$yrouter.push('/pagesInn/inn/innInfoDetail?id=' + info.id)
|
||||
},
|
||||
coverPlay(){
|
||||
|
||||
Reference in New Issue
Block a user