|
|
@ -252,6 +252,23 @@ export default {
|
|
|
|
this.data = [today.getFullYear(), today.getMonth() + 1, today.getDate()]
|
|
|
|
this.data = [today.getFullYear(), today.getMonth() + 1, today.getDate()]
|
|
|
|
},
|
|
|
|
},
|
|
|
|
methods: {
|
|
|
|
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) {
|
|
|
|
deletePic(event) {
|
|
|
|
this[`fileList${event.name}`].splice(event.index, 1)
|
|
|
|
this[`fileList${event.name}`].splice(event.index, 1)
|
|
|
|