Fix:2499 【商城小程序】寻趣味,查看店铺详情后返回列表后会出现频闪
This commit is contained in:
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user