|
@@ -0,0 +1,339 @@
|
|
|
+<template>
|
|
|
+ <div class="w-box index">
|
|
|
+
|
|
|
+ <v-title>轻量级的团队在线协作</v-title>
|
|
|
+
|
|
|
+ <div class="header">
|
|
|
+ <div class="z-row">
|
|
|
+ <div class="header-col-sub">
|
|
|
+ <h2>
|
|
|
+ <img src="../../../statics/images/logo4.png">
|
|
|
+ <span>轻量级的团队在线协作</span>
|
|
|
+ </h2>
|
|
|
+ </div>
|
|
|
+ <div class="z-1"></div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <div class="welcome">
|
|
|
+ <div class="banner">
|
|
|
+ <div class="z-row">
|
|
|
+ <div class="z-16">
|
|
|
+ <Carousel class="banner-carousel" autoplay loop :autoplay-speed="5000">
|
|
|
+ <CarouselItem>
|
|
|
+ <img src="../../../statics/images/index/banner/1.jpg">
|
|
|
+ </CarouselItem>
|
|
|
+ <CarouselItem>
|
|
|
+ <img src="../../../statics/images/index/banner/2.jpg">
|
|
|
+ </CarouselItem>
|
|
|
+ </Carousel>
|
|
|
+ </div>
|
|
|
+ <div class="z-8"><h3>酷团队协作工具就从这里开始</h3>
|
|
|
+ <div class="bl inline-block">
|
|
|
+ <span class="start" @click="loginShow=true">立即登陆</span>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="second">
|
|
|
+ <div class="bg"></div>
|
|
|
+ <div class="z-row">
|
|
|
+ <div class="z-6"><a href="#W_link1"><i class="ft icon"></i>待办四象限</a></div>
|
|
|
+ <div class="z-6"><a href="#W_link2"><i class="ft icon"></i>项目管理</a></div>
|
|
|
+ <div class="z-6"><a href="#W_link3"><i class="ft icon"></i>在线知识库</a></div>
|
|
|
+ <div class="z-6"><a href="#W_link4"><i class="ft icon"></i>日程管理</a></div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <div class="z-row block">
|
|
|
+ <div class="z-6">
|
|
|
+ <div class="wrap-left" id="W_link1"><i class="ft icon"></i>待办四象限:突出事情优先级,帮助员工合理安排时间,提高工作效率。</div>
|
|
|
+ </div>
|
|
|
+ <div class="z-18"><img src="../../../statics/images/index/todo.jpg"/></div>
|
|
|
+ </div>
|
|
|
+ <div class="z-row block">
|
|
|
+ <div class="z-18"><img src="../../../statics/images/index/project.jpg"/></div>
|
|
|
+ <div class="z-6">
|
|
|
+ <div class="wrap-right" id="W_link2"><i class="ft icon"></i>项目管理:自定义项目看板,可视化任务安排。</div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="z-row block">
|
|
|
+ <div class="z-6">
|
|
|
+ <div class="wrap-left" id="W_link3"><i class="ft icon"></i>在线知识库:在线流程图,在线文档,以及可视化的目录编排,文档管理无忧。</div>
|
|
|
+ </div>
|
|
|
+ <div class="z-18"><img src="../../../statics/images/index/wiki.jpg"/></div>
|
|
|
+ </div>
|
|
|
+ <div class="z-row block">
|
|
|
+ <div class="z-18"><img src="../../../statics/images/index/week.jpg"/></div>
|
|
|
+ <div class="z-6">
|
|
|
+ <div class="wrap-right" id="W_link4"><i class="ft icon"></i>日程管理:可视化日程管理,快速搞定工作计划,了解工作宏观安排</div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <div class="p-footer"><span>WorkTeam © 2018-2020</span></div>
|
|
|
+
|
|
|
+ <Modal
|
|
|
+ v-model="loginShow"
|
|
|
+ title="用户登录"
|
|
|
+ :closable="false"
|
|
|
+ :mask-closable="false">
|
|
|
+ <Form ref="login" :model="formInline" :rules="ruleInline">
|
|
|
+ <FormItem prop="username">
|
|
|
+ <Input type="text" v-model="formInline.username" placeholder="用户名">
|
|
|
+ <Icon type="ios-person-outline" slot="prepend"></Icon>
|
|
|
+ </Input>
|
|
|
+ </FormItem>
|
|
|
+ <FormItem prop="password">
|
|
|
+ <Input type="password" v-model="formInline.password" placeholder="密码">
|
|
|
+ <Icon type="ios-lock-outline" slot="prepend"></Icon>
|
|
|
+ </Input>
|
|
|
+ </FormItem>
|
|
|
+ </Form>
|
|
|
+ <div slot="footer">
|
|
|
+ <Button type="default" @click="loginShow=false">取消</Button>
|
|
|
+ <Button type="primary" :loading="loadIng > 0" @click="onLogin">登录</Button>
|
|
|
+ </div>
|
|
|
+ </Modal>
|
|
|
+ </div>
|
|
|
+</template>
|
|
|
+
|
|
|
+<style lang="scss" scoped>
|
|
|
+ .index {
|
|
|
+ position: absolute;
|
|
|
+ color: #000000;
|
|
|
+ top: 0;
|
|
|
+ left: 0;
|
|
|
+ min-width: 100%;
|
|
|
+ min-height: 100%;
|
|
|
+ padding: 0;
|
|
|
+ margin: 0;
|
|
|
+ .header {
|
|
|
+ height: 50px;
|
|
|
+ background: #0396f2;
|
|
|
+ padding-top: 12px;
|
|
|
+ max-width: 1280px;
|
|
|
+ margin: 0 auto;
|
|
|
+ .z-row {
|
|
|
+ color: #fff;
|
|
|
+ height: 50px;
|
|
|
+ position: relative;
|
|
|
+ z-index: 2;
|
|
|
+ max-width: 1680px;
|
|
|
+ margin: 0 auto;
|
|
|
+ .header-col-sub {
|
|
|
+ width: 500px;
|
|
|
+ h2 {
|
|
|
+ font-size: 1.2rem;
|
|
|
+ height: 48px;
|
|
|
+ line-height: 54px;
|
|
|
+ display: inline-block;
|
|
|
+ width: 400px;
|
|
|
+ position: relative;
|
|
|
+ img {
|
|
|
+ width: 150px;
|
|
|
+ margin: 1rem 0 0 1rem;
|
|
|
+ }
|
|
|
+ span {
|
|
|
+ position: absolute;
|
|
|
+ font-size: 12px;
|
|
|
+ font-weight: normal;
|
|
|
+ top: 8px;
|
|
|
+ left: 172px;
|
|
|
+ color: rgba(255, 255, 255, 0.85);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ .header-1 {
|
|
|
+ flex-grow: 1;
|
|
|
+ flex-shrink: 1;
|
|
|
+ flex-basis: 0;
|
|
|
+ max-width: 100%;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ .welcome {
|
|
|
+ height: 700px;
|
|
|
+ display: block;
|
|
|
+ background: #2d8cf0;
|
|
|
+ overflow: hidden;
|
|
|
+ color: #FFFFFF;
|
|
|
+ padding-top: 480px;
|
|
|
+ margin-top: -480px;
|
|
|
+ transform: skewY(-2deg);
|
|
|
+ box-shadow: 0 2px 244px 0 rgba(56, 132, 255, 0.4);
|
|
|
+ .unslider-arrow {
|
|
|
+ display: none;
|
|
|
+ }
|
|
|
+ .banner {
|
|
|
+ padding-top: 60px;
|
|
|
+ height: 460px;
|
|
|
+ max-width: 1200px;
|
|
|
+ margin: 0 auto;
|
|
|
+ transform: skewY(2deg);
|
|
|
+ .banner-carousel {
|
|
|
+ max-width: 685px;
|
|
|
+ }
|
|
|
+ img {
|
|
|
+ height: 400px;
|
|
|
+ border: 5px solid #fff;
|
|
|
+ border-radius: 5px;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ .z-8 {
|
|
|
+ text-align: center;
|
|
|
+ }
|
|
|
+ h3 {
|
|
|
+ color: rgba(255, 255, 255, 0.8);
|
|
|
+ font-size: 40px;
|
|
|
+ font-weight: normal;
|
|
|
+ text-align: center;
|
|
|
+ margin: 30px auto;
|
|
|
+ width: 380px;
|
|
|
+ }
|
|
|
+ .start {
|
|
|
+ display: inline-block;
|
|
|
+ width: 160px;
|
|
|
+ height: 50px;
|
|
|
+ line-height: 50px;
|
|
|
+ text-align: center;
|
|
|
+ font-weight: normal;
|
|
|
+ cursor: pointer;
|
|
|
+ font-size: 20px;
|
|
|
+ background: #fff;
|
|
|
+ color: #0396f2;
|
|
|
+ border-radius: 4px;
|
|
|
+ border: 0;
|
|
|
+
|
|
|
+ &:hover, &:focus {
|
|
|
+ background: #f6f6f6;
|
|
|
+ color: #0396f2;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ .second {
|
|
|
+ position: relative;
|
|
|
+ height: 220px;
|
|
|
+ text-align: center;
|
|
|
+ transform: skewY(2deg);
|
|
|
+
|
|
|
+ .bg {
|
|
|
+ transform: skewY(-4.5deg);
|
|
|
+ display: block;
|
|
|
+ position: absolute;
|
|
|
+ top: 0;
|
|
|
+ left: 0;
|
|
|
+ right: 0;
|
|
|
+ bottom: 0;
|
|
|
+ background: #1F65D6;
|
|
|
+ }
|
|
|
+ .z-row {
|
|
|
+ z-index: 2;
|
|
|
+ position: relative;
|
|
|
+ font-size: 22px;
|
|
|
+ max-width: 1400px;
|
|
|
+ margin: 0 auto;
|
|
|
+ line-height: 220px;
|
|
|
+ }
|
|
|
+ i {
|
|
|
+ color: rgba(255, 255, 255, 0.85);
|
|
|
+ margin-right: 6px;
|
|
|
+ }
|
|
|
+ a {
|
|
|
+ color: #fff;
|
|
|
+ &:hover, &:visited {
|
|
|
+ color: #fff;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ .block {
|
|
|
+ max-width: 1200px;
|
|
|
+ margin: 30px auto;
|
|
|
+ padding-top: 50px;
|
|
|
+ border: 1px solid #F4F7F9;
|
|
|
+
|
|
|
+ .wrap-left, .wrap-right {
|
|
|
+ line-height: 36px;
|
|
|
+ color: #666;
|
|
|
+ font-size: 16px;
|
|
|
+ }
|
|
|
+ .wrap-left {
|
|
|
+ margin: 20px 30px 0 0;
|
|
|
+ }
|
|
|
+ .wrap-right {
|
|
|
+ margin: 20px 0 0 30px;
|
|
|
+ }
|
|
|
+ i {
|
|
|
+ color: rgba(248, 14, 21, 0.7);
|
|
|
+ margin-right: 6px;
|
|
|
+ }
|
|
|
+ img {
|
|
|
+ border: 5px solid #fff;
|
|
|
+ border-radius: 10px;
|
|
|
+ width: 100%;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ .p-footer {
|
|
|
+ margin: 20px 0;
|
|
|
+ text-align: center;
|
|
|
+ color: #333;
|
|
|
+
|
|
|
+ a, span {
|
|
|
+ color: #333;
|
|
|
+ margin-left: 10px;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+</style>
|
|
|
+<script>
|
|
|
+ export default {
|
|
|
+ data () {
|
|
|
+ return {
|
|
|
+ loadIng: 0,
|
|
|
+ loginShow: false,
|
|
|
+ formInline: {
|
|
|
+ username: '',
|
|
|
+ password: ''
|
|
|
+ },
|
|
|
+ ruleInline: {
|
|
|
+ username: [
|
|
|
+ { required: true, message: '请填写用户名!', trigger: 'blur' }
|
|
|
+ ],
|
|
|
+ password: [
|
|
|
+ { required: true, message: '请填写登录密码!', trigger: 'blur' },
|
|
|
+ { type: 'string', min: 6, message: '密码长度不能少于6位!', trigger: 'blur' }
|
|
|
+ ]
|
|
|
+ }
|
|
|
+ }
|
|
|
+ },
|
|
|
+ mounted() {
|
|
|
+
|
|
|
+ },
|
|
|
+ computed: {
|
|
|
+
|
|
|
+ },
|
|
|
+ watch: {
|
|
|
+
|
|
|
+ },
|
|
|
+ methods: {
|
|
|
+ onLogin() {
|
|
|
+ this.$refs.login.validate((valid) => {
|
|
|
+ if (valid) {
|
|
|
+ this.loadIng++;
|
|
|
+ setTimeout(() => {
|
|
|
+ this.loadIng--;
|
|
|
+ this.$Message.success('登录成功');
|
|
|
+ this.loginShow = false;
|
|
|
+ this.goForward({path: '/todo'}, true);
|
|
|
+ }, 3000);
|
|
|
+ } else {
|
|
|
+ this.$Message.error('请填写正确的信息!');
|
|
|
+ }
|
|
|
+ })
|
|
|
+ }
|
|
|
+ },
|
|
|
+ }
|
|
|
+</script>
|