首页修改

This commit is contained in:
仲么了
2023-08-23 16:22:08 +08:00
parent cc63cda4e7
commit 79d6771aad
34 changed files with 788 additions and 403 deletions

View File

@@ -278,9 +278,14 @@ export default {
},
scanCode() {
uni.scanCode({
success: function (res) {
success (res) {
console.log('条码类型:' + res.scanType)
console.log('条码内容:' + res.result)
let content = JSON.parse(res.result)
if (content.type === 'NDID') {
this.formData.nDid = content.nDid
this.register()
}
},
})
},
@@ -337,6 +342,8 @@ export default {
}
})
}
this.point.lat = this.point.coordinate.x
this.point.lng = this.point.coordinate.y
this.pointList[this.editIndex] = this.point
console.log(this.pointList)
this.closeDrawer()
@@ -362,8 +369,12 @@ export default {
},
dragPoint(e) {
console.log(e)
this.point.lat = e.detail.x
this.point.lng = e.detail.y
this.point.coordinate = {
x: e.detail.x,
y: e.detail.y,
}
// this.point.lat = e.detail.x
// this.point.lng = e.detail.y
},
submit() {
if (!this.formData.projectId) {