repairAcceptance.vue 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137
  1. <template>
  2. <div class="repairAcceptance">
  3. <div class="whiteBoard">
  4. <div class="addRepair" @tap="addRepair">新增报修 <van-icon name="add" style="margin-left: 8rpx"/></div>
  5. <div class="repairItem" v-for="item in repairList" @click="toDetail(item)">
  6. <div class="repairItemTitleRow">
  7. <span class="titleName">{{item.name}}</span>
  8. <span class="titleTag" :class="item.type==='待处理'?'titleTag2':item.type==='已处理'?'titleTag3':'titleTag'">{{item.type}}</span>
  9. </div>
  10. <div class="companyBox">
  11. <img src="https://www.idea-co-sf.com/gardenProduct/image/gs.svg" class="gsIcon">
  12. <span class="companyName">无锡 XXXX有限公司</span>
  13. </div>
  14. <div class="upTimeBox">上报时间:2021-1-21 13:00</div>
  15. </div>
  16. </div>
  17. </div>
  18. </template>
  19. <script>
  20. export default {
  21. name: "repairAcceptance",
  22. data(){
  23. return{
  24. repairList:[
  25. {name:'上月水费不太对,怀疑水表异常',type:'待受理'},
  26. {name:'空调坏了,不能使用',type:'待处理'},
  27. {name:'空调坏了,不能使用',type:'已处理'},
  28. ]
  29. }
  30. },
  31. methods:{
  32. addRepair(){
  33. uni.navigateTo({
  34. url:'/pages/subPackages/todo/addRepair'
  35. })
  36. },
  37. toDetail(item) {
  38. uni.navigateTo({
  39. url:'/pages/subPackages/todo/dispatch?type=' + item.type
  40. })
  41. }
  42. }
  43. }
  44. </script>
  45. <style lang="scss">
  46. .repairAcceptance{
  47. .whiteBoard{
  48. background: white;
  49. margin-top: 24rpx;
  50. box-sizing: border-box;
  51. padding: 32rpx;
  52. height: 1424rpx;
  53. .addRepair{
  54. display: flex;
  55. justify-content: flex-end;
  56. align-items: center;
  57. color: rgba(3, 101, 249, 1);
  58. }
  59. .repairItem{
  60. background: rgba(245, 247, 250, 1);
  61. border-radius: 16rpx;
  62. width: 686rpx;
  63. height: 224rpx;
  64. padding: 32rpx 0 24rpx 0;
  65. box-sizing: border-box;
  66. margin-top: 24rpx;
  67. .repairItemTitleRow{
  68. display: flex;
  69. justify-content: space-between;
  70. padding: 0 32rpx;
  71. .titleName{
  72. color: rgba(34, 34, 34, 1);
  73. font-size: 32rpx;
  74. font-weight: 600;
  75. }
  76. .titleTag{
  77. width: 112rpx;
  78. height: 48rpx;
  79. display: flex;
  80. align-items: center;
  81. justify-content: center;
  82. border-radius: 4rpx;
  83. color: rgba(242, 25, 18, 1);
  84. font-size: 28rpx;
  85. background: rgba(242, 25, 18, 0.20);
  86. }
  87. .titleTag2{
  88. width: 112rpx;
  89. height: 48rpx;
  90. display: flex;
  91. align-items: center;
  92. justify-content: center;
  93. border-radius: 4rpx;
  94. color: rgba(255, 107, 24, 1);
  95. font-size: 28rpx;
  96. background: rgba(255, 107, 24, 0.20);
  97. }
  98. .titleTag3{
  99. width: 112rpx;
  100. height: 48rpx;
  101. display: flex;
  102. align-items: center;
  103. justify-content: center;
  104. border-radius: 4rpx;
  105. color: rgba(34, 181, 101, 1);
  106. font-size: 28rpx;
  107. background: rgba(34, 181, 101, 0.20);
  108. }
  109. }
  110. .companyBox{
  111. display: flex;
  112. align-items: center;
  113. padding: 8rpx 32rpx 24rpx 32rpx;
  114. .gsIcon{
  115. width: 32rpx;
  116. height: 32rpx;
  117. }
  118. .companyName{
  119. font-size: 28rpx;
  120. color: rgba(102, 102, 102, 1);
  121. margin-left: 8rpx;
  122. }
  123. }
  124. .upTimeBox{
  125. padding: 16rpx 32rpx 0 32rpx;
  126. border-top: 1px solid rgba(230, 230, 230, 1);
  127. color: rgba(102, 102, 102, 1);
  128. font-size: 28rpx;
  129. }
  130. }
  131. }
  132. }
  133. </style>