KdCard.vue 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. <template>
  2. <view class="kd-card">
  3. <view class="card-title">
  4. {{ title }}
  5. <text class="stauts"> 待执行 </text>
  6. </view>
  7. <view class="card-body">
  8. <view class="card-col">
  9. <text class="label">紧急程度</text>
  10. <text class="content">谢谢。</text>
  11. </view>
  12. <view class="card-col">
  13. <text class="label">报修人</text>
  14. <text class="content">舜发于畎亩之中</text>
  15. </view>
  16. <view class="card-col">
  17. <text class="label">报修原因</text>
  18. <text class="content"
  19. >舜发于畎亩之中,傅说举于版筑之间,胶鬲举于鱼盐之中,管夷吾举于士,孙叔敖举于海,百里奚举于市。</text
  20. >
  21. </view>
  22. </view>
  23. <view class="card-footer">
  24. 查看详情 <u-icon name="arrow-right"></u-icon>
  25. </view>
  26. </view>
  27. </template>
  28. <script>
  29. export default {
  30. props: {
  31. title: String,
  32. item: {
  33. type: Object,
  34. default: () => ({})
  35. }
  36. }
  37. }
  38. </script>
  39. <style lang="scss" scoped>
  40. .kd-card {
  41. font-size: 28rpx;
  42. color: #333;
  43. background-color: #fff;
  44. border-radius: 8rpx;
  45. .card-footer,
  46. .card-title {
  47. display: flex;
  48. justify-content: space-between;
  49. padding: 8rpx 12rpx;
  50. }
  51. .card-body {
  52. padding: 0 20rpx;
  53. border-top: 1rpx solid #f2f2f2;
  54. border-bottom: 1rpx solid #f2f2f2;
  55. .card-col {
  56. padding: 8rpx 0;
  57. display: flex;
  58. // line-height: ;
  59. .label {
  60. display: inline-block;
  61. width: 5em;
  62. color: #555;
  63. }
  64. .content {
  65. flex: 1;
  66. word-break: break-all;
  67. }
  68. }
  69. }
  70. }
  71. </style>