pyt
2025-02-26 403da33c30fc628c1608b96d95efdc12e70c3b06
H5/pages/result-entry/index.vue
@@ -32,12 +32,12 @@
                  <view class="shrink0 color2 font-w400">
                     <view>创建时间</view>
                     <view>问题类型</view>
                     <view>群众</view>
                     <view>群众姓名</view>
                     <view>联系电话</view>
                     <view>详细地址</view>
                  </view>
                  <view class="font-bold txt-aligin-r" style="max-width: 404rpx;">
                     <view>{{ info.createTime }}</view>
                     <view>{{ info.createTime | formatTime }}</view>
                     <view>{{ info.problemType }}</view>
                     <view>{{ info.name }}</view>
                     <view>{{ info.contactNumber }}</view>
@@ -55,8 +55,8 @@
               </view>
               <view class="fs-27 mt-35 lh-38 font-bold">描述图片</view>
               <view class="flex wrap mt-27">
                  <view @tap="viewImage(item)" class="relative mr-15" v-for="item in info.images.split(',')"
                     :key="item">
                  <view @tap="viewImage(item)" class="relative mr-15"
                     v-for="item in info.images && info.images.split(',')" :key="item">
                     <image :src="item" class="w-140 h-140 shrink0 br-8" />
                     <view class="absolute w-140 h-140 bgcolor5 top0 left0 br-8 flex a-center j-center">
                        <image @tap="viewImage(item)" src="@/static/Appeal/amplify.png" class="w-19 h-19" />
@@ -65,8 +65,8 @@
               </view>
               <view class="fs-27 mt-37 lh-38 font-bold">描述视频</view>
               <view class="flex wrap mt-27">
                  <view @tap="openVideo(item)" class="relative mr-15" v-for="item in info.videos.split(',')"
                     :key="item">
                  <view @tap="openVideo(item)" class="relative mr-15"
                     v-for="item in info.videos && info.videos.split(',')" :key="item">
                     <video id="myVideo" class="w-140 h-140 mt-19 shrink0" disabled :controls="false"
                        :show-center-play-btn="false" :src="item" />
                     <view class="videoOpen" @click.stop="openVideo(item)">
@@ -179,6 +179,7 @@
      saveResult,
      getComplaintDetail
   } from './service'
   import dayjs from '../../uni_modules/uview-ui/libs/util/dayjs'
   import config from '@/config/index.js'
   export default {
      data() {
@@ -208,6 +209,12 @@
            this.info = res.data
         })
      },
      filters: {
         formatTime(val) {
            if (!val) return ''
            return dayjs(val).format('YYYY-MM-DD HH:mm:ss')
         }
      },
      methods: {
         submit() {
            if (!this.status) {
@@ -226,20 +233,7 @@
                  mask: true
               })
            }
            if (this.completionImages.length == 0) {
               return uni.showToast({
                  title: '请上传办结结果图片',
                  icon: 'none',
                  mask: true
               })
            }
            if (this.completionVideos.length == 0) {
               return uni.showToast({
                  title: '请上传办结结果视频',
                  icon: 'none',
                  mask: true
               })
            }
            saveResult({
               id: this.id,
               status: this.status == '已办结' ? 3 : 4,
@@ -291,7 +285,7 @@
            })
         },
         uploadImg(type) {
            if (!this.againCklicFlag) return
            // if (!this.againCklicFlag) return
            this.againCklicFlag = false
            if (type == 1) {
               uni.chooseImage({
@@ -307,7 +301,7 @@
                           timeout: 1000 * 45,
                           name: 'file',
                           header: {
                              Authorization: config.uploadToken
                              Authorization: uni.getStorageSync('token')
                           },
                           success: (res) => {
                              if (JSON.parse(res.data).code == 200) {
@@ -358,7 +352,7 @@
                        timeout: 1000 * 45,
                        name: 'file',
                        header: {
                           Authorization: config.uploadToken
                           Authorization: uni.getStorageSync('token')
                        },
                        success: (res) => {
                           if (JSON.parse(res.data).code == 200) {