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