时空网前端
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.

74 lines
1.6 KiB

  1. <template>
  2. <view>
  3. <view class="list-box">
  4. <view class="lf-row-between list-item" v-for="(item, index) in list" :key="index" hover-class="lf-opacity">
  5. <image class="goods-img"></image>
  6. <view style="width: 480rpx;">
  7. <view class="lf-font-32 lf-line-1">网红辣椒棒魔鬼辣椒挑战全网第</view>
  8. <view class="lf-row-between lf-m-t-20">
  9. <view class="lf-flex">
  10. <image class="shop-img"></image>
  11. <view class="lf-m-l-10 lf-font-28 lf-line-1 shop-name">李大叔家的店</view>
  12. </view>
  13. <view>
  14. <u-icon name="heart-fill" color="#ff0f00"></u-icon>
  15. </view>
  16. </view>
  17. <view class="lf-m-t-20 lf-font-24 lf-color-gray">收藏时间 2021-6-17 12:37:54</view>
  18. </view>
  19. </view>
  20. </view>
  21. <!-- 加载 -->
  22. <view class="loading-more">
  23. <text v-if="list.length" :class="{'loading-more-text': loadingClass}">{{ loadingText }}</text>
  24. <my-nocontent v-else></my-nocontent>
  25. </view>
  26. </view>
  27. </template>
  28. <script>
  29. export default {
  30. data(){
  31. return {
  32. list: [1, 2],
  33. loadingClass: false,
  34. loadingText: '已显示全部数据~'
  35. }
  36. },
  37. onLoad(){
  38. },
  39. methods: {
  40. }
  41. }
  42. </script>
  43. <style lang="scss" scoped="scoped">
  44. .list-box{
  45. width: 750rpx;
  46. height: auto;
  47. padding: 0 32rpx;
  48. box-sizing: border-box;
  49. .list-item{
  50. border-bottom: 1rpx solid #EEEEEE;
  51. padding: 30rpx 0;
  52. .goods-img{
  53. width: 180rpx;
  54. height: 180rpx;
  55. border-radius: 20rpx;
  56. background-color: #EEEEEE;
  57. }
  58. .shop-img{
  59. width: 60rpx;
  60. height: 60rpx;
  61. border-radius: 10rpx;
  62. background-color: #EEEEEE;
  63. }
  64. .shop-name{
  65. width: 340rpx;
  66. color: #555555;
  67. }
  68. }
  69. }
  70. </style>