<template>
  <div class="g-app">
    <div class="g-bd" v-if="true">
      <div class="m-list">
        <div class="list">
          <div class="item" @click="handleClickItem(1)">
            <img class="logo" src="@/assets/img/index/logo-1.png" alt="" />
             <!-- 党建引领基层治理互联管理平台 -->
            <div class="name">数字社区管理平台</div>
            <img src="@/assets/img/index/zhuangshi.png" class="tip" />
          </div>

          <div class="item z-on" @click="handleClickItem(2)">
            <img class="logo" src="@/assets/img/index/logo-2.png" alt="" />
             <!-- 数据分析可视化平台 -->
            <div class="name">数字社区可视化平台</div>
            <img src="@/assets/img/index/zhuangshi.png" class="tip" />
          </div>
        </div>
      </div>
      <div class="m-footer">
        <div class="login-footer">
          <p>
            <a href="http://www.elinkchina.com.cn/" target="_blank">{{ $t('login.copyright') }}</a>
          </p>
        </div>
      </div>
    </div>
  </div>
</template>
<script>
import Cookies from 'js-cookie'
import debounce from 'lodash/debounce'
import { messages } from '@/i18n'
import { getUUID } from '@/utils'
import { Loading } from 'element-ui' // 引入Loading服务
import JSEncrypt from 'jsencrypt' //引入加密

let loading // 加载动画
export default {
  data() {
    return {
      pubKey: null, // 获取到公钥
      isShowLogin: true,
      i18nMessages: messages
    }
  },
  components: {},
  computed: {},
  created() {},
  mounted() {},

  methods: {
    handleClickItem(k) {
      if (k == 1) {
        this.$router.replace({ name: 'main' })
      } else if (k == 2) {
        this.$router.replace({ name: 'main-shuju' })
      }
    },

    // 平阴联动 自动登录接口
    getAutoLogin(platformToken) {
      this.dataForm.thirdToken = platformToken
      this.dataForm.platform = 'pyld'
      this.$http
        .post(`/auth/sso/oper/third/login`, this.dataForm)
        .then(({ data: res }) => {
          if (res.code !== 0) {
            if (res.code == 8302) {
              return this.$message.error(res.msg)
            }
            return this.$message.error(res.msg)
          }
          localStorage.setItem('customerId', res.data.customerId)
          localStorage.setItem('userType', 'work')
          localStorage.setItem('showHeader', '0')
          localStorage.setItem('token', res.data.token)
          this.$router.replace({ name: 'home' })
        })
        .catch(() => {})
      // epmet-ext9.elinkservice.cn/platform-admin
    }
  }
}
</script>

<style lang="scss" src="@/assets/scss/pages/indexWork.scss" scoped></style>
