goods-card.vue 965 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. <template>
  2. <div class="goods-card" @click="$emit('handlerEmit', storeInfo)">
  3. <van-image :src="storeInfo.image"></van-image>
  4. <div class="info">{{ storeInfo.title || 'Prostrolane Nature-B珀洛丽肽焕活修颜精华液洛丽肽焕活修颜精华液洛丽肽焕活修颜精华液洛丽肽焕活修颜精华液洛丽肽焕活修颜精华液' }}</div>
  5. </div>
  6. </template>
  7. <script>
  8. export default {
  9. props: {
  10. storeInfo: {
  11. type: Object,
  12. default: () => ({})
  13. }
  14. }
  15. }
  16. </script>
  17. <style scoped lang="scss">
  18. .goods-card {
  19. padding: 4.3vw 0;
  20. border-bottom: 1px solid #E1E1E1;
  21. background: #fff;
  22. display: flex;
  23. justify-content: space-between;
  24. ::v-deep .van-image {
  25. width: 21.6vw;
  26. height: 21.6vw;
  27. border-radius: 1.1vw;
  28. }
  29. .info {
  30. line-height: 6.4vw;
  31. margin-left: 3.2vw;
  32. height: 12.8vw;
  33. width: 67.3vw;
  34. color: #333333;
  35. font-size: 3.7vw;
  36. @include webkit-line-clamp(2)
  37. }
  38. }
  39. </style>