首页修改
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user