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