login.vue 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. <template>
  2. <view id="login">
  3. <view class="title-1">欢迎使用</view>
  4. <view class="title-2">实验室安全智慧化管控系统</view>
  5. <view class="null-p"></view>
  6. <view class="ssoButton" @click="goPage('ssoLogin')">统一身份认证登录</view>
  7. <view class="accountButton" @click="goPage('accountLogin')">账号密码登录</view>
  8. </view>
  9. </template>
  10. <script>
  11. export default {
  12. name: "ssoLogin",
  13. data() {
  14. return {
  15. }
  16. },
  17. onLoad(option) {
  18. },
  19. mounted() {
  20. },
  21. methods: {
  22. goPage(type){
  23. if(type == 'ssoLogin'){
  24. uni.navigateTo({
  25. url: '/pages/views/login/ssoLogin'
  26. });
  27. }else if(type == 'accountLogin'){
  28. uni.navigateTo({
  29. url: '/pages/views/login/accountLogin'
  30. });
  31. }
  32. },
  33. },
  34. }
  35. </script>
  36. <style lang="stylus" scoped>
  37. #login{
  38. height: 100%;
  39. width: 100%;
  40. background #f5f5f5;
  41. position relative;
  42. display: flex;
  43. flex-direction: column;
  44. .title-1{
  45. font-size:38rpx;
  46. line-height:38rpx;
  47. height:38rpx;
  48. text-align: center;
  49. color:#333;
  50. margin:200rpx 0 60rpx;
  51. }
  52. .title-2{
  53. font-size:40rpx;
  54. line-height:40rpx;
  55. height:40rpx;
  56. text-align: center;
  57. color:#0183fa;
  58. }
  59. .null-p{
  60. flex:1;
  61. }
  62. .ssoButton{
  63. width:650rpx;
  64. height:80rpx;
  65. line-height:80rpx;
  66. text-align: center;
  67. background-color:#0183fa;
  68. color:#fff;
  69. font-size:32rpx;
  70. margin:0 auto 200rpx;
  71. border-radius:50rpx;
  72. }
  73. .accountButton{
  74. width:200;
  75. height:80rpx;
  76. line-height:80rpx;
  77. text-align: center;
  78. color:#0183fa;
  79. font-size:28rpx;
  80. margin:0 auto 50rpx;
  81. }
  82. }
  83. </style>