网格员签到对接完成

This commit is contained in:
aixianling
2022-09-06 17:49:46 +08:00
parent 6c9d008a39
commit bdbd91859a
2 changed files with 9 additions and 2 deletions

View File

@@ -71,7 +71,7 @@ export default {
.then(({data: {result: {address}}}) => this.$http.post("/app/appwxsigninfo/sign", {lat, lng, address}))
.then(res => {
if (res?.code == 0) {
this.linkTo("./signResult")
this.linkTo("./signResult?id=" + res?.data.id)
}
})
} else this.$u.toast("无法获取到定位!")

View File

@@ -20,7 +20,14 @@ export default {
},
methods: {
getResult() {
const {id} = this.$route.query
id && this.$http.post("/app/appwxsigninfo/queryDetailById", null, {
params: {id}
}).then(res => {
if (res?.data) {
this.result = res.data
}
})
}
},
created() {