ct
This commit is contained in:
@@ -137,7 +137,9 @@
|
|||||||
result: '',
|
result: '',
|
||||||
resultFiles: [],
|
resultFiles: [],
|
||||||
opts: 1,
|
opts: 1,
|
||||||
name: ''
|
name: '',
|
||||||
|
lat: '',
|
||||||
|
lng: ''
|
||||||
},
|
},
|
||||||
dictList: [],
|
dictList: [],
|
||||||
arr: [],
|
arr: [],
|
||||||
@@ -162,6 +164,8 @@
|
|||||||
uni.chooseLocation({
|
uni.chooseLocation({
|
||||||
success: (res) => {
|
success: (res) => {
|
||||||
this.form.address = res.address
|
this.form.address = res.address
|
||||||
|
this.form.lat = res.latitude
|
||||||
|
this.form.lng = res.longitude
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
@@ -244,13 +248,11 @@
|
|||||||
if(this.flag) return
|
if(this.flag) return
|
||||||
this.flag = true
|
this.flag = true
|
||||||
|
|
||||||
this.$loading()
|
|
||||||
this.$http.post(`/app/appclapeventinfo/addOrUpdate?`, {
|
this.$http.post(`/app/appclapeventinfo/addOrUpdate?`, {
|
||||||
...this.form,
|
...this.form,
|
||||||
files: this.form.files,
|
files: this.form.files,
|
||||||
groupName: this.dictList.filter(v => v.value === this.form.groupId)[0].label
|
groupName: this.dictList.filter(v => v.value === this.form.groupId)[0].label
|
||||||
}).then(res => {
|
}).then(res => {
|
||||||
this.$hideLoading()
|
|
||||||
this.$u.toast('上报成功')
|
this.$u.toast('上报成功')
|
||||||
this.flag = false
|
this.flag = false
|
||||||
if (res.code == 0) {
|
if (res.code == 0) {
|
||||||
@@ -259,7 +261,6 @@
|
|||||||
uni.navigateBack()
|
uni.navigateBack()
|
||||||
}, 600)
|
}, 600)
|
||||||
}
|
}
|
||||||
this.$hideLoading()
|
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user