<template>
  <div :class="isMobile ? 'is-h5' : 'is-pc'">
    <app-frame :data="frameParams">
      <ul class="card">
        <li v-for="item in list" :key="item.title">
          <div class="left">
            <img :src="item.img" />
          </div>
          <div class="right">
            <h5>{{ item.title }}</h5>
            <p v-for="text in item.texts" :key="text">{{ text }}</p>
          </div>
        </li>
      </ul>
    </app-frame>
  </div>
</template>
<script>
export default {
  layout: 'normal',
  data() {
    return {
      list: [
        {
          img: 'https://webapp-pub.ezijing.com/project/kelley/project-intro-charac-icon1.png',
          title: this.$t('feature.item1Tit'),
          texts: [this.$t('feature.item1Txt1'), this.$t('feature.item1Txt2'), this.$t('feature.item1Txt3')]
        },
        {
          img: 'https://webapp-pub.ezijing.com/project/kelley/project-intro-charac-icon2.png',
          title: this.$t('feature.item2Tit'),
          texts: [this.$t('feature.item2Txt1'), this.$t('feature.item2Txt2'), this.$t('feature.item2Txt3')]
        },
        {
          img: 'https://webapp-pub.ezijing.com/project/kelley/project-intro-charac-icon3.png',
          title: this.$t('feature.item3Tit'),
          texts: [this.$t('feature.item3Txt1'), this.$t('feature.item3Txt2'), this.$t('feature.item3Txt3')]
        }
      ],
      frameParams: {
        banner: 'https://webapp-pub.oss-cn-beijing.aliyuncs.com/project/marywood/mary_banner_nx3.jpg',
        slider: [
          {
            name: this.$t('menu.projectChild.bg'),
            path: '/project-intro/bg'
          },
          {
            name: this.$t('menu.projectChild.feature'),
            path: '/project-intro/charac'
          },
          {
            name: this.$t('menu.projectChild.cert'),
            path: '/project-intro/certificate'
          }
        ]
      }
    }
  },
  computed: {
    isMobile() {
      return this.$store.state.isMobile
    }
  }
}
</script>
<style lang="scss" scoped>
.is-pc{
  .card {
    width: 763px;
    margin: 0 auto 0;
    padding: 80px 0 30px;
    li {
      height: 205px;
      background: #f9f8f8;
      box-shadow: 0px 3px 10px rgba(0, 0, 0, 0.09);
      margin-bottom: 50px;
      display: flex;
      .left {
        width: 212px;
        // background:#fcfcfc;
        img {
          width: 120px;
          height: 120px;
          margin: 43px 0 0 47px;
        }
      }
      .right {
        width: calc(100% - 212px);
        padding-top: 20px;
        h5 {
          font-size: 22px;
          font-family: Source Han Sans CN;
          font-weight: 500;
          line-height: 44px;
          color: #333333;
        }
        p {
          color: #424242;
          font-size: 16px;
          font-family: Source Han Sans CN;
          line-height: 36px;
        }
      }
    }
  }
}
.is-h5{
  .card {
    background: #fff;
    padding: .24rem .15rem .56rem;
    li {
      background: #f9f8f8;
      box-shadow: 0 0 0 rgb(0 0 0 / 9%);
      margin-bottom: .16rem;
      display: flex;
      align-items: center;
      box-sizing: border-box;
      padding: .16rem .14rem .1rem;
      .left {
        img {
          width: .72rem;
          height: .72rem;
          display: block;
        }
      }
      .right {
        margin-left: .23rem;
        h5 {
          font-size: .12rem;
          font-weight: 700;
          line-height: 100%;
          color: #333;
          margin-bottom: .16rem;
        }
        p {
          font-size: .1rem;
          font-family: Source Han Sans CN;
          line-height: 100%;
          color: #424242;
          margin-bottom: .1rem;
        }
      }
    }
  }
}
</style>