This commit is contained in:
xiaozhiyong
2024-08-13 09:44:50 +08:00
parent a38c60bdc4
commit d330091b19
5 changed files with 83 additions and 34 deletions

View File

@@ -50,7 +50,7 @@
}
},
created() {
this.getSiteList()
this.refreshLocation()
},
methods: {
toSitePage(){
@@ -62,13 +62,14 @@
refreshLocation(){
uni.getLocation({
type: 'wgs84',
success: function (res) {
success: (res) => {
uni.setStorageSync('location',res)
this.getSiteList()
}
});
},
getSiteList() {
this.refreshLocation()
// this.refreshLocation()
let data1 = {
currentPage: 1,
pageSize: 3,