xingyy
xingyy 1 year ago
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…
Cancel
Save