Fix:2499 【商城小程序】寻趣味,查看店铺详情后返回列表后会出现频闪

This commit is contained in:
linxi
2024-11-25 16:43:25 +08:00
parent 141fbaa330
commit f1460485d3
+7 -7
View File
@@ -159,19 +159,19 @@ export default {
}
},
onLoad() {
},
onShow() {
const memCityName = uni.getStorageSync('cityName')
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')
this.page = 1
// this.typeIndex = 0
this.name = ''
if (memCityName.length) {
this.cityName = memCityName
uni.removeStorageSync('cityName')