Fix:【商城小程序】寻趣味—打开寻趣味后,切换至其他页面(首页、购物车等),再返回寻趣味,需要对页面进行刷新
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user