index.vue 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339
  1. <template>
  2. <div class="w-box index">
  3. <v-title>轻量级的团队在线协作</v-title>
  4. <div class="header">
  5. <div class="z-row">
  6. <div class="header-col-sub">
  7. <h2>
  8. <img src="../../../statics/images/logo4.png">
  9. <span>轻量级的团队在线协作</span>
  10. </h2>
  11. </div>
  12. <div class="z-1"></div>
  13. </div>
  14. </div>
  15. <div class="welcome">
  16. <div class="banner">
  17. <div class="z-row">
  18. <div class="z-16">
  19. <Carousel class="banner-carousel" autoplay loop :autoplay-speed="5000">
  20. <CarouselItem>
  21. <img src="../../../statics/images/index/banner/1.jpg">
  22. </CarouselItem>
  23. <CarouselItem>
  24. <img src="../../../statics/images/index/banner/2.jpg">
  25. </CarouselItem>
  26. </Carousel>
  27. </div>
  28. <div class="z-8"><h3>酷团队协作工具就从这里开始</h3>
  29. <div class="bl inline-block">
  30. <span class="start" @click="loginShow=true">立即登陆</span>
  31. </div>
  32. </div>
  33. </div>
  34. </div>
  35. <div class="second">
  36. <div class="bg"></div>
  37. <div class="z-row">
  38. <div class="z-6"><a href="#W_link1"><i class="ft icon">&#xe753;</i>待办四象限</a></div>
  39. <div class="z-6"><a href="#W_link2"><i class="ft icon">&#xe6b8;</i>项目管理</a></div>
  40. <div class="z-6"><a href="#W_link3"><i class="ft icon">&#xe915;</i>在线知识库</a></div>
  41. <div class="z-6"><a href="#W_link4"><i class="ft icon">&#xe706;</i>日程管理</a></div>
  42. </div>
  43. </div>
  44. </div>
  45. <div class="z-row block">
  46. <div class="z-6">
  47. <div class="wrap-left" id="W_link1"><i class="ft icon">&#xe753;</i>待办四象限:突出事情优先级,帮助员工合理安排时间,提高工作效率。</div>
  48. </div>
  49. <div class="z-18"><img src="../../../statics/images/index/todo.jpg"/></div>
  50. </div>
  51. <div class="z-row block">
  52. <div class="z-18"><img src="../../../statics/images/index/project.jpg"/></div>
  53. <div class="z-6">
  54. <div class="wrap-right" id="W_link2"><i class="ft icon">&#xe6b8;</i>项目管理:自定义项目看板,可视化任务安排。</div>
  55. </div>
  56. </div>
  57. <div class="z-row block">
  58. <div class="z-6">
  59. <div class="wrap-left" id="W_link3"><i class="ft icon">&#xe915;</i>在线知识库:在线流程图,在线文档,以及可视化的目录编排,文档管理无忧。</div>
  60. </div>
  61. <div class="z-18"><img src="../../../statics/images/index/wiki.jpg"/></div>
  62. </div>
  63. <div class="z-row block">
  64. <div class="z-18"><img src="../../../statics/images/index/week.jpg"/></div>
  65. <div class="z-6">
  66. <div class="wrap-right" id="W_link4"><i class="ft icon">&#xe706;</i>日程管理:可视化日程管理,快速搞定工作计划,了解工作宏观安排</div>
  67. </div>
  68. </div>
  69. <div class="p-footer"><span>WorkTeam &copy; 2018-2020</span></div>
  70. <Modal
  71. v-model="loginShow"
  72. title="用户登录"
  73. :closable="false"
  74. :mask-closable="false">
  75. <Form ref="login" :model="formInline" :rules="ruleInline">
  76. <FormItem prop="username">
  77. <Input type="text" v-model="formInline.username" placeholder="用户名">
  78. <Icon type="ios-person-outline" slot="prepend"></Icon>
  79. </Input>
  80. </FormItem>
  81. <FormItem prop="password">
  82. <Input type="password" v-model="formInline.password" placeholder="密码">
  83. <Icon type="ios-lock-outline" slot="prepend"></Icon>
  84. </Input>
  85. </FormItem>
  86. </Form>
  87. <div slot="footer">
  88. <Button type="default" @click="loginShow=false">取消</Button>
  89. <Button type="primary" :loading="loadIng > 0" @click="onLogin">登录</Button>
  90. </div>
  91. </Modal>
  92. </div>
  93. </template>
  94. <style lang="scss" scoped>
  95. .index {
  96. position: absolute;
  97. color: #000000;
  98. top: 0;
  99. left: 0;
  100. min-width: 100%;
  101. min-height: 100%;
  102. padding: 0;
  103. margin: 0;
  104. .header {
  105. height: 50px;
  106. background: #0396f2;
  107. padding-top: 12px;
  108. max-width: 1280px;
  109. margin: 0 auto;
  110. .z-row {
  111. color: #fff;
  112. height: 50px;
  113. position: relative;
  114. z-index: 2;
  115. max-width: 1680px;
  116. margin: 0 auto;
  117. .header-col-sub {
  118. width: 500px;
  119. h2 {
  120. font-size: 1.2rem;
  121. height: 48px;
  122. line-height: 54px;
  123. display: inline-block;
  124. width: 400px;
  125. position: relative;
  126. img {
  127. width: 150px;
  128. margin: 1rem 0 0 1rem;
  129. }
  130. span {
  131. position: absolute;
  132. font-size: 12px;
  133. font-weight: normal;
  134. top: 8px;
  135. left: 172px;
  136. color: rgba(255, 255, 255, 0.85);
  137. }
  138. }
  139. }
  140. .header-1 {
  141. flex-grow: 1;
  142. flex-shrink: 1;
  143. flex-basis: 0;
  144. max-width: 100%;
  145. }
  146. }
  147. }
  148. .welcome {
  149. height: 700px;
  150. display: block;
  151. background: #2d8cf0;
  152. overflow: hidden;
  153. color: #FFFFFF;
  154. padding-top: 480px;
  155. margin-top: -480px;
  156. transform: skewY(-2deg);
  157. box-shadow: 0 2px 244px 0 rgba(56, 132, 255, 0.4);
  158. .unslider-arrow {
  159. display: none;
  160. }
  161. .banner {
  162. padding-top: 60px;
  163. height: 460px;
  164. max-width: 1200px;
  165. margin: 0 auto;
  166. transform: skewY(2deg);
  167. .banner-carousel {
  168. max-width: 685px;
  169. }
  170. img {
  171. height: 400px;
  172. border: 5px solid #fff;
  173. border-radius: 5px;
  174. }
  175. }
  176. .z-8 {
  177. text-align: center;
  178. }
  179. h3 {
  180. color: rgba(255, 255, 255, 0.8);
  181. font-size: 40px;
  182. font-weight: normal;
  183. text-align: center;
  184. margin: 30px auto;
  185. width: 380px;
  186. }
  187. .start {
  188. display: inline-block;
  189. width: 160px;
  190. height: 50px;
  191. line-height: 50px;
  192. text-align: center;
  193. font-weight: normal;
  194. cursor: pointer;
  195. font-size: 20px;
  196. background: #fff;
  197. color: #0396f2;
  198. border-radius: 4px;
  199. border: 0;
  200. &:hover, &:focus {
  201. background: #f6f6f6;
  202. color: #0396f2;
  203. }
  204. }
  205. .second {
  206. position: relative;
  207. height: 220px;
  208. text-align: center;
  209. transform: skewY(2deg);
  210. .bg {
  211. transform: skewY(-4.5deg);
  212. display: block;
  213. position: absolute;
  214. top: 0;
  215. left: 0;
  216. right: 0;
  217. bottom: 0;
  218. background: #1F65D6;
  219. }
  220. .z-row {
  221. z-index: 2;
  222. position: relative;
  223. font-size: 22px;
  224. max-width: 1400px;
  225. margin: 0 auto;
  226. line-height: 220px;
  227. }
  228. i {
  229. color: rgba(255, 255, 255, 0.85);
  230. margin-right: 6px;
  231. }
  232. a {
  233. color: #fff;
  234. &:hover, &:visited {
  235. color: #fff;
  236. }
  237. }
  238. }
  239. }
  240. .block {
  241. max-width: 1200px;
  242. margin: 30px auto;
  243. padding-top: 50px;
  244. border: 1px solid #F4F7F9;
  245. .wrap-left, .wrap-right {
  246. line-height: 36px;
  247. color: #666;
  248. font-size: 16px;
  249. }
  250. .wrap-left {
  251. margin: 20px 30px 0 0;
  252. }
  253. .wrap-right {
  254. margin: 20px 0 0 30px;
  255. }
  256. i {
  257. color: rgba(248, 14, 21, 0.7);
  258. margin-right: 6px;
  259. }
  260. img {
  261. border: 5px solid #fff;
  262. border-radius: 10px;
  263. width: 100%;
  264. }
  265. }
  266. .p-footer {
  267. margin: 20px 0;
  268. text-align: center;
  269. color: #333;
  270. a, span {
  271. color: #333;
  272. margin-left: 10px;
  273. }
  274. }
  275. }
  276. </style>
  277. <script>
  278. export default {
  279. data () {
  280. return {
  281. loadIng: 0,
  282. loginShow: false,
  283. formInline: {
  284. username: '',
  285. password: ''
  286. },
  287. ruleInline: {
  288. username: [
  289. { required: true, message: '请填写用户名!', trigger: 'blur' }
  290. ],
  291. password: [
  292. { required: true, message: '请填写登录密码!', trigger: 'blur' },
  293. { type: 'string', min: 6, message: '密码长度不能少于6位!', trigger: 'blur' }
  294. ]
  295. }
  296. }
  297. },
  298. mounted() {
  299. },
  300. computed: {
  301. },
  302. watch: {
  303. },
  304. methods: {
  305. onLogin() {
  306. this.$refs.login.validate((valid) => {
  307. if (valid) {
  308. this.loadIng++;
  309. setTimeout(() => {
  310. this.loadIng--;
  311. this.$Message.success('登录成功');
  312. this.loginShow = false;
  313. this.goForward({path: '/todo'}, true);
  314. }, 3000);
  315. } else {
  316. this.$Message.error('请填写正确的信息!');
  317. }
  318. })
  319. }
  320. },
  321. }
  322. </script>