Fix:2499 【商城小程序】寻趣味,查看店铺详情后返回列表后会出现频闪
This commit is contained in:
@@ -159,19 +159,19 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
onLoad() {
|
onLoad() {
|
||||||
|
|
||||||
},
|
|
||||||
onShow() {
|
|
||||||
const memCityName = uni.getStorageSync('cityName')
|
|
||||||
this.page = 1
|
|
||||||
this.currType = {}
|
this.currType = {}
|
||||||
// this.typeIndex = 0
|
|
||||||
this.name = ''
|
|
||||||
getHotelTypeList().then(({data}) => {
|
getHotelTypeList().then(({data}) => {
|
||||||
this.typeList = data
|
this.typeList = data
|
||||||
this.currType = data[this.typeIndex]
|
this.currType = data[this.typeIndex]
|
||||||
this.getMapData()
|
this.getMapData()
|
||||||
})
|
})
|
||||||
|
|
||||||
|
},
|
||||||
|
onShow() {
|
||||||
|
const memCityName = uni.getStorageSync('cityName')
|
||||||
|
this.page = 1
|
||||||
|
// this.typeIndex = 0
|
||||||
|
this.name = ''
|
||||||
if (memCityName.length) {
|
if (memCityName.length) {
|
||||||
this.cityName = memCityName
|
this.cityName = memCityName
|
||||||
uni.removeStorageSync('cityName')
|
uni.removeStorageSync('cityName')
|
||||||
|
|||||||
Reference in New Issue
Block a user