scroll-list-card-zhengshu.vue 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. <template>
  2. <view class="scroll-list-card mobile-card-box">
  3. <view>
  4. <img style="width: 100rpx;height: 100rpx;;" :src="data.pic" alt="" />
  5. </view>
  6. <text>{{data.name}}</text>
  7. <view class="timeSpan">发证日期:{{data}}</view>
  8. <view class="timeSpan">到期日期:{{data.expiryDate?data.expiryDate: '永久'}}</view>
  9. <view class="timeSpan">证书状态:{{data.disabled}}</view>
  10. </view>
  11. </template>
  12. <script setup>
  13. import {
  14. toRefs,
  15. ref,
  16. computed
  17. } from "vue";
  18. const props = defineProps({
  19. data: {
  20. type: Object,
  21. },
  22. });
  23. const {
  24. data
  25. } = toRefs(props);
  26. </script>
  27. <style lang="scss" scoped>
  28. .mobile-card-box {
  29. box-sizing: border-box;
  30. margin: 0 30rpx 10rpx;
  31. border-bottom: 2rpx solid #f2f1f2;
  32. padding-bottom: 30rpx;
  33. }
  34. .mobile-card-title {
  35. color: #333;
  36. font-size: 32rpx;
  37. font-weight: 500;
  38. margin: 24rpx 0 24rpx 0;
  39. text-overflow: ellipsis;
  40. -o-text-overflow: ellipsis;
  41. overflow: hidden;
  42. word-wrap: break-word;
  43. display: -webkit-box;
  44. white-space: normal;
  45. -webkit-box-orient: vertical;
  46. text-align: justify;
  47. -webkit-line-clamp: 2;
  48. line-clamp: 2;
  49. line-height: 48rpx;
  50. }
  51. // 行
  52. .mobile-card-row {
  53. margin-bottom: 32rpx;
  54. display: flex;
  55. justify-content: space-between;
  56. align-items: flex-end;
  57. text {
  58. font-size: 28rpx;
  59. line-height: 40rpx;
  60. }
  61. // 得分
  62. .mobile-card-score {
  63. font-size: 40rpx;
  64. color: #f10a0a;
  65. }
  66. // 分数(有最小宽度)
  67. .card-score-box {
  68. min-width: 240rpx;
  69. text-align: left;
  70. }
  71. }
  72. // 按钮
  73. .mobile-card-btn {
  74. width: 60%;
  75. height: 80rpx;
  76. line-height: 80rpx;
  77. margin: 50rpx auto;
  78. background: linear-gradient(0deg, #436aff 0%, #234ff7 100%);
  79. border-radius: 80rpx;
  80. display: block;
  81. }
  82. </style>