落日与鲸
2025-02-28 573193bb8ba686b06b5132cd233f953cc06d310d
H5/pages/result-entry/index.vue
@@ -285,14 +285,11 @@
            })
         },
         uploadImg(type) {
            // if (!this.againCklicFlag) return
            this.againCklicFlag = false
            if (type == 1) {
               uni.chooseImage({
                  count: 1,
                  success: (chooseImageRes) => {
                     this.completionImages.push('loading')
                     this.againCklicFlag = true
                     let imgPathList = chooseImageRes.tempFilePaths;
                     if (imgPathList.length > 0) {
                        uni.uploadFile({
@@ -315,7 +312,6 @@
                                    this.localImageUrls.push(imgPathList[0])
                                 })
                              } else {
                                 this.againCklicFlag = true
                                 this.completionImages = this.completionImages.filter(
                                    item => item != 'loading')
                                 uni.showToast({
@@ -326,7 +322,6 @@
                              }
                           },
                           fail: (err) => {
                              this.againCklicFlag = true
                              this.completionImages = this.completionImages.filter(
                                 item => item != 'loading')
                              uni.showToast({
@@ -337,14 +332,22 @@
                           }
                        })
                     }
                  },
                  }
               })
            } else {
               uni.chooseVideo({
                  camera: 'back',
                  count: 1, //默认9
                  success: (res) => {
                     const videoExtensions = /\.(mp4|avi|rmvb)$/i;
                     if (!videoExtensions.test(res.name)) {
                        uni.showToast({
                           title: '请上传mp4, avi, rmvb格式的视频',
                           icon: 'none',
                           duration: 3000
                        })
                        return
                     }
                     this.completionVideos.push('loading')
                     this.againCklicFlag = true
                     const tempFilePath = res.tempFilePath;
                     uni.uploadFile({
                        url: config.imageUrl,
@@ -364,7 +367,6 @@
                                    .data)
                              })
                           } else {
                              this.againCklicFlag = true
                              this.completionVideos = this.completionVideos.filter(
                                 item => item != 'loading')
                              uni.showToast({
@@ -375,7 +377,6 @@
                           }
                        },
                        fail: (err) => {
                           this.againCklicFlag = true
                           this.completionVideos = this.completionVideos.filter(
                              item => item != 'loading')
                           uni.showToast({