pyt
2025-02-24 b31c7c629a2efddc53c89b8f0df0de0e2a33e8d9
H5/pages/problemReporting/problemReporting.vue
@@ -2,12 +2,12 @@
   <view class="problem-report-page">
      <view class="info-cards">
         <view class="info-top">
            <view class="num">诉求号:7843523454</view>
            <view class="status">正在办理</view>
            <view class="num">诉求号:{{detail.serialNumber}}</view>
            <view class="status">{{['正在办理','延期办理','超时办理','已办结','群众撤销','上报待审核','上级驳回'][detail.status]}}</view>
         </view>
         <view class="address">
            <view class="adr">江苏省常州市溧阳市牛顿大道172号</view>
            <view class="adr">{{detail.detailedAddress || ''}}</view>
            <image src="/static/position@2x.png" class="w-31 h-31" mode="aspectFill"></image>
         </view>
@@ -21,11 +21,11 @@
            <view class="table-item">
               <view class="type-tip flex1">
                  <view class="tip">
                     教育
                     {{detail.problemType}}
                  </view>
               </view>
               <view class="person-item flex1">沙振</view>
               <view class="phone-item flex1">14225874426</view>
               <view class="person-item flex1">{{detail.name}}</view>
               <view class="phone-item flex1">{{detail.contactNumber}}</view>
            </view>
         </view>
@@ -50,12 +50,46 @@
</template>
<script>
   import {
      problemReport,
      getDetail
   } from './service'
   export default {
      data() {
         return {
            content: '',
            id: '',
            detail: {},
         };
      }
      },
      onLoad(option) {
         if (option.id) {
            this.id = option.id
            getDetail({
               id: option.id
            }).then(res => {
               if (res.code == 200) {
                  this.detail = res.data
               }
            })
         }
      },
      methods: {
         problemReports() {
            problemReport({
               comment: this.content,
               complaintId: this.id
            }).then(res => {
               if (res.code == 200) {
                  uni.showToast({
                     icon: 'none',
                     title: '上报成功'
                  })
                  uni.navigateBack()
               }
            })
         },
      },
   }
</script>