You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

index.vue 6.3 kB

4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276
  1. /** Copyright 2020 Tianshu AI Platform. All Rights Reserved.
  2. *
  3. * Licensed under the Apache License, Version 2.0 (the "License");
  4. * you may not use this file except in compliance with the License.
  5. * You may obtain a copy of the License at
  6. *
  7. * http://www.apache.org/licenses/LICENSE-2.0
  8. *
  9. * Unless required by applicable law or agreed to in writing, software
  10. * distributed under the License is distributed on an "AS IS" BASIS,
  11. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12. * See the License for the specific language governing permissions and
  13. * limitations under the License.
  14. * =============================================================
  15. */
  16. <template>
  17. <div style="height: 100%;">
  18. <div class="bg">
  19. <div class="left" />
  20. <div class="right" />
  21. </div>
  22. <div id="content">
  23. <div class="left mb-dn">
  24. <div class="image" @mouseenter="stopSlider" @mouseleave="startSlider">
  25. <transition-group ref="loginList" name="login-list" tag="ul">
  26. <li
  27. v-for="item in loginImageList"
  28. v-show="item.id === currentIndex"
  29. :key="item.id"
  30. class="image-item"
  31. >
  32. <!-- 文本介绍 -->
  33. <div class="carousel-title">{{ item.title }}</div>
  34. <div class="carousel-text">{{ item.text }}</div>
  35. </li>
  36. </transition-group>
  37. <!-- 翻页指示器 -->
  38. <ul class="indicator-item">
  39. <li
  40. v-for="(item, index) in loginImageList.length"
  41. :key="index"
  42. :class="{ active: index === currentIndex }"
  43. @click="currentIndex = index"
  44. ></li>
  45. </ul>
  46. <!-- 底部 -->
  47. <div v-if="$store.state.settings.showFooter" id="el-login-footer">
  48. <span>{{ $store.state.settings.footerTxt }}</span>
  49. <template v-if="$store.state.settings.caseNumber">
  50. <span>⋅</span>
  51. <a href="/" target="_blank">{{ $store.state.settings.caseNumber }}</a>
  52. </template>
  53. </div>
  54. </div>
  55. </div>
  56. <div class="right mb-w100">
  57. <!-- 左侧部分 -->
  58. <slot />
  59. <div class="footer-logo">
  60. <img src="@/assets/images/dubhe-logo.svg" width="74" alt />
  61. </div>
  62. </div>
  63. </div>
  64. </div>
  65. </template>
  66. <script>
  67. export default {
  68. name: 'LoginPublic',
  69. data() {
  70. return {
  71. loginImageList: [
  72. {
  73. id: 0,
  74. title: '交互式模型构建',
  75. text: '提供云端深度学习开发环境,包含notebook和深度学习网络可视化建模',
  76. },
  77. {
  78. id: 1,
  79. title: '海量数据处理',
  80. text: '提供数据集版本管理及海量数据预处理与智能标注服务,大大减少人力成本',
  81. },
  82. ],
  83. currentIndex: 0,
  84. timer: '',
  85. };
  86. },
  87. mounted() {
  88. this.startSlider();
  89. this.$once('hook:beforeDestroy', () => {
  90. this.stopSlider();
  91. });
  92. },
  93. methods: {
  94. startSlider() {
  95. this.timer = setInterval(() => {
  96. this.autoPlay();
  97. }, 8000);
  98. },
  99. stopSlider() {
  100. clearInterval(this.timer);
  101. this.timer = null;
  102. },
  103. autoPlay() {
  104. this.currentIndex += 1;
  105. if (this.currentIndex > this.loginImageList.length - 1) {
  106. this.currentIndex = 0;
  107. }
  108. },
  109. },
  110. };
  111. </script>
  112. <style rel="stylesheet/scss" lang="scss">
  113. @import '@/assets/styles/variables.scss';
  114. .bg {
  115. position: absolute;
  116. z-index: 1;
  117. width: 100%;
  118. height: 100%;
  119. .left {
  120. position: relative;
  121. float: left;
  122. width: 61.8%;
  123. height: 100%;
  124. background-color: #f3f7ff;
  125. }
  126. .right {
  127. float: right;
  128. width: 38.2%;
  129. height: 100%;
  130. background: #fff;
  131. }
  132. }
  133. #content {
  134. position: relative;
  135. z-index: 999;
  136. height: 100%;
  137. margin: 0 auto;
  138. .left {
  139. position: relative;
  140. float: left;
  141. width: 61.8%;
  142. height: 100%;
  143. }
  144. .right {
  145. display: flex;
  146. align-items: center;
  147. justify-content: center;
  148. float: right;
  149. width: 38.2%;
  150. height: 100%;
  151. padding-bottom: 70px;
  152. background: #fff;
  153. }
  154. }
  155. .image {
  156. position: relative;
  157. width: 100%;
  158. height: 100%;
  159. .image-item {
  160. position: absolute;
  161. top: 0;
  162. left: 50%;
  163. width: 100%;
  164. height: 100%;
  165. transform: translateX(-50%);
  166. .carousel-title {
  167. margin-top: 20.444%;
  168. margin-left: 8.236%;
  169. font-size: 32px;
  170. line-height: 42px;
  171. color: rgb(92, 92, 91);
  172. letter-spacing: 4px;
  173. -moz-user-select: none;
  174. -o-user-select: none;
  175. -webkit-user-select: none;
  176. -ms-user-select: none;
  177. user-select: none;
  178. }
  179. .carousel-text {
  180. width: 50%;
  181. margin-top: 20px;
  182. margin-left: 8.236%;
  183. font-size: 14px;
  184. font-size: 18px;
  185. line-height: 28px;
  186. color: rgb(92, 92, 91);
  187. letter-spacing: 2px;
  188. -moz-user-select: none;
  189. -o-user-select: none;
  190. -webkit-user-select: none;
  191. -ms-user-select: none;
  192. user-select: none;
  193. }
  194. }
  195. .image-item:nth-child(1) {
  196. background: url('../../assets/images/loginImage1.png') no-repeat center;
  197. background-size: cover;
  198. }
  199. .image-item:nth-child(2) {
  200. background: url('../../assets/images/loginImage2.png') no-repeat center;
  201. background-size: cover;
  202. }
  203. .indicator-item {
  204. position: absolute;
  205. bottom: 50px;
  206. left: 50%;
  207. z-index: 20;
  208. overflow: hidden;
  209. text-align: center;
  210. transform: translateX(-50%);
  211. li {
  212. float: left;
  213. width: 10px;
  214. height: 10px;
  215. margin-right: 15px;
  216. cursor: pointer;
  217. background: #d9e3ff;
  218. border-radius: 50%;
  219. &.active {
  220. background: #8ea3ff;
  221. }
  222. }
  223. }
  224. }
  225. .footer-logo {
  226. position: fixed;
  227. bottom: 20px;
  228. left: 61.8%;
  229. display: flex;
  230. align-items: center;
  231. justify-content: center;
  232. width: 38.2%;
  233. }
  234. #el-login-footer {
  235. position: fixed;
  236. bottom: 0;
  237. width: 61.8%;
  238. height: 40px;
  239. font-family: Arial, serif;
  240. font-size: 12px;
  241. line-height: 40px;
  242. color: rgb(92, 92, 91);
  243. text-align: center;
  244. letter-spacing: 1px;
  245. }
  246. .login-list-enter,
  247. .login-list-leave-to {
  248. opacity: 0;
  249. }
  250. .login-list-leave-active,
  251. .login-list-enter-active {
  252. transition: all 0.5s linear;
  253. }
  254. </style>

一站式算法开发平台、高性能分布式深度学习框架、先进算法模型库、视觉模型炼知平台、数据可视化分析平台等一系列平台及工具,在模型高效分布式训练、数据处理和可视分析、模型炼知和轻量化等技术上形成独特优势,目前已在产学研等各领域近千家单位及个人提供AI应用赋能

Contributors (1)