鸿宇研学生前端代码
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.

84 lines
1.4 KiB

  1. <template>
  2. <view class="flex card">
  3. <view class="radio">
  4. <uv-radio :name="data.id"></uv-radio>
  5. </view>
  6. <view class="flex price">
  7. ¥<view class="highlight">{{ data.price }}</view>
  8. </view>
  9. <view class="flex flex-column info">
  10. <view class="title">{{ data.label }}</view>
  11. <view class="desc">{{ `有效期至 ${data.validTime}` }}</view>
  12. </view>
  13. </view>
  14. </template>
  15. <script>
  16. export default {
  17. props: {
  18. data: {
  19. type: Object,
  20. default() {
  21. return {}
  22. }
  23. },
  24. value: {
  25. type: String,
  26. default: null,
  27. }
  28. },
  29. data() {
  30. return {
  31. }
  32. },
  33. methods: {
  34. },
  35. }
  36. </script>
  37. <style scoped lang="scss">
  38. .card {
  39. column-gap: 24rpx;
  40. padding: 8rpx 8rpx 8rpx 26rpx;
  41. font-family: PingFang SC;
  42. font-weight: 400;
  43. line-height: 1.4;
  44. background: #FFFFFF;
  45. border-radius: 24rpx;
  46. }
  47. .price {
  48. width: 164rpx;
  49. height: 224rpx;
  50. font-size: 24rpx;
  51. font-weight: 500;
  52. color: #FF4800;
  53. background: #FFF2F2;
  54. border-radius: 16rpx;
  55. .highlight {
  56. font-size: 48rpx;
  57. }
  58. }
  59. .info {
  60. flex: 1;
  61. align-items: flex-start;
  62. row-gap: 16rpx;
  63. height: 224rpx;
  64. padding-left: 24rpx;
  65. border-left: 2rpx dashed #DADADA;
  66. .title {
  67. font-size: 32rpx;
  68. font-weight: 500;
  69. color: #181818;
  70. }
  71. .desc {
  72. font-size: 28rpx;
  73. color: #9B9B9B;
  74. }
  75. }
  76. </style>