公众号项目
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.

139 lines
2.6 KiB

1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
  1. <template>
  2. <view class="active-card" @click="seeDetail">
  3. <view class="active-title">{{item.name}}</view>
  4. <view class="active-time flex align-center">
  5. <text>{{item.type}}{{item.content}}</text>
  6. </view>
  7. </view>
  8. </template>
  9. <script>
  10. export default{
  11. props:{
  12. text:{
  13. type:String,
  14. default:'查看详情'
  15. },
  16. item:{
  17. type:Object,
  18. },
  19. i:{
  20. type:Number,
  21. }
  22. },
  23. data(){
  24. return{
  25. }
  26. },
  27. methods:{
  28. seeDetail(){
  29. this.$emit('seeDetail',this.item)
  30. }
  31. }
  32. }
  33. </script>
  34. <style lang="scss" scoped>
  35. .active-card {
  36. background: #ffffff;
  37. border-radius: 12rpx;
  38. box-shadow: 3rpx 3rpx 6rpx 5rpx rgba(0,0,0,0.16);
  39. overflow: hidden;
  40. padding-bottom: 10rpx;
  41. margin-bottom: 20rpx;
  42. .active-title {
  43. word-wrap:break-word;
  44. word-break:break-all;
  45. font-size: 28rpx;
  46. color: #000;
  47. font-weight: 700;
  48. margin-bottom: 20rpx;
  49. line-height: 60rpx;
  50. padding-left: 10rpx;
  51. white-space: nowrap;
  52. overflow: hidden;
  53. text-overflow: ellipsis;
  54. }
  55. .active-time {
  56. word-wrap:break-word;
  57. word-break:break-all;
  58. color: #707070;
  59. font-size: 24rpx;
  60. margin: 20rpx 0;
  61. image {
  62. width: 33rpx;
  63. height: 33rpx;
  64. margin-right: 27rpx;
  65. }
  66. /* 文本不会换行显示 */
  67. white-space: nowrap;
  68. /* 超出盒子部分隐藏 */
  69. overflow: hidden;
  70. /* 文本超出的部分打点显示 */
  71. text-overflow: ellipsis;
  72. }
  73. .active-add {
  74. color: #707070;
  75. font-size: 28rpx;
  76. word-wrap:break-word;
  77. word-break:break-all;
  78. /* 文本不会换行显示 */
  79. white-space: nowrap;
  80. /* 超出盒子部分隐藏 */
  81. overflow: hidden;
  82. /* 文本超出的部分打点显示 */
  83. text-overflow: ellipsis;
  84. // overflow: hidden;/*这个参数根据需求来决定要不要*/
  85. image {
  86. width: 30rpx;
  87. height: 35rpx;
  88. margin-right: 27rpx;
  89. }
  90. }
  91. .active-time2 {
  92. color: #707070;
  93. font-size: 28rpx;
  94. margin: 20rpx 0;
  95. image {
  96. width: 33rpx;
  97. height: 33rpx;
  98. margin-right: 27rpx;
  99. }
  100. }
  101. .active-menu {
  102. margin-top: 21rpx;
  103. padding: 0 10rpx;
  104. .menu-price {
  105. font-size: 32rpx;
  106. .price {
  107. color: #D33D3E;
  108. font-size: 34rpx;
  109. font-weight: 500;
  110. }
  111. }
  112. .menu-btn {
  113. width: 213rpx;
  114. height: 79rpx;
  115. display: flex;
  116. align-items: center;
  117. justify-content: center;
  118. color: #00CCCC;
  119. font-size: 30rpx;
  120. font-weight: 500;
  121. }
  122. .menu-btn::after {
  123. content: " ";
  124. width: 15rpx;
  125. height: 15rpx;
  126. border-bottom: 3rpx solid #00CCCC;
  127. border-right: 3rpx solid #00CCCC;
  128. transform: rotate(-45deg);
  129. margin-left: 8rpx;
  130. }
  131. }
  132. }
  133. </style>