<!--
    @name: 砍价
    @author: kahu4
    @date: 2023-10-27 14:42
    @description：index
    @update: 2023-10-27 14:42
-->
<script setup>
import { useRouter } from "@/hooks/useRouter";
import TwoRowGoodRow from "@/pages/index/components/public/TwoRowGoodRow.vue"

const props = defineProps({
  products: {
    type: Array
  }
})
const {push} = useRouter()

</script>

<template>
  <blank size="15"></blank>

  <activity
      title="砍价专区"
      more="查看更多"
      @moreClick="push({ url: '/pages/newGoods/newGoods' })"
  >
    <TwoRowGoodRow :products="props.products"></TwoRowGoodRow>
  </activity>
</template>

<style
    scoped
    lang="scss"
>
@import "@/style/main.scss";

.goods-row {
  @include usePadding(30, 20);
  border-radius: 15rpx;

}
</style>
