submit
This commit is contained in:
parent
876ad6ab8e
commit
3bfc269058
@ -252,6 +252,23 @@ export default {
|
||||
this.data = [today.getFullYear(), today.getMonth() + 1, today.getDate()]
|
||||
},
|
||||
methods: {
|
||||
uploadFilePromise(url, type = null) {
|
||||
return new Promise((resolve) => {
|
||||
uni.uploadFile({
|
||||
url: http.baseUrl + "/api/wxuser/uploadpic",
|
||||
filePath: url,
|
||||
name: "file",
|
||||
success: (res) => {
|
||||
const { path } = JSON.parse(res.data).data;
|
||||
console.log('@@@@', path)
|
||||
resolve(path);
|
||||
if (type === 'check') {
|
||||
this.chenckId(path)
|
||||
}
|
||||
},
|
||||
});
|
||||
})
|
||||
},
|
||||
// 删除图片
|
||||
deletePic(event) {
|
||||
this[`fileList${event.name}`].splice(event.index, 1)
|
||||
|
Loading…
Reference in New Issue
Block a user