Fix(店铺):[#1068]店铺查看资讯图片返回后,改为停留在点击图片前的位置,不要返回后就刷新页面
This commit is contained in:
@@ -504,10 +504,9 @@ export default {
|
|||||||
if (!this.isLoad) {
|
if (!this.isLoad) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
if (this.inn.hasProduct > 0) {
|
if (uni.getStorageSync('hotelInfoPublish') === '1') {
|
||||||
this.fetchGoods()
|
this.fetchInnInfoList()
|
||||||
}
|
}
|
||||||
this.fetchInnInfoList()
|
|
||||||
this.fetchInnDetail()
|
this.fetchInnDetail()
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
|||||||
@@ -162,6 +162,8 @@
|
|||||||
this.$dialog.toast({
|
this.$dialog.toast({
|
||||||
mes: '发布成功!'
|
mes: '发布成功!'
|
||||||
})
|
})
|
||||||
|
// 写入缓存,返回至商户主页时监听用于刷新资讯列表
|
||||||
|
uni.setStorageSync('hotelInfoPublish', '1')
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
this.$yrouter.back()
|
this.$yrouter.back()
|
||||||
}, 3000)
|
}, 3000)
|
||||||
|
|||||||
Reference in New Issue
Block a user