index.vue 3.3 KB

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