<template>
<!--  一个宣传页 -->
  <div class="content">
    <lucency-header :lang="lang" page-key="solution" />
    <item-banner :title="'合方圆'" :sub-title="'综合能源管理平台解决方案'"></item-banner>
    <div class="conBox">
      <pdf v-for="i in totalPage" :page="i" :key="i" :src="blobSrc"></pdf>
    </div>
    <default-footer :lang="lang"/>

    <site-bar wechat-src="/image/wechat.jpg"></site-bar>
  </div>

</template>

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


export default {
  name: "adZhnyIndex",
  props:['uLang'],
  data(){
    return {
      langType: langMap.lang,
      lang: this.uLang?this.uLang:langMap.lang.cn,
      blobSrc: null,
      totalPage: 0,
    }
  },
  mounted(){
    this.loadPdf();
  },
  methods:{
    getLangText(str) {
      return langMap.getText(this.lang, str);
    },
    getAbbrText(str) {
      return langMap.getAbbrText(this.lang, str);
    },
    loadPdf(){
      this.blobSrc = this.$pdf.createLoadingTask({ url: "/file/zhny.pdf" });
      this.blobSrc.promise.then(pdf => {
        this.totalPage = pdf.numPages;
      });
    }
  }
}
</script>

<style scoped>

</style>
