index.vue 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176
  1. <template>
  2. <view class="content">
  3. <image class="logo" src="/static/logo/logoNew2.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. <!-- <text class="title">{{title}}</text> -->
  10. <view class="text-area-visitor" @click="toVisitor">
  11. 学生访问
  12. </view>
  13. <view class="text-area-content">
  14. <text class="text1">广州医科大学</text>
  15. <br/>
  16. <text class="text2">实验室管理系统</text>
  17. </view>
  18. </view>
  19. </view>
  20. </template>
  21. <script>
  22. export default {
  23. data() {
  24. return {
  25. title: 'Hello'
  26. }
  27. },
  28. onLoad() {
  29. },
  30. methods: {
  31. toLogin(){
  32. uni.redirectTo({
  33. url: '/pages/login/login'
  34. });
  35. },
  36. toVisitor() {
  37. uni.redirectTo({
  38. url: '/pages/visitor/index'
  39. });
  40. }
  41. }
  42. }
  43. </script>
  44. <style lang="scss">
  45. page{
  46. background-color: #f3f3f3;
  47. }
  48. .content {
  49. display: flex;
  50. flex-direction: column;
  51. align-items: center;
  52. justify-content: center;
  53. }
  54. .logo {
  55. height: 300rpx;
  56. width: 300rpx;
  57. position: fixed;
  58. border-radius: 50%;
  59. top: 30%;
  60. left:50%;
  61. transform: translate(-50%,-50%);
  62. }
  63. .text-area {
  64. display: flex;
  65. justify-content: center;
  66. flex-direction: column;
  67. position: fixed;
  68. top: 55%;
  69. text-align: center;
  70. }
  71. .text-area-login{
  72. font-size: $uni-font-size-lg;
  73. width: 400rpx;
  74. height: 100rpx;
  75. line-height: 100rpx;
  76. text-align: center;
  77. background-color: #fff;
  78. border: 1px solid #d5d9d9;
  79. border-radius: 8px;
  80. box-shadow: rgba(213, 217, 217, .5) 0 2px 5px 0;
  81. box-sizing: border-box;
  82. color: #0f1111;
  83. cursor: pointer;
  84. display: inline-block;
  85. padding: 0 10px 0 11px;
  86. position: relative;
  87. text-align: center;
  88. text-decoration: none;
  89. user-select: none;
  90. -webkit-user-select: none;
  91. touch-action: manipulation;
  92. vertical-align: middle;
  93. //width: 100px;
  94. &:focus {
  95. border-color: #008296;
  96. box-shadow: rgba(213, 217, 217, .5) 0 2px 5px 0;
  97. outline: 0;
  98. }
  99. &:hover {
  100. background-color: #f7fafa;
  101. }
  102. }
  103. .text-area-visitor{
  104. margin-top: 40rpx;
  105. font-size: $uni-font-size-lg;
  106. width: 400rpx;
  107. height: 100rpx;
  108. line-height: 100rpx;
  109. text-align: center;
  110. background-color: #fff;
  111. border: 1px solid #d5d9d9;
  112. border-radius: 8px;
  113. box-shadow: rgba(213, 217, 217, .5) 0 2px 5px 0;
  114. box-sizing: border-box;
  115. color: #0f1111;
  116. cursor: pointer;
  117. display: inline-block;
  118. padding: 0 10px 0 11px;
  119. position: relative;
  120. text-align: center;
  121. text-decoration: none;
  122. user-select: none;
  123. -webkit-user-select: none;
  124. touch-action: manipulation;
  125. vertical-align: middle;
  126. //width: 100px;
  127. &:focus {
  128. border-color: #008296;
  129. box-shadow: rgba(213, 217, 217, .5) 0 2px 5px 0;
  130. outline: 0;
  131. }
  132. &:hover {
  133. background-color: #f7fafa;
  134. }
  135. }
  136. .title {
  137. font-size: 36rpx;
  138. color: #8f8f94;
  139. }
  140. .text-area-content{
  141. position: relative;
  142. bottom: -180rpx;
  143. .text1{
  144. color: $uni-text-color;
  145. font-size: 46rpx;
  146. line-height: 150%;
  147. }
  148. .text2{
  149. color: rgba(128, 128, 128, 1);
  150. font-size: 30rpx;
  151. line-height: 150%;
  152. }
  153. .line{
  154. width: 354rpx;
  155. height: 2rpx;
  156. margin: auto;
  157. color: $uni-text-color;
  158. background-color: $uni-text-color-grey;
  159. font-size: 32rpx;
  160. line-height: 150%;
  161. text-align: center;
  162. }
  163. }
  164. </style>