更新
This commit is contained in:
parent
c211fa504b
commit
edc6069250
@ -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();
|
||||
})
|
||||
},
|
||||
// 创建账号
|
||||
|
Loading…
x
Reference in New Issue
Block a user