mark
2022-10-25 f20a554bdb24e9dfde9dc6a69d78595944f61d15
src/views/trialCenter/components/SdkItem.vue
@@ -1,13 +1,13 @@
<template>
  <div class="SdkItem">
    <div class="icon">
      <img :src="'/httpImage/' + sdk.logoUrl" alt="" />
    <div class="imgBox">
      <ImageShow :src="sdk.logoUrl" alt="" />
    </div>
    <div class="title">{{ sdk.productName }}</div>
    <div class="des limitRow2">
      {{ sdk.description }}
    </div>
    <div class="button" @click="buyProduct(sdk.productName)">立即试用</div>
    <div class="button" @click="buyProduct(sdk.id)">立即试用</div>
  </div>
</template>
@@ -17,11 +17,11 @@
    sdk: {},
  },
  methods: {
    buyProduct(productName) {
    buyProduct(id) {
      this.$router.push({
        path: "/productDetail",
        query: {
          name: productName,
          id: id,
        },
      });
    },
@@ -36,7 +36,7 @@
  background-color: #fff;
  text-align: center;
  position: relative;
  .icon img {
  .imgBox img {
    margin-top: 20px;
    width: 96px;
  }