repair.vue 2.5 KB

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