ZZJ
2022-07-14 2b99047683332624832c1dfcae596e957a710b7d
src/views/index/components/rightRrid.vue
@@ -9,7 +9,7 @@
        {{ 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,
        },
      });
    },