优化小程序bug

This commit is contained in:
wuxw 2023-10-26 15:09:31 +08:00
parent cb1a41a8f8
commit 37000d5c42

View File

@ -76,21 +76,18 @@
}).then(_data => {
_that.parkingAreas = _data.parkingAreas;
if (_data.parkingAreas && _data.parkingAreas.length == 1) {
_that._chooseArea(_data.parkingAreas[0]);
_that._chooseArea(_data.parkingAreas[0]);
}
})
},
_chooseArea: function(_area) {
let _that =this;
this.paId = _area.paId;
// #ifdef H5
setTimeout(function(){
_that.changeListType(0);
},1000)
// #endif
// #ifndef H5
_that.changeListType(0);
// #endif
},
changeListType: function(e) {
this.currentPage = e;