Showing
1 changed file
with
3 additions
and
3 deletions
... | ... | @@ -171,11 +171,11 @@ export default { |
171 | 171 | sourceType: ['camera', 'album'], |
172 | 172 | success: res => { |
173 | 173 | const tempFilePaths = res.tempFilePaths; |
174 | - //限制上传的图片大小不超过2M | |
174 | + //限制上传的图片大小不超过5M | |
175 | 175 | let resSize = res.tempFiles[0].size; |
176 | - if (resSize > 2097152) { | |
176 | + if (resSize > 5242880) { | |
177 | 177 | uni.showToast({ |
178 | - title: '上传的图片大小不能超过2M', | |
178 | + title: '上传的图片大小不能超过5M', | |
179 | 179 | icon: 'none', |
180 | 180 | duration: 2000, |
181 | 181 | mask: true | ... | ... |