repair.vue 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. <template>
  2. <view class="processWrapper ">
  3. <!-- 宫格列表 -->
  4. <view class="bg-white " >
  5. <view class="cu-list grid col-3 no-border" style="padding-bottom:0">
  6. <view class="cu-item justify-center align-center " v-for="(item,index) in repairSquare"
  7. :key="index">
  8. <view :style="`background:${item.color}`" style="width:90%" class=" repairSquare">
  9. <view class="num">{{item.num}}</view>
  10. <text class="title" style="color:#fff">{{item.title}}</text>
  11. </view>
  12. </view>
  13. </view>
  14. </view>
  15. <block>
  16. <view class="processList" style="margin-top:0">
  17. <view class="cu-list menu-avatar ">
  18. <view class="cu-item" v-for="(item,index) in unporcessList" :key="index">
  19. <view class="cu-avatar " :style="`background-image:url(${item.imgUrl})`" style="width:82rpx;height:82rpx"></view>
  20. <view class="content">
  21. <view class="pro-title">
  22. <view class="cut">{{item.title}}</view>
  23. </view>
  24. <view class="pro-des ">
  25. <view class="text-cut">
  26. {{item.subTitle}}
  27. </view>
  28. </view>
  29. <view class="pro-date ">{{item.time}}</view>
  30. </view>
  31. <view class="action margin-right-sm" style="text-align:right">
  32. <view style="color:#FDCA60" v-if="item.status==0">未处理</view>
  33. <view style="color:#59D1EA" v-if="item.status==1">未审核</view>
  34. <view style="color:#F77070" v-if="item.status==2">未通过</view>
  35. <view style="color:#72D06A" v-if="item.status==3">已完成</view>
  36. <view style="color:#F7895E" v-if="item.status==4">超时完成</view>
  37. </view>
  38. </view>
  39. </view>
  40. </view>
  41. </block>
  42. <view class="btn-area submitBottomBtn padding-lr-sm">
  43. <button class="bg-blue round margin-top" @tap="goRepairDetail">报 修 </button>
  44. </view>
  45. </view>
  46. </template>
  47. <script>
  48. import json from '../../data/json.js';
  49. export default {
  50. data() {
  51. return {
  52. unporcessList:json.repair,
  53. repairSquare: json.repairSquare,
  54. modalName: null,
  55. listTouchStart: 0,
  56. listTouchDirection: null,
  57. CustomBar: this.CustomBar,
  58. };
  59. },
  60. methods: {
  61. // 页面跳转
  62. goRepairDetail() {
  63. uni.navigateTo({
  64. url: '/pages/repair/repairDetail/repairDetail',
  65. success: res => {},
  66. fail: () => {},
  67. complete: () => {}
  68. });
  69. }
  70. }
  71. }
  72. </script>
  73. <style lang="scss">
  74. .processList{
  75. position:static;
  76. }
  77. </style>