index.vue 3.1 KB

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