flat: 修复
This commit is contained in:
@@ -211,22 +211,25 @@
|
||||
},
|
||||
async submit() {
|
||||
const _this = this
|
||||
this.$refs.formOne.validate().then(res => {
|
||||
_this.$api.msg('提交数据')
|
||||
this.$refs.formOne.validate().then(async (res) => {
|
||||
let params = {
|
||||
..._this.formData,
|
||||
nature: Number(_this.formData.nature),
|
||||
cityId: Number(_this.formData.cityId),
|
||||
tradeId: Number(_this.formData.tradeId),
|
||||
manager: _this.authInfo.realName,
|
||||
idNumber: _this.authInfo.idNumber
|
||||
}
|
||||
let resData = await addInviteCompanyAuth(params)
|
||||
if (resData.data.code === 200) {
|
||||
_this.$api.msg('已完成企业信息认证')
|
||||
uni.navigateBack()
|
||||
}
|
||||
}).catch(errors => {
|
||||
console.log(errors)
|
||||
_this.$api.msg('请完善内容')
|
||||
})
|
||||
// let params = {
|
||||
// ...this.formData,
|
||||
// nature: Number(this.formData.nature),
|
||||
// cityId: Number(this.formData.cityId),
|
||||
// tradeId: Number(this.formData.tradeId),
|
||||
// }
|
||||
// let resData = await addInviteCompanyAuth(params)
|
||||
// console.log(resData)
|
||||
// if (resData.data.code === 200) {
|
||||
// _this.$api.msg('已完成企业信息认证')
|
||||
// }
|
||||
|
||||
},
|
||||
reset() {
|
||||
const _this = this
|
||||
|
||||
Reference in New Issue
Block a user