This commit is contained in:
weipengfei 2023-09-20 11:19:47 +08:00
parent c211fa504b
commit edc6069250
2 changed files with 14 additions and 4 deletions

View File

@ -413,11 +413,16 @@
},
//
async afterReadAvatar(event) {
uni.showLoading({
title:'上传中'
})
upLoadImage({
filePath: event.file.url,
name: 'file'
}).then(res => {
this.formData.avatar = res.data.uri
this.formData.avatar = res.data.uri;
}).finally(()=>{
uni.hideLoading();
})
},
//
@ -426,11 +431,16 @@
},
//
upLoad(url, type) {
uni.showLoading({
title:'上传中请稍后'
})
upLoadImage({
filePath: url,
name: 'file'
}).then(res => {
this.formData.qualification[type] = res.data.uri
}).finally(()=>{
uni.hideLoading();
})
},
//