Commit cc9d3bdc746cd991a25f04fe444dc67fef5aa854

Authored by liujun001
1 parent d1cb4461

图片必须上传

garbage-removal/src/pages/order-info/order-driver/upload/index.vue
@@ -77,6 +77,11 @@ const handleSubmit = (id, type) => { @@ -77,6 +77,11 @@ const handleSubmit = (id, type) => {
77 type: type == "装车图片" ? 1 : 2, 77 type: type == "装车图片" ? 1 : 2,
78 imageUrls: fileList.value.map(item => item.url) 78 imageUrls: fileList.value.map(item => item.url)
79 } 79 }
  80 + if(params.imageUrls && params.imageUrls.length == 0){
  81 + uni.$u.toast("请上传现场图片");
  82 + return;
  83 + }
  84 +
80 uploadImageUrlByType(params).then(res => { 85 uploadImageUrlByType(params).then(res => {
81 if (res.data.success) { 86 if (res.data.success) {
82 uni.$u.toast("图片上传完毕!"); 87 uni.$u.toast("图片上传完毕!");