diff --git a/pages/cloud/haveFun.vue b/pages/cloud/haveFun.vue index 196c0d4..35217df 100644 --- a/pages/cloud/haveFun.vue +++ b/pages/cloud/haveFun.vue @@ -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