mirror of
https://github.com/kuaifan/dootask.git
synced 2026-01-25 11:58:12 +00:00
no message
This commit is contained in:
parent
1d8b4ba83f
commit
173f5c84db
@ -249,7 +249,7 @@ class UsersController extends AbstractController
|
|||||||
$userimg = is_array($userimg) ? $userimg[0]['path'] : $userimg;
|
$userimg = is_array($userimg) ? $userimg[0]['path'] : $userimg;
|
||||||
$user->userimg = Base::unFillUrl($userimg);
|
$user->userimg = Base::unFillUrl($userimg);
|
||||||
} else {
|
} else {
|
||||||
$user->userimg = $user->getUserimgAttribute(null);
|
$user->userimg = Base::unFillUrl($user->getUserimgAttribute(null));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
//昵称
|
//昵称
|
||||||
|
|||||||
46
resources/assets/js/directives/longpress.js
vendored
Executable file
46
resources/assets/js/directives/longpress.js
vendored
Executable file
@ -0,0 +1,46 @@
|
|||||||
|
const isSupportTouch = "ontouchend" in document;
|
||||||
|
export default {
|
||||||
|
bind (el, binding) {
|
||||||
|
if (!isSupportTouch) {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
let timer = 0;
|
||||||
|
el.__touchLongpressDown__ = e => {
|
||||||
|
timer = setTimeout(_ => {
|
||||||
|
timer = 0
|
||||||
|
if (binding.expression) {
|
||||||
|
binding.value(e, el)
|
||||||
|
}
|
||||||
|
}, 600)
|
||||||
|
};
|
||||||
|
el.__touchLongpressMove__ = _ => {
|
||||||
|
if (timer) {
|
||||||
|
clearTimeout(timer)
|
||||||
|
timer = 0
|
||||||
|
}
|
||||||
|
};
|
||||||
|
el.__touchLongpressUp__ = _ => {
|
||||||
|
if (timer) {
|
||||||
|
clearTimeout(timer)
|
||||||
|
timer = 0
|
||||||
|
}
|
||||||
|
};
|
||||||
|
el.addEventListener('touchstart', el.__touchLongpressDown__);
|
||||||
|
el.addEventListener('touchmove', el.__touchLongpressMove__);
|
||||||
|
el.addEventListener('touchend', el.__touchLongpressUp__);
|
||||||
|
},
|
||||||
|
update () {
|
||||||
|
|
||||||
|
},
|
||||||
|
unbind (el) {
|
||||||
|
if (!isSupportTouch) {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
el.removeEventListener('touchstart', el.__touchLongpressDown__);
|
||||||
|
el.removeEventListener('touchmove', el.__touchLongpressMove__);
|
||||||
|
el.removeEventListener('touchend', el.__touchLongpressUp__);
|
||||||
|
delete el.__touchLongpressDown__;
|
||||||
|
delete el.__touchLongpressMove__;
|
||||||
|
delete el.__touchLongpressUp__;
|
||||||
|
}
|
||||||
|
};
|
||||||
@ -40,12 +40,12 @@
|
|||||||
</div>
|
</div>
|
||||||
</EPopover>
|
</EPopover>
|
||||||
|
|
||||||
<ETooltip placement="top" :disabled="!$isDesktop" :content="$L('发送')">
|
|
||||||
<div class="chat-send" :class="[value ? '' : 'disabled']" v-touchmouse="send">
|
<div class="chat-send" :class="[value ? '' : 'disabled']" v-touchmouse="send">
|
||||||
<Loading v-if="loading"/>
|
<Loading v-if="loading"/>
|
||||||
<Icon v-else type="md-send"/>
|
<ETooltip v-else placement="top" :disabled="!$isDesktop" :content="$L('发送')">
|
||||||
</div>
|
<Icon type="md-send"/>
|
||||||
</ETooltip>
|
</ETooltip>
|
||||||
|
</div>
|
||||||
|
|
||||||
<slot name="toolbarAfter"/>
|
<slot name="toolbarAfter"/>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@ -92,7 +92,7 @@
|
|||||||
<div class="dialog-avatar">
|
<div class="dialog-avatar">
|
||||||
<UserAvatar :userid="item.userid" :tooltipDisabled="item.userid == userId" :size="30"/>
|
<UserAvatar :userid="item.userid" :tooltipDisabled="item.userid == userId" :size="30"/>
|
||||||
</div>
|
</div>
|
||||||
<DialogView :msg-data="item" :dialog-type="dialogData.type" :hidden-percentage="dialogData.dialog_user.userid == userId"/>
|
<DialogView :msg-data="item" :dialog-type="dialogData.type" :hidden-percentage="dialogData.dialog_user && dialogData.dialog_user.userid == userId"/>
|
||||||
</DynamicScrollerItem>
|
</DynamicScrollerItem>
|
||||||
</template>
|
</template>
|
||||||
</DynamicScroller>
|
</DynamicScroller>
|
||||||
|
|||||||
@ -253,8 +253,8 @@
|
|||||||
z-index: 2;
|
z-index: 2;
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
height: 100%;
|
|
||||||
color: #ffffff;
|
color: #ffffff;
|
||||||
|
line-height: 28px;
|
||||||
transition: all 0.3s;
|
transition: all 0.3s;
|
||||||
}
|
}
|
||||||
&:after {
|
&:after {
|
||||||
|
|||||||
3
resources/assets/sass/scrollbar.scss
vendored
3
resources/assets/sass/scrollbar.scss
vendored
@ -43,3 +43,6 @@
|
|||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
.overlay-hidden {
|
||||||
|
overflow: hidden !important;
|
||||||
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user