田源
2025-01-16 578644547dc77428f88ddbacc26dab111a32fe0c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
<template>
  <div class="social-container">
    <div @click="handleClick('github')">
      <span class="container" :style="{backgroundColor:'#61676D'}">
        <i icon-class="github" class="iconfont icongithub"></i>
      </span>
      <p class="title">{{$t('login.github')}}</p>
    </div>
    <div @click="handleClick('gitee')">
      <span class="container" :style="{backgroundColor:'#c35152'}">
        <i icon-class="gitee" class="iconfont icongitee2"></i>
      </span>
      <p class="title">{{$t('login.gitee')}}</p>
    </div>
    <div @click="handleClick('wechat_open')">
      <span class="container" :style="{backgroundColor:'#8dc349'}">
        <i icon-class="wechat" class="iconfont icon-weixin"/>
      </span>
      <p class="title">{{$t('login.wechat')}}</p>
    </div>
    <div @click="handleClick('qq')">
      <span class="container" :style="{backgroundColor:'#6ba2d6'}">
        <i icon-class="qq" class="iconfont icon-qq"/>
      </span>
      <p class="title">{{$t('login.qq')}}</p>
    </div>
  </div>
</template>
 
<script>
  import website from '@/config/website';
 
  export default {
    name: "thirdLogin",
    methods: {
      handleClick(source) {
        window.location.href = `${website.authUrl}/${source}`;
      }
    }
  };
</script>
 
<style rel="stylesheet/scss" lang="scss" scoped>
  .social-container {
    margin: 20px 0;
    display: flex;
    align-items: center;
    justify-content: space-around;
 
    .iconfont {
      color: #fff;
      font-size: 30px;
    }
    .container {
      $height: 50px;
      cursor: pointer;
      display: inline-block;
      width: $height;
      height: $height;
      line-height: $height;
      text-align: center;
      border-radius: 4px;
      margin-bottom: 10px;
    }
    .title {
      text-align: center;
    }
  }
</style>