<template>
  <div class="banner">
    <div class="imgBox">
      <img src="/image/banner/banner_product.png" alt="">
    </div>
    <div class="banner-con bg-absolute">
      <span>{{lang===langType.cn?title:getAbbrText(title)}}</span>
      <span class="subTitle">{{lang===langType.cn?subTitle:getLangText(subTitle)}}</span>
      <span>1</span>
    </div>
    <div class="banner-con">
      <span>{{lang===langType.cn?title:getAbbrText(title)}}</span>
      <span class="subTitle">{{lang===langType.cn?subTitle:getLangText(subTitle)}}</span>
    </div>


  </div>
</template>

<script>
import langMap from "~/map/langMap";

export default {
  name: "itemBanner",
  props:{
    lang:{
      default: langMap.lang.cn
    },
    title: {default:"产品中心"},
    subTitle: {default:"持续创新的软硬件产品"},
  },
  data(){
    return {
      langType: langMap.lang,
    }
  },
  methods:{
    getLangText(str){
      return langMap.getText(this.lang,str);
    },
    getAbbrText(str){
      return langMap.getAbbrText(this.lang,str);
    },
  }
}
</script>

<style scoped>
@import "~/assets/publicBanner.css";
.banner {
  height: 300px;
}
.banner-con > span{
  width: 720px;
}
</style>
