index.vue 761 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. <template>
  2. <div class="clever">
  3. <span class="clever-login" @click="jumpClever"></span>
  4. </div>
  5. </template>
  6. <script>
  7. export default {
  8. name: 'CleverPage'
  9. };
  10. </script>
  11. <script setup>
  12. // 跳转到 clever 登录
  13. function jumpClever() {
  14. window.location.href =
  15. 'https://clever.com/oauth/authorize?response_type=code&redirect_uri=https%3A%2F%2Fgcls.helxsoft.cn&client_id=58ca6cd43a9f74ca351f';
  16. }
  17. </script>
  18. <style lang="scss" scoped>
  19. .clever {
  20. display: flex;
  21. align-items: center;
  22. justify-content: center;
  23. width: 100%;
  24. height: 100%;
  25. background-color: $bac-color;
  26. &-login {
  27. display: block;
  28. width: 207px;
  29. height: 46px;
  30. cursor: pointer;
  31. background: url('@/assets/login/clever-login.png') no-repeat center;
  32. }
  33. }
  34. </style>