|
@@ -351,20 +351,16 @@
|
|
|
console.log('--------------------')
|
|
console.log('--------------------')
|
|
|
res.tempFiles.forEach((file) => {
|
|
res.tempFiles.forEach((file) => {
|
|
|
console.log(file.size,"+++++++++++++");
|
|
console.log(file.size,"+++++++++++++");
|
|
|
- if (file.size > (1048576 * 3)) {
|
|
|
|
|
- tools.error('上传的图片最大3MB')
|
|
|
|
|
- } else {
|
|
|
|
|
- if (this.list.length > 100) {
|
|
|
|
|
- tools.error('最多上传100张')
|
|
|
|
|
- } else {
|
|
|
|
|
- console.log('--aaaaaaaaaa------------------')
|
|
|
|
|
- if (tools.getPlatform() === 'H5') {
|
|
|
|
|
- this.uploadingFile(file);
|
|
|
|
|
- } else {
|
|
|
|
|
- this.uploadingFile(file.path);
|
|
|
|
|
- }
|
|
|
|
|
- }
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ if (this.list.length > 100) {
|
|
|
|
|
+ tools.error('最多上传100张')
|
|
|
|
|
+ } else {
|
|
|
|
|
+ console.log('--aaaaaaaaaa------------------')
|
|
|
|
|
+ if (tools.getPlatform() === 'H5') {
|
|
|
|
|
+ this.uploadingFile(file);
|
|
|
|
|
+ } else {
|
|
|
|
|
+ this.uploadingFile(file.path);
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
})
|
|
})
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
@@ -605,4 +601,4 @@
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
-</style>
|
|
|
|
|
|
|
+</style>
|