Browse Source

优化提示

master
liujiangyong 2 years ago
parent
commit
f84e527aa8
  1. 2
      weapp/package/inspectionInput/inspectionInput.js

2
weapp/package/inspectionInput/inspectionInput.js

@ -194,7 +194,7 @@ Page({
const imgs = res.tempFiles; const imgs = res.tempFiles;
for (let i = 0; i < imgs.length; i++) { for (let i = 0; i < imgs.length; i++) {
if (res.tempFiles[i].size > 15728640) { if (res.tempFiles[i].size > 15728640) {
commonJs.showToast('图片大于15M,不可上传'); wx.showToast({ title: '图片大于15M,不可上传', icon: 'none' });
return; return;
} }
pics.push(imgs[i].tempFilePath) pics.push(imgs[i].tempFilePath)

Loading…
Cancel
Save