linwenxin 1 hónapja
szülő
commit
0686c07c06
1 módosított fájl, 7 hozzáadás és 3 törlés
  1. 7 3
      src/packageWorkorder/pages/nandufysq.vue

+ 7 - 3
src/packageWorkorder/pages/nandufysq.vue

@@ -234,7 +234,7 @@ export default {
         itemColor: '#000',
         success: e => {
           if (e.tapIndex === 0) {
-            uni.chooseImage({
+            uni.chooseMedia({
               count: 6 - this.imageList.length,
               success: res => {
                 uni.showLoading()
@@ -244,19 +244,23 @@ export default {
                 })
                 uni.hideLoading()
               },
-              fail: err => {}
+              fail: err => {
+                alert(err)
+              }
             })
           } else if (e.tapIndex === 1) {
             uni.chooseVideo({
               compressed: true,
               sourceType: ['camera', 'album'],
               camera: 'back',
-              maxDuration: 300,
               success: async res => {
                 uni.showLoading()
                 let data = await uploadImgFull(res.tempFilePath)
                 this.imageList.push(data)
                 uni.hideLoading()
+              },
+              fail: err => {
+                alert(err)
               }
             })
           }