mark
2022-10-25 f20a554bdb24e9dfde9dc6a69d78595944f61d15
src/views/trialCenter/components/SdkItem.vue
@@ -1,18 +1,32 @@
<template>
  <div class="SdkItem">
    <div class="icon">
      <img src="/images/index/15戴口罩.png" alt="" />
    <div class="imgBox">
      <ImageShow :src="sdk.logoUrl" alt="" />
    </div>
    <div class="title">戴口罩</div>
    <div class="des">
      对火车驾驶舱的监控视频进行检测,当驾驶人员出现趴伏现象时,将结果记录下来
    <div class="title">{{ sdk.productName }}</div>
    <div class="des limitRow2">
      {{ sdk.description }}
    </div>
    <div class="button">立即试用</div>
    <div class="button" @click="buyProduct(sdk.id)">立即试用</div>
  </div>
</template>
<script>
export default {};
export default {
  props: {
    sdk: {},
  },
  methods: {
    buyProduct(id) {
      this.$router.push({
        path: "/productDetail",
        query: {
          id: id,
        },
      });
    },
  },
};
</script>
<style lang="scss" scoped>
@@ -21,7 +35,8 @@
  height: 280px;
  background-color: #fff;
  text-align: center;
  .icon img {
  position: relative;
  .imgBox img {
    margin-top: 20px;
    width: 96px;
  }
@@ -34,12 +49,16 @@
  }
  .des {
    height: 38px;
    margin: 0 20px 30px 20px;
    color: #666666;
    font-size: 14px;
  }
  .button {
    position: absolute;
    left: 0;
    bottom: 10px;
    width: 100%;
    height: 40px;
    box-shadow: 0px 2px 8px rgba(0, 43, 106, 0.12);