<template>
  <div>
    <van-sticky v-if="!appFlag" class="sticky">
      <div class="header">
        <div class="back">
          <backIcon/>
        </div>
        <!-- 在线客服 -->
        {{ $t('tab.tab11') }}
      </div>
    </van-sticky>
    <iframe class="iframe" :src="iframeUrl" frameborder="0"></iframe>
  </div>
</template>
<script>
import { mapGetters } from 'vuex'
export default {
  data () {
    return {
    }
  },
  computed: {
    ...mapGetters(['userInfo']),
    iframeUrl() {
      var lan = {
        'zh-TW': 'zh_HK',
        'zh-CN': 'zh_CN'
      }
      return 'https://cscclient.aixfjb.com/?code=2g7e0&channelType=1&tenantPlatCode=jidu&language=' + (lan[this.language] || this.language)
    }
  },
  mounted() {
  },
  methods: {
  }
}
</script>
<style lang="less" scoped>
.sticky {
  background-color: var(--bg-);
}
.header {
  height:36px;
  position: relative;
  text-align: center;
  font-size: 18px;
  font-weight: 600;
  padding: 11px 14px 0 9px;
  background-color: var(--bg-);
  .back {
    position: absolute;
    left: 9px;
    top: 7px;
  }
}
.iframe {
  position: fixed;
  top: 36px;
  left: 0;
  bottom: 0;
  right: 0;
  width: 100%;
  height: calc(100% - 36px);
}
</style>