限制照片大小
This commit is contained in:
parent
afcd0a537e
commit
cf66fcfd3c
|
@ -739,7 +739,7 @@
|
|||
filePath: res.tempFilePaths[i],
|
||||
success: (infoRes) => {
|
||||
const size = infoRes.size;
|
||||
if (size / 1024 / 1024 > 2) {
|
||||
if (size / 1024 / 1024 > 4) {
|
||||
// 图片大于2MB
|
||||
uni.showToast({
|
||||
icon:'error',
|
||||
|
@ -793,7 +793,7 @@
|
|||
filePath: res.tempFilePaths[i],
|
||||
success: (infoRes) => {
|
||||
const size = infoRes.size;
|
||||
if (size / 1024 / 1024 > 2) {
|
||||
if (size / 1024 / 1024 > 4) {
|
||||
// 图片大于2MB
|
||||
uni.showToast({
|
||||
icon:'error',
|
||||
|
|
Loading…
Reference in New Issue