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