ZZJ
2022-07-14 2b99047683332624832c1dfcae596e957a710b7d
src/views/index/components/rightRrid.vue
@@ -2,14 +2,14 @@
  <div class="rightRrid">
    <div class="gridItem" v-for="(item, index) in product" :key="index">
      <div class="title">
        <img :src="'/httpImage/' + item.logoUrl" alt="" />
        <ImageShow :src="item.logoUrl"></ImageShow>
        {{ item.modelName }}
      </div>
      <div class="des limitRow2">
        {{ item.description }}
      </div>
      <price :priceNew="item.priceBase"></price>
      <div class="button" @click="buyProduct(item.modelName)">立即购买</div>
      <div class="button" @click="buyProduct(item.id)">立即购买</div>
    </div>
  </div>
</template>
@@ -39,11 +39,11 @@
    }
  },
  methods: {
    buyProduct(modelName) {
    buyProduct(id) {
      this.$router.push({
        path: "/productDetail",
        query: {
          name: modelName,
          id: id,
        },
      });
    },