index.vue 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  1. <template>
  2. <view class="content">
  3. <image class="logo" src="/static/logo/logo.png"></image>
  4. <view class="text-area">
  5. <!-- <text class="title">{{title}}</text> -->
  6. <view class="text-area-login" @click="toLogin">
  7. 登录
  8. </view>
  9. <view class="text-area-content">
  10. <text class="text1">广州医科大</text>
  11. <view class="line"></view>
  12. <text class="text2">实验室管理系统</text>
  13. </view>
  14. </view>
  15. </view>
  16. </template>
  17. <script>
  18. export default {
  19. data() {
  20. return {
  21. title: 'Hello'
  22. }
  23. },
  24. onLoad() {
  25. },
  26. methods: {
  27. toLogin(){
  28. uni.redirectTo({
  29. url: '/pages/login/login'
  30. });
  31. }
  32. }
  33. }
  34. </script>
  35. <style lang="scss" scoped>
  36. .content {
  37. display: flex;
  38. flex-direction: column;
  39. align-items: center;
  40. justify-content: center;
  41. }
  42. .logo {
  43. height: 300rpx;
  44. width: 300rpx;
  45. position: fixed;
  46. top: 50%;
  47. left:50%;
  48. transform: translate(-50%,-50%);
  49. }
  50. .text-area {
  51. display: flex;
  52. justify-content: center;
  53. flex-direction: column;
  54. position: fixed;
  55. top: 75%;
  56. text-align: center;
  57. }
  58. .text-area-login{
  59. font-size: $uni-font-size-lg;
  60. width: 448rpx;
  61. height: 84rpx;
  62. line-height: 84rpx;
  63. text-align: center;
  64. border: 2rpx solid $uni-text-color-black;
  65. border-radius: 38rpx;
  66. box-sizing: border-box;
  67. }
  68. .title {
  69. font-size: 36rpx;
  70. color: #8f8f94;
  71. }
  72. .text-area-content{
  73. margin-top: 50rpx;
  74. .text1{
  75. color: $uni-text-color;
  76. font-size: 56rpx;
  77. line-height: 150%;
  78. }
  79. .text2{
  80. color: rgba(128, 128, 128, 1);
  81. font-size: 30rpx;
  82. line-height: 150%;
  83. }
  84. .line{
  85. width: 354rpx;
  86. height: 2rpx;
  87. margin: auto;
  88. color: $uni-text-color;
  89. background-color: $uni-text-color-grey;
  90. font-size: 32rpx;
  91. line-height: 150%;
  92. text-align: center;
  93. }
  94. }
  95. </style>