This commit is contained in:
xiaozhiyong
2024-08-13 08:54:54 +08:00
parent 8943b412ea
commit cfcb6da1b5
6 changed files with 99 additions and 36 deletions

View File

@@ -60,7 +60,7 @@ export default {
};
},
created() {
this.getSiteList();
this.refreshLocation();
},
methods: {
toSitePage() {
@@ -72,13 +72,14 @@ export default {
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,