|
|
@@ -229,7 +229,8 @@ export default {
|
|
|
},
|
|
|
handleOn(file, fileList) {
|
|
|
// console.log(fileList)
|
|
|
- const isJPG = (file.type === 'image/jpeg' || file.type === 'image/png');
|
|
|
+ console.log(file.type)
|
|
|
+ const isJPG = (file.type === 'image/jpeg' || file.type === 'image/JPEG' || file.type === 'image/png' || file.type === 'image/PNG' || file.type === 'image/cr2' || file.type === 'image/CR2');
|
|
|
if (!isJPG) {
|
|
|
// this.$message.error('上传头像图片只能是 JPG 格式!');
|
|
|
}
|
|
|
@@ -320,12 +321,12 @@ export default {
|
|
|
}
|
|
|
}).then(res => {
|
|
|
if (res.success) {
|
|
|
- this.$http.post({
|
|
|
+ this.$http.post({
|
|
|
url: '/userOrder/msg',
|
|
|
data: {
|
|
|
orderId: this.orderInfo.id,
|
|
|
- typeFlag:1,
|
|
|
- message:'上传原片'
|
|
|
+ typeFlag: 1,
|
|
|
+ message: '上传原片'
|
|
|
}
|
|
|
})
|
|
|
this.$http.post({
|