13404089107
2025-05-23 e3a78db2a9b791284dfbc087f393ecca08de1ca1
H5/pages/Appeal/Appeal.vue
@@ -69,7 +69,7 @@
            <view v-for="item, index in videoContent" :key="index">
               <view class="pl-19 pr-19 pb-17 pt-17 flex j-between a-center br-8 pink">
                  <view class="flex1">
                     <text class="fs-27 font-bold">语音文件{{ index + 1 }}</text>
                     <text class="fs-27 font-bold">语音文件{{ (index + 1) | numToWords }}</text>
                  </view>
                  <view class="flex j-between a-center">
                     <image src="/static/Appeal/delete.png" class="w-27 h-27 mr-38" mode=""
@@ -179,9 +179,9 @@
            descriptionTitle: '',
            descriptionContent: '',
            videoContent: [],
            latitude: '30.5061493',
            longitude: '105.574542',
            location: '测试地址',
         latitude: '',
         longitude: '',
         location: '',
            images: [],
            videos: [],
            voiceFile: '', //语音文件多个逗号拼接
@@ -192,6 +192,24 @@
      computed: {
         ...mapState(["playFlag"]),
      },
   filters: {
      formatTime(val) {
         if (!val) return ''
         return dayjs(val).format('YYYY-MM-DD HH:mm:ss')
      },
      numToWords(val) {
         const words = ['零', '一', '二', '三', '四', '五', '六', '七', '八', '九', '十']
         // 处理 0-10
         if (val >= 0 && val <= 10) return words[val];
         // 处理 11-99
         if (val > 10 && val < 100) {
            const ten = Math.floor(val / 10);
            const unit = val % 10;
            return `${ten > 1 ? words[ten] : ''}十${unit > 0 ? words[unit] : ''}`;
         }
         return val; // 超过99返回原数字
      }
   },
      onReady() {
         uni.setNavigationBarTitle({
            title: '诉求录入'