repairList.vue 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. <template>
  2. <view class="repair">
  3. <view @click="itemClick(item)" v-for="(item,index) in list" :key="index" class="repair-item">
  4. <view class="repair-item-left">
  5. <view class="">
  6. 报修类型:{{item.repair_type_name}}
  7. </view>
  8. <view class="">
  9. 报修时间:{{item.create_time}}
  10. </view>
  11. </view>
  12. <view class="repair-item-right">
  13. 查看详情 <uni-icons color="#999" type="right" size="14"></uni-icons>
  14. </view>
  15. </view>
  16. </view>
  17. </template>
  18. <script>
  19. export default {
  20. props: {
  21. list: {
  22. type: Array,
  23. default: () => []
  24. }
  25. },
  26. methods:{
  27. itemClick(item){
  28. this.$emit('click',item)
  29. }
  30. }
  31. }
  32. </script>
  33. <style scoped lang="scss">
  34. .repair {
  35. width: 100%;
  36. }
  37. .repair-item {
  38. width: 100%;
  39. box-sizing: border-box;
  40. padding: 32rpx;
  41. background-color: #fff;
  42. border-radius: 5.33px;
  43. box-shadow: 0px 0px 6.67px 0px rgba(147, 147, 147, 0.20);
  44. margin-bottom: 32rpx;
  45. display: flex;
  46. justify-content: space-between;
  47. align-items: center;
  48. .repair-item-right {
  49. color: #999;
  50. }
  51. }
  52. </style>