|
|
@ -242,6 +242,11 @@ |
|
|
|
let filePath = edetail; |
|
|
|
let filePath = edetail; |
|
|
|
let _date = new Date(); |
|
|
|
let _date = new Date(); |
|
|
|
let ext_name = filePath.substr(filePath.lastIndexOf('.')); |
|
|
|
let ext_name = filePath.substr(filePath.lastIndexOf('.')); |
|
|
|
|
|
|
|
if (ext_name !== 'png' && ext_name !== 'jpg' && ext_name !== 'jpeg') { |
|
|
|
|
|
|
|
_this.$com.showError('请上传 png / jpg / jpeg 格式的图片'); |
|
|
|
|
|
|
|
return false; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
let address = _date.getFullYear() + '' + (_date.getMonth() + 1) + '' + _date.getDate(); |
|
|
|
let address = _date.getFullYear() + '' + (_date.getMonth() + 1) + '' + _date.getDate(); |
|
|
|
let fileName = address + _date.getTime() + ext_name; |
|
|
|
let fileName = address + _date.getTime() + ext_name; |
|
|
|
const img_info = await unit.getImgInfo(filePath); |
|
|
|
const img_info = await unit.getImgInfo(filePath); |
|
|
|