card2.vue 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  1. <template>
  2. <view class="">
  3. <view class="cu-card case card" v-for="(item,index) in list" :key="index">
  4. <view class="cu-item shadow">
  5. <view class="image">
  6. <image style="width: 100%;height: 450rpx;" :src="item.pic"></image>
  7. </view>
  8. <view class="content">
  9. <view class="top">
  10. <text class="title">{{item.name}}</text>
  11. <view v-if="item.introduce" class="desc text-cut-2">
  12. {{item.introduce}}
  13. </view>
  14. </view>
  15. <view class="bottom">
  16. <view class="">
  17. <image src="../../../static/del/map1.png" mode=""></image>
  18. <text>距此3.5km</text>
  19. </view>
  20. <view class="">
  21. <image style="width: 40rpx;height: 40rpx;" src="../../../static/del/lx.png" mode=""></image>
  22. <text>查看路线</text>
  23. </view>
  24. <view class="">
  25. <image src="../../../static/del/activitys.png" mode=""></image>
  26. <text>18个活动</text>
  27. </view>
  28. </view>
  29. </view>
  30. </view>
  31. </view>
  32. </view>
  33. </template>
  34. <script>
  35. export default{
  36. props:{
  37. list:Array
  38. },
  39. data(){
  40. return {
  41. }
  42. }
  43. }
  44. </script>
  45. <style lang="scss">
  46. .card{
  47. background-color: #FFFFFF;
  48. border-bottom: 1rpx solid #ececec;
  49. }
  50. .card:last-child{
  51. border: none;
  52. }
  53. .content{
  54. display: flex;
  55. flex-direction: column;
  56. .top{
  57. .title{
  58. font-weight: 800;
  59. font-size: 28rpx;
  60. }
  61. .desc{
  62. margin-top: 10rpx;
  63. color: #919191;
  64. font-size: 24rpx;
  65. }
  66. }
  67. .bottom{
  68. margin-top: 20rpx;
  69. display: flex;
  70. width: 100%;
  71. view{
  72. width: calc(100% / 3);
  73. display: flex;
  74. align-items: center;
  75. image{
  76. width: 30rpx;
  77. height: 30rpx;
  78. }
  79. text{
  80. font-size: 28rpx;
  81. margin-left: 6rpx;
  82. }
  83. }
  84. view:nth-child(1){
  85. justify-content: flex-start;
  86. }
  87. view:nth-child(2){
  88. justify-content: center;
  89. }
  90. view:nth-child(3){
  91. justify-content: flex-end;
  92. }
  93. }
  94. }
  95. </style>