card.vue 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  1. <template>
  2. <view class="">
  3. <navigator :url="`/pages/acitvityAudit/detail?id=${item.id}&current=${current}`" v-for="(item,index) in list"
  4. :key="index" class="card" hover-class="none">
  5. <image class="bg" :src="item.pic"></image>
  6. <view class="content">
  7. <text class="text-cut-1 title">{{item.title}}</text>
  8. <view class="cu-tag btn-bg-color round sm tag" v-for="(item1,index1) in item.labelNames.split(',')" :key="index1">
  9. {{item1}}
  10. </view>
  11. <view class="bottom">
  12. <view class="">
  13. <text class="time">报名截至时间:{{item.endTime}}</text>
  14. </view>
  15. <view v-if="item.auditStatus==0" class="center" style="color: #EF9944;">
  16. <text >待审核</text>
  17. <text class="cuIcon-right"></text>
  18. </view>
  19. <view v-if="item.auditStatus==4" class="center" style="color: #19be6b;">
  20. <text >已审核</text>
  21. <text class="cuIcon-right"></text>
  22. </view>
  23. </view>
  24. </view>
  25. </navigator>
  26. </view>
  27. </template>
  28. <script>
  29. export default {
  30. props: {
  31. list: Array,
  32. },
  33. data() {
  34. return {}
  35. },
  36. methods: {
  37. }
  38. }
  39. </script>
  40. <style lang="scss" scoped>
  41. .bottom-bar {
  42. position: fixed;
  43. bottom: 0;
  44. z-index: 99;
  45. width: 100%;
  46. background-color: #FFFFFF;
  47. height: 100rpx;
  48. display: flex;
  49. .left {
  50. width: 70%;
  51. display: flex;
  52. flex-direction: column;
  53. justify-content: center;
  54. padding-left: 30rpx;
  55. }
  56. .right {
  57. width: 30%;
  58. }
  59. }
  60. .card {
  61. overflow: hidden;
  62. position: relative;
  63. background-color: #FFFFFF;
  64. margin: 20rpx;
  65. border-radius: 20rpx;
  66. .bg {
  67. border-radius: 20rpx 20rpx 0 0;
  68. width: 100vw;
  69. height: 250rpx;
  70. }
  71. .status {
  72. position: absolute;
  73. right: 0;
  74. bottom: -10rpx;
  75. width: 100rpx;
  76. }
  77. .content {
  78. padding: 10rpx 20rpx;
  79. .title {
  80. font-weight: 800;
  81. font-size: 30rpx;
  82. }
  83. .tag {
  84. text-align: center;
  85. padding: 18rpx 28rpx;
  86. margin: 20rpx 20rpx 20rpx 0;
  87. }
  88. .bottom{
  89. display: flex;
  90. justify-content: space-between;
  91. font-size: 26rpx;
  92. .time {
  93. color: #999999;
  94. }
  95. }
  96. }
  97. }
  98. </style>