index.vue 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124
  1. <template>
  2. <view>
  3. <user-content></user-content>
  4. </view>
  5. </template>
  6. <script>
  7. import Black from '@/components/en-utils/en-blank/en-blank'
  8. import pagingList from '@/components/en-list/en-list'
  9. import enPrice from '@/components/en-utils/en-price/en-price'
  10. import {likeGoods} from "@/api/goods";
  11. import UserContent from "@/pages/index/model/user-content";
  12. export default {
  13. components:{
  14. UserContent,
  15. Black,
  16. pagingList,
  17. enPrice,
  18. },
  19. methods:{
  20. getGoodsList(page){
  21. likeGoods({'page':page}).then((res)=>{
  22. if(res.code===1){
  23. this.$refs.likeGoodsList.setList(res.data.list,res.data.total)
  24. }
  25. })
  26. }
  27. }
  28. }
  29. </script>
  30. <style scoped lang="scss">
  31. @font-face {
  32. font-family: 'iconfont';
  33. src: url('/components/static/icon/iconfont.ttf') format('truetype');
  34. }
  35. .iconfont {
  36. font-family: "iconfont" !important;
  37. font-style: normal;
  38. -webkit-font-smoothing: antialiased;
  39. -moz-osx-font-smoothing: grayscale;
  40. }
  41. .goods-list{
  42. background-color: #F5F5F5;
  43. margin: 0 24rpx;
  44. .goods-item{
  45. width: 100%;
  46. height: 364rpx;
  47. background-color: #FFFFFF;
  48. border-radius: 20rpx;
  49. margin: 20rpx 0;
  50. display: flex;
  51. .goods-item-left{
  52. padding: 24rpx;
  53. .goods-item-img{
  54. width:316rpx;
  55. height:316rpx;
  56. border-radius: 16rpx;
  57. }
  58. }
  59. .goods-item-right{
  60. width:100%;
  61. height:300rpx;
  62. padding:32rpx 30rpx 32rpx 0;
  63. position:relative;
  64. //display: flex;
  65. //align-content: space-between;
  66. .goods-item-name{
  67. color: #333333;
  68. font-size: 30rpx;
  69. font-weight: 600;
  70. display: -webkit-box;
  71. -webkit-line-clamp: 2;
  72. -webkit-box-orient: vertical;
  73. overflow: hidden;
  74. }
  75. .goods-item-price{
  76. position:absolute;
  77. bottom: 32rpx;
  78. .item-price{
  79. }
  80. .item-market{
  81. text{
  82. color: #999999;
  83. font-size: 24rpx;
  84. line-height: 34rpx;
  85. padding: 0 20rpx 0 0;
  86. }
  87. .iconfont{
  88. padding: 0;
  89. }
  90. }
  91. }
  92. .goods-item-platform{
  93. height: 32rpx;
  94. margin-bottom: 10rpx;
  95. .goods-item-tp{
  96. padding: 4rpx 8rpx;
  97. color: #975BFE;
  98. width: 90rpx;
  99. height: 30rpx;
  100. font-size: 24rpx;
  101. line-height: 28rpx;
  102. border: 2rpx solid #985DFF;
  103. border-radius: 4rpx;
  104. }
  105. .goods-item-jd{
  106. padding: 4rpx 8rpx;
  107. border-radius: 6rpx;
  108. color: #FFFFFF;
  109. font-size: 24rpx;
  110. line-height: 28rpx;
  111. background: linear-gradient(90deg, #FD3229 0%, #FC7A28 100%);
  112. }
  113. }
  114. .goods-item-zh{
  115. }
  116. }
  117. }
  118. }
  119. </style>