Fix:【商城小程序】寻趣味—打开寻趣味后,切换至其他页面(首页、购物车等),再返回寻趣味,需要对页面进行刷新

This commit is contained in:
linxi
2024-09-19 11:21:23 +08:00
parent 6b84821a0b
commit 68765f4474
+7 -2
View File
@@ -156,13 +156,18 @@ export default {
this.fetchList()
},
onLoad() {
},
onShow() {
this.page = 1
this.currType = {}
this.typeIndex = 0
this.name = ''
getHotelTypeList().then(({data}) => {
this.typeList = data
this.currType = data[this.typeIndex]
this.getMapData()
})
},
onShow() {
const memCityName = uni.getStorageSync('cityName')
if (memCityName.length) {
this.cityName = memCityName