1 |
- webpackJsonp([8],{286:function(e,t){e.exports="/images/statics/images/logo-white.png?069beff1"},391:function(e,t,a){var i=a(392);"string"==typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals);a(1)("7283a64c",i,!0,{})},392:function(e,t,a){(e.exports=a(0)(!1)).push([e.i,".login-header{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.login-header .login-header-item{height:20px;line-height:20px;font-size:14px;color:#444;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding-right:12px;cursor:pointer}.login-header .login-header-item.active{font-size:16px;color:#17233d;font-weight:500}.login-code{margin:-4px -7px;height:30px;overflow:hidden;cursor:pointer}.login-code img{height:100%}",""])},393:function(e,t,a){var i=a(394);"string"==typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals);a(1)("97641f60",i,!0,{})},394:function(e,t,a){(e.exports=a(0)(!1)).push([e.i,".index[data-v-c0a21c10]{position:absolute;color:#000;top:0;left:0;min-width:100%;min-height:100%;padding:0;margin:0}.index .header[data-v-c0a21c10]{position:relative;z-index:3;height:50px;padding-top:12px;max-width:1280px;margin:0 auto}.index .header .z-row[data-v-c0a21c10]{color:#fff;height:50px;position:relative;z-index:2;max-width:1680px;margin:0 auto}.index .header .z-row .header-col-sub[data-v-c0a21c10]{width:500px}.index .header .z-row .header-col-sub h2[data-v-c0a21c10]{position:relative;padding:1rem 0 0 1rem;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:end;-ms-flex-align:end;align-items:flex-end}.index .header .z-row .header-col-sub h2 img[data-v-c0a21c10]{width:150px;margin-right:6px}.index .header .z-row .header-col-sub h2 span[data-v-c0a21c10]{font-size:12px;font-weight:400;color:hsla(0,0%,100%,.85);line-height:14px}.index .header .z-row .z-1 dl[data-v-c0a21c10]{position:absolute;right:20px;top:0;font-size:14px}.index .header .z-row .z-1 dl dd[data-v-c0a21c10]{line-height:50px;color:#fff;cursor:pointer;margin-right:1px}.index .header .z-row .z-1 dl dd .right-enterprise[data-v-c0a21c10]{padding:1px 10px;font-size:12px;color:#f6ca9d;background:#1d1e23;background:-webkit-gradient(linear,left top,right top,from(#1d1e23),to(#3f4045));background:linear-gradient(90deg,#1d1e23,#3f4045);border:none}.index .header .z-row .z-1 dl dd .right-info[data-v-c0a21c10]{display:inline-block;cursor:pointer;margin-left:12px;color:#fff}.index .header .z-row .z-1 dl dd .right-info .right-icon[data-v-c0a21c10]{font-size:26px;vertical-align:middle}.index .header .z-row .z-1 dl dd .right-info .right-img[data-v-c0a21c10]{vertical-align:middle}.index .welbg[data-v-c0a21c10]{position:absolute;z-index:1;top:0;left:0;right:0;height:762px;overflow:hidden;padding-top:480px;margin-top:-480px;background:#2d8cf0;-webkit-transform:skewY(-2deg);transform:skewY(-2deg);-webkit-box-shadow:0 2px 244px 0 rgba(56,132,255,.4);box-shadow:0 2px 244px 0 rgba(56,132,255,.4)}.index .welbg .second[data-v-c0a21c10]{position:relative;margin-top:582px;height:220px}.index .welbg .second .bg[data-v-c0a21c10]{-webkit-transform:skewY(-2.5deg);transform:skewY(-2.5deg);display:block;position:absolute;top:0;left:0;right:0;bottom:0;background:#1f65d6}.index .welcome[data-v-c0a21c10]{position:relative;z-index:2;height:700px;display:block;overflow:hidden;color:#fff;padding-top:480px;margin-top:-480px}.index .welcome .unslider-arrow[data-v-c0a21c10]{display:none}.index .welcome .banner[data-v-c0a21c10]{padding-top:60px;height:460px;max-width:1200px;margin:0 auto}.index .welcome .banner .banner-carousel[data-v-c0a21c10]{max-width:685px;border-radius:5px;overflow:hidden}.index .welcome .banner img[data-v-c0a21c10]{height:400px;border:5px solid #fff;display:table}.index .welcome .z-8[data-v-c0a21c10]{text-align:center}.index .welcome h3[data-v-c0a21c10]{color:hsla(0,0%,100%,.8);font-size:40px;font-weight:400;text-align:center;margin:30px auto;width:380px}.index .welcome .start[data-v-c0a21c10]{display:inline-block;width:160px;height:50px;line-height:50px;text-align:center;font-weight:400;cursor:pointer;font-size:20px;background:#fff;color:#0396f2;border-radius:4px;border:0}.index .welcome .start[data-v-c0a21c10]:focus,.index .welcome .start[data-v-c0a21c10]:hover{background:#f6f6f6;color:#0396f2}.index .welcome .second[data-v-c0a21c10]{position:relative;height:220px;text-align:center}.index .welcome .second .bg[data-v-c0a21c10]{display:block;position:absolute;top:0;left:0;right:0;bottom:0}.index .welcome .second .z-row[data-v-c0a21c10]{z-index:2;position:relative;font-size:22px;max-width:1400px;margin:0 auto;line-height:220px}.index .welcome .second i[data-v-c0a21c10]{color:hsla(0,0%,100%,.85);margin-right:6px}.index .welcome .second a[data-v-c0a21c10],.index .welcome .second a[data-v-c0a21c10]:hover,.index .welcome .second a[data-v-c0a21c10]:visited{color:#fff}.index .block[data-v-c0a21c10]{max-width:1200px;margin:30px auto;padding-top:50px;border:1px solid transparent}.index .block .wrap-left[data-v-c0a21c10],.index .block .wrap-right[data-v-c0a21c10]{line-height:36px;color:#666;font-size:16px}.index .block .wrap-left[data-v-c0a21c10]{margin:20px 30px 0 0}.index .block .wrap-right[data-v-c0a21c10]{margin:20px 0 0 30px}.index .block i[data-v-c0a21c10]{color:rgba(248,14,21,.7);margin-right:6px}.index .block img[data-v-c0a21c10]{border:5px solid #fff;border-radius:10px;width:100%}.index .p-footer[data-v-c0a21c10]{margin:20px 0;text-align:center;color:#333}.index .p-footer a[data-v-c0a21c10],.index .p-footer span[data-v-c0a21c10]{color:#333;margin-left:10px}@media (max-width:768px){.index .header .z-row .header-col-sub h2[data-v-c0a21c10]{padding:12px 0 0 12px}.index .header .z-row .header-col-sub h2 span[data-v-c0a21c10],.index .welbg[data-v-c0a21c10]{display:none}.index .welcome[data-v-c0a21c10]{height:auto;background:#2d8cf0;-webkit-transform:skewY(-2deg);transform:skewY(-2deg);-webkit-box-shadow:0 2px 244px 0 rgba(56,132,255,.4);box-shadow:0 2px 244px 0 rgba(56,132,255,.4)}.index .welcome .banner[data-v-c0a21c10]{height:auto;-webkit-transform:skewY(2deg);transform:skewY(2deg)}.index .welcome .banner .z-row[data-v-c0a21c10]{-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;padding-bottom:52px}.index .welcome .banner .z-row>div[data-v-c0a21c10]{width:90%;margin:0 auto}.index .welcome .banner h3[data-v-c0a21c10]{font-size:24px;width:auto}.index .welcome .banner img[data-v-c0a21c10]{max-width:100%;height:auto}.index .welcome .second[data-v-c0a21c10]{height:120px;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-transform:skewY(2deg);transform:skewY(2deg)}.index .welcome .second .bg[data-v-c0a21c10]{-webkit-transform:skewY(-4.5deg);transform:skewY(-4.5deg);background:#1f65d6}.index .welcome .second .z-row[data-v-c0a21c10]{height:auto;line-height:36px;font-size:16px;display:block}.index .welcome .second .z-row .z-6[data-v-c0a21c10]{width:30%;margin:0 5%;white-space:nowrap}.index .block[data-v-c0a21c10]{-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;margin:24px auto;padding-top:24px;max-width:90%;border:0}.index .block>div[data-v-c0a21c10]{width:96%;margin:0 auto}.index .block .wrap-left[data-v-c0a21c10],.index .block .wrap-right[data-v-c0a21c10]{margin:6px 0;line-height:28px}}",""])},395:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={data:function(){return{loadIng:0,loginShow:!1,loginType:"login",codeNeed:!1,codeUrl:$A.apiUrl("users/login/codeimg"),formLogin:{username:"",userpass:"",userpass2:"",code:""},ruleLogin:{},systemConfig:$A.jsonParse($A.storage("systemSetting")),fromUrl:""}},mounted:function(){},activated:function(){this.getSetting(),this.fromUrl=decodeURIComponent($A.getObject(this.$route.query,"from")),this.fromUrl&&this.loginChack()},deactivated:function(){this.loginShow=!1},watch:{loginShow:function(e){e?this.getSetting():this.loginType="login"}},methods:{initLanguage:function(){var e=this;this.ruleLogin={username:[{required:!0,message:this.$L("请填写用户名!"),trigger:"change"},{type:"string",min:2,message:this.$L("用户名长度至少2位!"),trigger:"change"}],userpass:[{required:!0,message:this.$L("请填写登录密码!"),trigger:"change"},{type:"string",min:6,message:this.$L("密码错长度至少6位!"),trigger:"change"}],userpass2:[{required:!0,message:this.$L("请填写确认密码!"),trigger:"change"},{type:"string",min:6,message:this.$L("确认密码错长度至少6位!"),trigger:"change"},{validator:function(t,a,i){a!==e.formLogin.userpass?i(new Error(e.$L("两次密码输入不一致!"))):i()},required:!0,trigger:"change"}]}},getSetting:function(){var e=this;$A.apiAjax({url:"system/setting",error:function(){$A.storage("systemSetting",{})},success:function(t){1===t.ret?(e.systemConfig=t.data,$A.storage("systemSetting",e.systemConfig)):$A.storage("systemSetting",{}),"direct"==e.systemConfig.loginWin&&e.loginChack()}})},loginChack:function(){!1!==$A.getToken()?this.goForward({path:"/todo"},!0):this.loginShow=!0},refreshCode:function(){this.codeUrl=$A.apiUrl("users/login/codeimg?_="+Math.random())},enterpriseOpen:function(){this.goForward({path:"/plans"})},onBlur:function(){var e=this;"login"==this.loginType?(this.loadIng++,$A.ajax({url:$A.apiUrl("users/login/needcode"),data:{username:this.formLogin.username},complete:function(){e.loadIng--},success:function(t){e.codeNeed=1===t.ret}})):this.codeNeed=!1},onLogin:function(){var e=this;this.$refs.login.validate(function(t){t&&(e.loadIng++,$A.ajax({url:$A.apiUrl("users/login?type="+e.loginType),data:e.formLogin,complete:function(){e.loadIng--},success:function(t){1===t.ret?($A.storage("userInfo",t.data),$A.setToken(t.data.token),$A.triggerUserInfoListener(t.data),e.loadIng--,e.loginShow=!1,e.$refs.login.resetFields(),e.$Message.success(e.$L("登录成功")),e.fromUrl?window.location.replace(e.fromUrl):e.goForward({path:"/todo"},!0)):(e.$Modal.error({title:e.$L("温馨提示"),content:t.msg}),"need"===t.data.code&&(e.codeNeed=!0,e.refreshCode()))}}))})}}}},396:function(e,t,a){var i=[function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"welbg"},[t("div",{staticClass:"second"},[t("div",{staticClass:"bg"})])])},function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"z-18"},[t("img",{attrs:{src:a(399)}})])},function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"z-18"},[t("img",{attrs:{src:a(400)}})])},function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"z-18"},[t("img",{attrs:{src:a(401)}})])},function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"z-18"},[t("img",{attrs:{src:a(402)}})])}];e.exports={render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"w-box index"},[i("v-title",[e._v(e._s(e.$L("轻量级的团队在线协作")))]),e._v(" "),e._m(0),e._v(" "),i("div",{staticClass:"header"},[i("div",{staticClass:"z-row"},[i("div",{staticClass:"header-col-sub"},[i("h2",[e.systemConfig.logo?i("img",{attrs:{src:e.systemConfig.logo}}):i("img",{attrs:{src:a(286)}}),e._v(" "),i("span",[e._v(e._s(e.$L("轻量级的团队在线协作")))])])]),e._v(" "),i("div",{staticClass:"z-1"},[i("dl",[i("dd",["show"==e.systemConfig.enterprise?i("Button",{staticClass:"right-enterprise",attrs:{type:"success",size:"small"},on:{click:e.enterpriseOpen}},[e._v(e._s(e.$L("企业版")))]):e._e(),e._v(" "),"show"==e.systemConfig.github?i("a",{staticClass:"right-info",attrs:{href:"https://gitee.com/aipaw/wookteam",target:"_blank"}},[i("img",{staticClass:"right-img",attrs:{src:"https://gitee.com/aipaw/wookteam/badge/star.svg?theme=gvp",alt:"star"}})]):e._e(),e._v(" "),"show"==e.systemConfig.github?i("a",{staticClass:"right-info",attrs:{target:"_blank",href:"https://github.com/kuaifan/wookteam"}},[i("Icon",{staticClass:"right-icon",attrs:{type:"logo-github"}})],1):e._e(),e._v(" "),i("Dropdown",{staticClass:"right-info",attrs:{trigger:"hover",transfer:""},on:{"on-click":e.setLanguage}},[i("div",[i("Icon",{staticClass:"right-icon",attrs:{type:"md-globe"}}),e._v(" "),i("Icon",{attrs:{type:"md-arrow-dropdown"}})],1),e._v(" "),i("Dropdown-menu",{attrs:{slot:"list"},slot:"list"},[i("Dropdown-item",{attrs:{name:"zh",selected:"zh"===e.getLanguage()}},[e._v("中文")]),e._v(" "),i("Dropdown-item",{attrs:{name:"en",selected:"en"===e.getLanguage()}},[e._v("English")])],1)],1)],1)])])])]),e._v(" "),i("div",{staticClass:"welcome"},[i("div",{staticClass:"banner"},[i("div",{staticClass:"z-row"},[i("div",{staticClass:"z-16"},[i("Carousel",{staticClass:"banner-carousel",attrs:{autoplay:"",loop:"","autoplay-speed":5e3}},[i("CarouselItem",[i("img",{attrs:{src:a(397)}})]),e._v(" "),i("CarouselItem",[i("img",{attrs:{src:a(398)}})])],1)],1),e._v(" "),i("div",{staticClass:"z-8"},[i("h3",[e._v(e._s(e.$L("酷团队协作工具就从这里开始")))]),e._v(" "),i("div",{staticClass:"bl inline-block"},[i("span",{staticClass:"start",on:{click:e.loginChack}},[e._v(e._s(e.$L("立即登陆")))])])])])]),e._v(" "),i("div",{staticClass:"second"},[i("div",{staticClass:"bg"}),e._v(" "),i("div",{staticClass:"z-row"},[i("div",{staticClass:"z-6"},[i("a",{attrs:{href:"#W_link1"}},[i("i",{staticClass:"ft icon"},[e._v("")]),e._v(e._s(e.$L("待办四象限")))])]),e._v(" "),i("div",{staticClass:"z-6"},[i("a",{attrs:{href:"#W_link2"}},[i("i",{staticClass:"ft icon"},[e._v("")]),e._v(e._s(e.$L("项目管理")))])]),e._v(" "),i("div",{staticClass:"z-6"},[i("a",{attrs:{href:"#W_link3"}},[i("i",{staticClass:"ft icon"},[e._v("")]),e._v(e._s(e.$L("在线知识库")))])]),e._v(" "),i("div",{staticClass:"z-6"},[i("a",{attrs:{href:"#W_link4"}},[i("i",{staticClass:"ft icon"},[e._v("")]),e._v(e._s(e.$L("日程管理")))])])])])]),e._v(" "),i("div",{staticClass:"z-row block"},[i("div",{staticClass:"z-6"},[i("div",{staticClass:"wrap-left",attrs:{id:"W_link1"}},[i("i",{staticClass:"ft icon"},[e._v("")]),e._v(e._s(e.$L("待办四象限:突出事情优先级,帮助员工合理安排时间,提高工作效率。")))])]),e._v(" "),e._m(1)]),e._v(" "),i("div",{staticClass:"z-row block"},[e._m(2),e._v(" "),i("div",{staticClass:"z-6"},[i("div",{staticClass:"wrap-right",attrs:{id:"W_link2"}},[i("i",{staticClass:"ft icon"},[e._v("")]),e._v(e._s(e.$L("项目管理:自定义项目看板,可视化任务安排。")))])])]),e._v(" "),i("div",{staticClass:"z-row block"},[i("div",{staticClass:"z-6"},[i("div",{staticClass:"wrap-left",attrs:{id:"W_link3"}},[i("i",{staticClass:"ft icon"},[e._v("")]),e._v(e._s(e.$L("在线知识库:在线流程图,在线文档,以及可视化的目录编排,文档管理无忧。")))])]),e._v(" "),e._m(3)]),e._v(" "),i("div",{staticClass:"z-row block"},[e._m(4),e._v(" "),i("div",{staticClass:"z-6"},[i("div",{staticClass:"wrap-right",attrs:{id:"W_link4"}},[i("i",{staticClass:"ft icon"},[e._v("")]),e._v(e._s(e.$L("日程管理:可视化日程管理,快速搞定工作计划,了解工作宏观安排。")))])])]),e._v(" "),i("div",{staticClass:"p-footer"},[i("span",{domProps:{innerHTML:e._s(e.systemConfig.footerText||"WookTeam © 2018-2020")}})]),e._v(" "),i("Modal",{attrs:{"mask-closable":!1,"class-name":"simple-modal"},model:{value:e.loginShow,callback:function(t){e.loginShow=t},expression:"loginShow"}},[i("Form",{ref:"login",attrs:{model:e.formLogin,rules:e.ruleLogin},nativeOn:{submit:function(e){e.preventDefault()}}},[i("FormItem",{attrs:{prop:"username"}},[i("Input",{attrs:{type:"text",placeholder:e.$L("用户名")},on:{"on-enter":e.onLogin,"on-blur":e.onBlur},model:{value:e.formLogin.username,callback:function(t){e.$set(e.formLogin,"username",t)},expression:"formLogin.username"}},[i("Icon",{attrs:{slot:"prepend",type:"ios-person-outline"},slot:"prepend"})],1)],1),e._v(" "),i("FormItem",{attrs:{prop:"userpass"}},[i("Input",{attrs:{type:"password",placeholder:e.$L("密码")},on:{"on-enter":e.onLogin},model:{value:e.formLogin.userpass,callback:function(t){e.$set(e.formLogin,"userpass",t)},expression:"formLogin.userpass"}},[i("Icon",{attrs:{slot:"prepend",type:"ios-lock-outline"},slot:"prepend"})],1)],1),e._v(" "),"reg"==e.loginType?i("FormItem",{attrs:{prop:"userpass2"}},[i("Input",{attrs:{type:"password",placeholder:e.$L("确认密码")},on:{"on-enter":e.onLogin},model:{value:e.formLogin.userpass2,callback:function(t){e.$set(e.formLogin,"userpass2",t)},expression:"formLogin.userpass2"}},[i("Icon",{attrs:{slot:"prepend",type:"ios-lock-outline"},slot:"prepend"})],1)],1):e._e(),e._v(" "),"login"==e.loginType&&e.codeNeed?i("FormItem",{attrs:{prop:"code"}},[i("Input",{attrs:{type:"text",placeholder:e.$L("验证码")},on:{"on-enter":e.onLogin},model:{value:e.formLogin.code,callback:function(t){e.$set(e.formLogin,"code",t)},expression:"formLogin.code"}},[i("Icon",{attrs:{slot:"prepend",type:"ios-checkmark-circle-outline"},slot:"prepend"}),e._v(" "),i("div",{staticClass:"login-code",attrs:{slot:"append"},on:{click:e.refreshCode},slot:"append"},[i("img",{attrs:{src:e.codeUrl}})])],1)],1):e._e()],1),e._v(" "),i("div",{staticClass:"login-header",attrs:{slot:"header"},slot:"header"},[i("div",{staticClass:"login-header-item",class:{active:"login"==e.loginType},on:{click:function(t){e.loginType="login"}}},[e._v(e._s(e.$L("用户登录")))]),e._v(" "),"open"==e.systemConfig.reg?i("div",{staticClass:"login-header-item",class:{active:"reg"==e.loginType},on:{click:function(t){e.loginType="reg"}}},[e._v(e._s(e.$L("注册账号")))]):e._e()]),e._v(" "),i("div",{attrs:{slot:"footer"},slot:"footer"},[i("Button",{attrs:{type:"default"},on:{click:function(t){e.loginShow=!1}}},[e._v(e._s(e.$L("取消")))]),e._v(" "),i("Button",{attrs:{type:"primary",loading:e.loadIng>0},on:{click:e.onLogin}},[e._v(e._s(e.$L("reg"==e.loginType?"注册":"登录")))])],1)],1)],1)},staticRenderFns:i}},397:function(e,t){e.exports="/images/statics/images/index/banner/1.jpg?76c04ea4"},398:function(e,t){e.exports="/images/statics/images/index/banner/2.jpg?7acabd56"},399:function(e,t){e.exports="/images/statics/images/index/todo.jpg?a9249b17"},400:function(e,t){e.exports="/images/statics/images/index/project.jpg?badbfb0f"},401:function(e,t){e.exports="/images/statics/images/index/wiki.jpg?e9154757"},402:function(e,t){e.exports="/images/statics/images/index/week.jpg?bcbeca9f"},642:function(e,t,a){var i=a(2)(a(395),a(396),!1,function(e){a(391),a(393)},"data-v-c0a21c10",null);e.exports=i.exports}});
|