13404089107
2025-05-22 9b44fc99f9ff65e024e03b6bd5b4bb6dd89a9c19
H5/pages/Appeal/Appeal.vue
@@ -72,7 +72,8 @@
                     <text class="fs-27 font-bold">语音文件{{ index + 1 }}</text>
                  </view>
                  <view class="flex j-between a-center">
                     <image src="/static/Appeal/delete.png" class="w-27 h-27 mr-38" mode=""></image>
                     <image src="/static/Appeal/delete.png" class="w-27 h-27 mr-38" mode=""
                        @click.stop="deleteVoice(index)"></image>
                     <image src="/static/Appeal/open.png" class="w-27 h-27" mode="" v-if="!item.playing"
                        @click.stop="onPlayRecording(index)"></image>
@@ -125,7 +126,7 @@
         </view>
      </view>
      <view class="footer">
         <view class="cancel" @click="submit(1)">
         <view class="cancel" @click="submit(1)" v-if="userInfo.levelId > 1">
            问题上报
         </view>
         <view class="cancel" @click="submit(2)">
@@ -178,9 +179,9 @@
            descriptionTitle: '',
            descriptionContent: '',
            videoContent: [],
            latitude: '',
            longitude: '',
            location: '',
            latitude: '30.5061493',
            longitude: '105.574542',
            location: '测试地址',
            images: [],
            videos: [],
            voiceFile: '', //语音文件多个逗号拼接
@@ -214,6 +215,9 @@
         onPausePlaying(index) {
            this.videoContent[index].playing = false;
            this.pausePlaying(this.videoContent[index].url);
         },
         deleteVoice(ind) {
            this.videoContent = this.videoContent.filter((item, index) => index != ind)
         },
         voiceInput() {
            this.voiceInputShow = true;
@@ -305,7 +309,7 @@
                        name: 'file',
                        header: {
                           // 'Content-Type': 'multipart/form-data',
                        'Authorization': uni.getStorageSync('token')
                           'Authorization': uni.getStorageSync('token')
                        },
                        success: (uploadFileRes) => {
                           const response = JSON.parse(uploadFileRes.data);
@@ -377,6 +381,12 @@
            } else if (!this.detailedAddress) {
               uni.showToast({
                  title: '请输入详细地址',
                  icon: 'none'
               })
               return
            } else if (!this.descriptionContent) {
               uni.showToast({
                  title: '请输入问题描述',
                  icon: 'none'
               })
               return
@@ -604,6 +614,7 @@
      display: flex;
      gap: 27rpx;
      padding: 33rpx 10rpx;
      justify-content: space-between;
      .cancel {
         width: 331rpx;