zhangzengfei
2022-08-22 f14f98a263141d2f8ec0079866a758cc7a1c38d1
src/views/index/components/commendContent.vue
@@ -8,11 +8,11 @@
      v-for="(item, index) in commendData"
      :key="index"
    >
      <img :src="'/httpImage/' + item.logoUrl" alt="" />
      <ImageShow :src="item.logoUrl"> </ImageShow>
      <div class="title">{{ item.productName }}</div>
      <div class="des limitoRow2">{{ item.description }}</div>
      <price :priceNew="item.priceBase"></price>
      <div class="button" @click="buyProduct(item.productName)">立即购买</div>
      <div class="des limitRow2">{{ item.description }}</div>
      <price :priceNew="item.priceBase ? item.priceBase : 0"></price>
      <div class="button" @click="buyProduct(item.id)">立即安装</div>
    </div>
  </div>
</template>
@@ -33,11 +33,11 @@
    refresh() {
      this.$emit("refresh");
    },
    buyProduct(productName) {
    buyProduct(id) {
      this.$router.push({
        path: "/productDetail",
        query: {
          name: productName,
          id: id,
        },
      });
    },