CenterModel.vue 7.03 KB
<template>
  <div class="center-model">
    <div class="card-box flex">
      <template v-for="(i, index) in topList">
        <div :key="index" :class="['card-item floating-element', { 'hover-item': index < 2 }]" @click="index < 2 ? showDialog(index) : null">
          <img class="card-item-bg" :src="topImgList[index]" />
          <div class="card-text">{{ i }}</div>
        </div>
      </template>
    </div>

    <div class="center-box">
      <div class="model-title">
        <div class="text">用户数据元件</div>
      </div>
      <div class="arrow">
        <img src="@/assets/images/factor/center-top-arrow.png" />
        <img class="box-center" src="@/assets/images/factor/center-top-arrow.gif" />
      </div>
      <div class="center-list flex">
        <template v-for="(i, index) in centerList">
          <div :key="index" class="center-item">
            <img class="bg" src="@/assets/images/factor/center-icon.png" />
            <div class="text-box flex">
              <div class="text-title">{{ i.title }}</div>
              <div class="text" v-html="i.text"></div>
            </div>
          </div>
        </template>
        <div class="fixed-text-box box-center flex">
          <!-- <div class="text">数据</div>
          <div class="text">元件</div> -->
        </div>
      </div>
      <div class="arrow">
        <img src="@/assets/images/factor/center-bottom-arrow.png" />
        <img class="box-center" src="@/assets/images/factor/center-bottom-arrow.gif" />
      </div>
      <div class="model-title">
        <div class="text">车辆数据元件</div>
      </div>
    </div>
    <div class="card-box flex">
      <template v-for="(i, index) in bottomList">
        <div :key="index" :class="['card-item floating-element', { 'hover-item': index < 2 }]" @click="index < 2 ? showDialog(index + 2) : null">
          <img class="card-item-bg" :src="bottomImgList[index]" />
          <div class="card-text">{{ i }}</div>
        </div>
      </template>
    </div>
    <dialog-box :isShowDialog.sync="isShowDialog" :backgroundImageList="backgroundImageList" :currentIndex.sync="currentIndex" :titleList="titleList" />
  </div>
</template>

<script type="text/ecmascript-6">
import DialogBox from './DialogBox.vue'
export default {
  name: '',
  components: {
    DialogBox
  },
  data () {
    return {
      topImgList: [
        require('@/assets/images/factor/center-top-1.png'),
        require('@/assets/images/factor/center-top-2.png'),
        require('@/assets/images/factor/center-top-3.png'),
        require('@/assets/images/factor/center-top-4.png'),
      ],
      topList: ['UBI保险评分', '精准营销画像', '个性化轻改画像', '车主权益整合'],
      bottomImgList: [
        require('@/assets/images/factor/center-bottom-1.png'),
        require('@/assets/images/factor/center-bottom-2.png'),
        require('@/assets/images/factor/center-bottom-3.png'),
        require('@/assets/images/factor/center-bottom-4.png'),
      ],
      bottomList: ['碰撞送修识别', '汽车金融风控', '电池健康度评估', '车辆残值评估'],
      centerList: [
        { title: '车辆维度', text: '基本信息<br>行驶数据<br>位置数据<br>状态数据<br>维保信息<br>充电信息' },
        { title: '车主纬度', text: '基本信息<br>身份信息<br>驾驶习惯<br>事故信息<br>违章信息<br>投保信息' },
        { title: '公共数据', text: '交易数据<br>交通数据<br>环境数据<br>车险数据<br>停电场数据<br>充电桩数据' }
      ],
      backgroundImageList: [
        require('@/assets/images/factor/center-dialog-1.png'),
        require('@/assets/images/factor/center-dialog-2.png'),
        require('@/assets/images/factor/center-dialog-3.png'),
        require('@/assets/images/factor/center-dialog-4.png'),
      ],
      titleList: ['UBI保险评分', '精准营销画像', '碰撞送修识别', '汽车金融风控'],
      currentIndex: 0,
      isShowDialog: false
    }
  },
  mounted () {
  },
  methods: {
    showDialog (index) {
      this.isShowDialog = true
      this.currentIndex = index
    }
  }
}
</script>

<style scoped lang="scss">
.center-model {
  width: 1028px;
  height: 83.65vh;
  background-size: cover;
  background-repeat: no-repeat;
  position: absolute;
  left: 735px;
  top: 0;

  &::after {
    content: '';
    width: 975px;
    height: 81.92vh;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: -25px;
    background-image: url('../../../assets/images/factor/factor-center.png');
    background-size: cover;
    z-index: -1;
  }
  .card-box {
    justify-content: center;
    gap: 0 20px;
    margin-bottom: 0.46vh;
    .card-item {
      width: 185px;
      height: 17.3vh;
      font-weight: 700;
      font-size: 16px;
      color: #ffffff;
      position: relative;
      box-sizing: border-box;
      text-align: center;
      padding-top: 10.8vh;
      .card-text {
        position: relative;
        z-index: 2;
      }
      &-bg {
        width: 100%;
        height: 100%;
        position: absolute;
        top: 0;
        left: 0;
        color: #b6fafc;
      }
    }
    .hover-item {
      cursor: pointer;
      &:hover {
        transform: scale(1.1);
      }
    }
  }
  .center-box {
    position: relative;
    &::before {
      position: absolute;
      top: -5vh;
      left: 50%;
      transform: translateX(-50%);
      content: '';
      width: 586px;
      height: 60.77vh;
      background-image: url('../../../assets/images/factor/center-arrow.png');
      background-size: cover;
      background-repeat: no-repeat;
    }
    .arrow {
      width: 536px;
      height: 3.85vh;
      display: block;
      margin: 0 auto;
      position: relative;
    }
    .center-list {
      justify-content: center;
      position: relative;
      .fixed-text-box {
        width: 310px;
        height: 2.5vh;
        justify-content: space-between;
        .text {
          font-family: SourceHanSansCN-Bold;
          font-weight: 700;
          font-size: 26px;
          letter-spacing: 0.93px;
          background: linear-gradient(to right, #01a4f9, #6df5f9);
          -webkit-background-clip: text;
          color: transparent;
        }
      }
      .center-item {
        width: 162px;
        height: 28.85vh;
        position: relative;
        .bg {
          width: 100%;
          height: 100%;
          position: absolute;
          left: 0;
          top: 0;
        }
        .text-box {
          position: relative;
          z-index: 2;
          flex-direction: column;

          .text-title {
            font-weight: 500;
            font-size: 20px;
            color: #ffffff;
            letter-spacing: 0.71px;
            padding: 3.75vh 0 5.38vh;
          }
          .text {
            font-weight: 500;
            font-size: 16px;
            color: #e8e8e8;
            line-height: 2.5vh;
            text-align: center;
          }
        }
        &:nth-child(2) {
          margin: 0 76px 0 87px;
        }
      }
    }
  }
  .model-title {
    margin: 0 auto;
    position: relative;
    z-index: 2;
    top: 0;
  }
}
</style>