普兆健康管家前端代码仓库
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

79 lines
1.5 KiB

  1. <template>
  2. <view class="card">
  3. <view class="card-header">
  4. <view class="title">体检异常项</view>
  5. <view class="desc">Abnormal items from health check-up</view>
  6. </view>
  7. <view class="flex row" v-for="item in list" :key="item.id" @click="onClick(item)">
  8. <view>
  9. <view class="title">{{ item.title }}</view>
  10. <view class="desc">{{ item.desc }}</view>
  11. </view>
  12. <uv-icon name="arrow-right" color="#C6C6C6" size="24rpx"></uv-icon>
  13. </view>
  14. </view>
  15. </template>
  16. <script>
  17. export default {
  18. props: {
  19. list: {
  20. type: Array,
  21. default() {
  22. return []
  23. }
  24. }
  25. },
  26. methods: {
  27. onClick(data) {
  28. // todo
  29. },
  30. },
  31. }
  32. </script>
  33. <style lang="scss" scoped>
  34. .card {
  35. padding: 32rpx;
  36. background: #FAFAFF;
  37. border-radius: 24rpx;
  38. &-header {
  39. font-family: PingFang SC;
  40. line-height: 1.4;
  41. color: #252545;
  42. .title {
  43. font-weight: 600;
  44. font-size: 32rpx;
  45. }
  46. .desc {
  47. font-weight: 400;
  48. font-size: 24rpx;
  49. }
  50. }
  51. .row {
  52. margin-top: 24rpx;
  53. justify-content: space-between;
  54. padding: 24rpx;
  55. font-family: PingFang SC;
  56. font-weight: 400;
  57. background: #F3F2F7;
  58. border-radius: 16rpx;
  59. .title {
  60. font-size: 30rpx;
  61. line-height: 1.4;
  62. color: #252545;
  63. }
  64. .desc {
  65. margin-top: 4rpx;
  66. font-size: 22rpx;
  67. line-height: 1.6;
  68. color: #989898;
  69. }
  70. }
  71. }
  72. </style>