no message

This commit is contained in:
kuaifan 2022-05-20 10:23:30 +08:00
parent 7a168977da
commit 4c2b88a13f
6 changed files with 113 additions and 51 deletions

View File

@ -21,6 +21,7 @@
<Input <Input
v-model="email" v-model="email"
ref="email"
prefix="ios-mail-outline" prefix="ios-mail-outline"
:placeholder="$L('输入您的电子邮件')" :placeholder="$L('输入您的电子邮件')"
type="email" type="email"
@ -31,6 +32,7 @@
<Input <Input
v-model="password" v-model="password"
ref="password"
prefix="ios-lock-outline" prefix="ios-lock-outline"
:placeholder="$L('输入您的密码')" :placeholder="$L('输入您的密码')"
type="password" type="password"
@ -41,6 +43,7 @@
<Input <Input
v-if="loginType=='reg'" v-if="loginType=='reg'"
v-model="password2" v-model="password2"
ref="password2"
prefix="ios-lock-outline" prefix="ios-lock-outline"
:placeholder="$L('输入确认密码')" :placeholder="$L('输入确认密码')"
type="password" type="password"
@ -50,6 +53,7 @@
<Input <Input
v-if="loginType=='reg' && needInvite" v-if="loginType=='reg' && needInvite"
v-model="invite" v-model="invite"
ref="invite"
class="login-code" class="login-code"
:placeholder="$L('请输入注册邀请码')" :placeholder="$L('请输入注册邀请码')"
type="text" type="text"
@ -60,6 +64,7 @@
<Input <Input
v-if="loginType=='login' && codeNeed" v-if="loginType=='login' && codeNeed"
v-model="code" v-model="code"
ref="code"
class="login-code" class="login-code"
:placeholder="$L('输入图形验证码')" :placeholder="$L('输入图形验证码')"
type="text" type="text"
@ -402,15 +407,18 @@ export default {
// //
if (!$A.isEmail(this.email)) { if (!$A.isEmail(this.email)) {
$A.messageWarning("请输入正确的邮箱地址"); $A.messageWarning("请输入正确的邮箱地址");
this.$refs.email.focus();
return; return;
} }
if (!this.password) { if (!this.password) {
$A.messageWarning("请输入密码"); $A.messageWarning("请输入密码");
this.$refs.password.focus();
return; return;
} }
if (this.loginType == 'reg') { if (this.loginType == 'reg') {
if (this.password != this.password2) { if (this.password != this.password2) {
$A.messageWarning("确认密码输入不一致"); $A.messageWarning("确认密码输入不一致");
this.$refs.password2.focus();
return; return;
} }
} }
@ -441,6 +449,7 @@ export default {
if (data.code === 'need') { if (data.code === 'need') {
this.reCode(); this.reCode();
this.codeNeed = true; this.codeNeed = true;
this.$refs.code.focus();
} }
}).finally(_ => { }).finally(_ => {
this.loadIng--; this.loadIng--;

View File

@ -53,9 +53,9 @@
<EPopover <EPopover
v-model="popperShow" v-model="popperShow"
ref="percent" ref="percent"
placement="left-end" popper-class="dialog-wrapper-read-poptip"
:width="360"> placement="left-end">
<div class="dialog-wrapper-read-poptip-content"> <div class="read-poptip-content">
<ul class="read overlay-y"> <ul class="read overlay-y">
<li class="read-title"><em>{{ readList.length }}</em>{{ $L('已读') }}</li> <li class="read-title"><em>{{ readList.length }}</em>{{ $L('已读') }}</li>
<li v-for="item in readList"> <li v-for="item in readList">

View File

@ -245,9 +245,9 @@ body {
.ivu-modal-body { .ivu-modal-body {
padding: 16px 32px 2px; padding: 16px 32px 2px;
overscroll-behavior: none;
* { .ivu-table-body,
.project-log {
overscroll-behavior: none; overscroll-behavior: none;
} }
} }

View File

@ -735,56 +735,67 @@
} }
} }
.dialog-wrapper-read-poptip-content { .dialog-wrapper-read-poptip {
display: flex; width: 360px;
position: relative; max-width: 72%;
.read, .read-poptip-content {
.unread { display: flex;
flex: 1; position: relative;
max-height: 300px;
overflow: auto;
> li { .read,
list-style: none; .unread {
margin-bottom: 12px; flex: 1;
max-height: 300px;
overflow: auto;
.common-avatar { > li {
width: 100%; min-height: 26px;
} list-style: none;
margin-bottom: 12px;
&:last-child { .common-avatar {
margin-bottom: 6px; width: 100%;
} .avatar-name {
padding-right: 6px;
}
}
&.read-title { &:last-child {
> em { margin-bottom: 6px;
font-size: 18px; }
font-weight: 600;
font-style: normal; &.read-title {
padding-right: 6px; min-height: auto;
> em {
font-size: 18px;
font-weight: 600;
font-style: normal;
padding-right: 6px;
}
} }
} }
} }
}
.unread { .unread {
> li { > li {
padding-left: 16px; padding-left: 16px;
}
}
&:before {
content: "";
position: absolute;
left: 50%;
top: 0;
bottom: 0;
width: 1px;
background-color: #F4F4F5;
} }
} }
&:before {
content: "";
position: absolute;
left: 50%;
top: 0;
bottom: 0;
width: 1px;
background-color: #F4F4F5;
}
} }
.dialog-wrapper-paste { .dialog-wrapper-paste {
display: flex; display: flex;
flex-direction: column; flex-direction: column;

View File

@ -343,8 +343,46 @@
.task-title { .task-title {
max-width: 600px; max-width: 600px;
overflow: hidden; display: flex;
text-overflow: ellipsis; align-items: center;
> span {
flex-shrink: 0;
font-size: 12px;
height: 18px;
min-width: 20px;
line-height: 16px;
padding: 0 2px;
border-radius: 3px;
color: #8bcf70;
border: 1px solid #8bcf70;
margin-right: 6px;
&.start {
background-color: rgba($flow-status-start-color, 0.1);
border-color: rgba($flow-status-start-color, 0.1);
color: $flow-status-start-color;
}
&.progress {
background-color: rgba($flow-status-progress-color, 0.1);;
border-color: rgba($flow-status-progress-color, 0.1);;
color: $flow-status-progress-color;
}
&.test {
background-color: rgba($flow-status-test-color, 0.1);;
border-color: rgba($flow-status-test-color, 0.1);;
color: $flow-status-test-color;
}
&.end {
background-color: rgba($flow-status-end-color, 0.1);;
border-color: rgba($flow-status-end-color, 0.1);;
color: $flow-status-end-color;
}
}
.task-title-text {
flex: 1;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
} }
} }

View File

@ -20,13 +20,6 @@
@media (max-width: 768px) { @media (max-width: 768px) {
.page-project { .page-project {
.project-panel {
height: auto;
min-height: 100%;
&.gantt {
height: 100%;
}
}
.project-dialog { .project-dialog {
position: fixed; position: fixed;
top: 0; top: 0;
@ -37,3 +30,14 @@
} }
} }
} }
@media (max-height: 700px) {
.page-project {
.project-panel {
height: auto;
min-height: 100%;
&.gantt {
height: 100%;
}
}
}
}