网格员签到对接完成
This commit is contained in:
@@ -71,7 +71,7 @@ export default {
|
|||||||
.then(({data: {result: {address}}}) => this.$http.post("/app/appwxsigninfo/sign", {lat, lng, address}))
|
.then(({data: {result: {address}}}) => this.$http.post("/app/appwxsigninfo/sign", {lat, lng, address}))
|
||||||
.then(res => {
|
.then(res => {
|
||||||
if (res?.code == 0) {
|
if (res?.code == 0) {
|
||||||
this.linkTo("./signResult")
|
this.linkTo("./signResult?id=" + res?.data.id)
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
} else this.$u.toast("无法获取到定位!")
|
} else this.$u.toast("无法获取到定位!")
|
||||||
|
|||||||
@@ -20,7 +20,14 @@ export default {
|
|||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
getResult() {
|
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() {
|
created() {
|
||||||
|
|||||||
Reference in New Issue
Block a user