zhangzengfei
2022-08-22 f14f98a263141d2f8ec0079866a758cc7a1c38d1
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,
        },
      });
    },