activity-case.vue 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126
  1. <template>
  2. <view class="teaching_case">
  3. <view class="img">
  4. <!-- <slot name="img"></slot> -->
  5. <image src="../../static/activity/bg2.png" mode="aspectFill"></image>
  6. </view>
  7. <view class="right">
  8. <view class="title">
  9. <view class="tag">类型</view>
  10. <text>这里是活动标题标题标题</text>
  11. </view>
  12. <view class="introduce">
  13. 活动描述活动描述活动描述活动描述活动描述活动描述活动描述
  14. </view>
  15. <view class="operate">
  16. <view class="left">
  17. <view class="money">¥188</view>
  18. <view class="person">已报名123人</view>
  19. </view>
  20. <button class="btn">立即报名</button>
  21. </view>
  22. </view>
  23. </view>
  24. </template>
  25. <script>
  26. export default {
  27. name:"activity-case",
  28. data() {
  29. return {
  30. };
  31. }
  32. }
  33. </script>
  34. <style lang="scss">
  35. .teaching_case{
  36. display: flex;
  37. justify-content: space-between;
  38. margin-bottom: 20px;
  39. // padding-right: 20px;
  40. padding: 0 15px;
  41. .img{
  42. width: 180rpx;
  43. height: 180rpx;
  44. image{
  45. width: 100%;
  46. height:100%;
  47. }
  48. }
  49. .right{
  50. padding-left: 15px;
  51. flex: 1;
  52. width: 100rpx;
  53. display: flex;
  54. flex-direction: column;
  55. align-content: flex-end ;
  56. .title{
  57. display: flex;
  58. margin-bottom: 5px;
  59. .tag{
  60. border: 1px #00b2b6 solid;
  61. font-size: 12px;
  62. display: flex;
  63. white-space: nowrap;
  64. justify-content: center;
  65. align-items: center;
  66. padding: 2px 4px;
  67. border-radius: 3px;
  68. margin-right: 10rpx;
  69. color: #00b2b6;
  70. }
  71. text{
  72. overflow: hidden;
  73. text-overflow:ellipsis;
  74. white-space: nowrap;
  75. }
  76. }
  77. .introduce{
  78. font-size: 16px;
  79. color: #a7a7a7;
  80. // padding: 20rpx 0;
  81. overflow: hidden;
  82. text-overflow:ellipsis;
  83. white-space: nowrap;
  84. }
  85. .operate{
  86. display: flex;
  87. justify-content: space-between;
  88. align-items: flex-end;
  89. .left{
  90. display: flex;
  91. justify-content: space-between;
  92. width: 260rpx;
  93. .money{
  94. color: #FFA338 ;
  95. font-weight: bold;
  96. font-size: 36rpx;
  97. }
  98. .person{
  99. padding-top: 10rpx;
  100. font-size: 24rpx;
  101. }
  102. }
  103. .btn{
  104. width: 80px;
  105. font-size: 12px;
  106. background-color: #3081e8;
  107. color: #fff;
  108. border-radius: 30px;
  109. margin: 0;
  110. float: right;
  111. margin-top: 10px;
  112. }
  113. }
  114. }
  115. }
  116. </style>