详情小程序
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.

78 lines
1.3 KiB

  1. <template>
  2. <view>
  3. <view class="content">
  4. <view class="card" v-for="item in 7" :key="item">
  5. <lf-image class="cover"></lf-image>
  6. <view class="label">
  7. <view class="lf-line-1">旅游#体育#美食#</view>
  8. <view class="lf-line-1">青秀区·双鱼座</view>
  9. </view>
  10. </view>
  11. </view>
  12. <!-- 加载更多 -->
  13. <view class="loading-more">
  14. <text>没有更多数据啦~</text>
  15. </view>
  16. <!-- 回到顶部 -->
  17. <u-back-top :scrollTop="pageScrollTop"></u-back-top>
  18. </view>
  19. </template>
  20. <script>
  21. export default {
  22. data(){
  23. return {
  24. }
  25. },
  26. onLoad(){
  27. },
  28. methods: {
  29. }
  30. }
  31. </script>
  32. <style lang="scss" scoped="scoped">
  33. .content{
  34. display: flex;
  35. flex-wrap: wrap;
  36. padding: 44rpx 32rpx;
  37. }
  38. .card{
  39. width: 334rpx;
  40. height: 360rpx;
  41. border-radius: 10rpx;
  42. position: relative;
  43. overflow: hidden;
  44. margin-right: 18rpx;
  45. margin-bottom: 18rpx;
  46. &:nth-child(2n){
  47. margin-right: 0rpx;
  48. }
  49. .cover{
  50. width: 100%;
  51. height: 100%;
  52. background-color: #EEEEEE;
  53. position: absolute;
  54. top: 0;
  55. left: 0;
  56. }
  57. .label{
  58. position: absolute;
  59. bottom: 0;
  60. left: 0;
  61. width: 100%;
  62. height: 98rpx;
  63. color: #FFFFFF;
  64. background: rgba(0, 0, 0, 0.5);
  65. display: flex;
  66. justify-content: center;
  67. padding: 0 20rpx;
  68. flex-wrap: nowrap;
  69. flex-direction: column;
  70. font-size: 28rpx;
  71. }
  72. }
  73. </style>