mirror of
https://github.com/kuaifan/dootask.git
synced 2026-01-13 01:28:11 +00:00
no message
This commit is contained in:
parent
4d6fb6f2ca
commit
bc4477cd86
@ -5,7 +5,7 @@
|
||||
:closable="escClosable"
|
||||
:mask-closable="maskClosable"
|
||||
:footer-hide="true"
|
||||
:transition-names="[`drawer-fade-${placement}`, '']"
|
||||
:transition-names="[`drawer-slide-${placement}`, '']"
|
||||
:beforeClose="beforeClose"
|
||||
fullscreen
|
||||
:class-name="`common-drawer-overlay ${placement}`">
|
||||
|
||||
@ -1,17 +1,22 @@
|
||||
<template>
|
||||
<div class="mobile-tabbar" :class="{'more-show': isMore}" @click="toggleRoute('more')">
|
||||
<div @click.stop="" class="more-box">
|
||||
<div class="tabbar-more-title">{{$L('更多')}}</div>
|
||||
<ul>
|
||||
<li v-for="item in navMore" @click="toggleRoute(item.name)" :class="{active: activeName === item.name}">
|
||||
<div class="more-item">
|
||||
<i class="taskfont" v-html="item.icon"></i>
|
||||
<div class="tabbar-title">{{$L(item.label)}}</div>
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<ul @click.stop="">
|
||||
<div class="mobile-tabbar">
|
||||
<transition name="mobile-fade">
|
||||
<div v-if="isMore" class="more-mask" @click="toggleRoute('more')"></div>
|
||||
</transition>
|
||||
<transition name="mobile-slide">
|
||||
<div v-if="isMore" class="more-box">
|
||||
<div class="tabbar-more-title">{{$L('更多')}}</div>
|
||||
<ul v-for="list in navMore">
|
||||
<li v-for="item in list" @click="toggleRoute(item.name)" :class="{active: activeName === item.name}">
|
||||
<div class="more-item">
|
||||
<i class="taskfont" v-html="item.icon"></i>
|
||||
<div class="tabbar-title">{{$L(item.label)}}</div>
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</transition>
|
||||
<ul class="tabbar-box">
|
||||
<li v-for="item in navList" @click="toggleRoute(item.name)" :class="{active: activeName === item.name}">
|
||||
<i class="taskfont" v-html="item.icon"></i>
|
||||
<div class="tabbar-title">{{$L(item.label)}}</div>
|
||||
@ -40,17 +45,23 @@ export default {
|
||||
isMore: false,
|
||||
|
||||
navList: [
|
||||
{icon: '', name: 'dashboard', label: '仪表盘'},
|
||||
{icon: '', name: 'project', label: '项目'},
|
||||
{icon: '', name: 'dialog', label: '消息'},
|
||||
{icon: '', name: 'dashboard', label: '仪表盘'},
|
||||
{icon: '', name: 'project', label: '项目'},
|
||||
{icon: '', name: 'dialog', label: '消息'},
|
||||
{icon: '', name: 'contacts', label: '通讯录'},
|
||||
{icon: '', name: 'more', label: '更多'},
|
||||
],
|
||||
navMore: [
|
||||
{icon: '', name: 'calendar', label: '日历'},
|
||||
{icon: '', name: 'file', label: '文件'},
|
||||
{icon: '', name: 'setting', label: '设置'},
|
||||
]
|
||||
[
|
||||
{icon: '', name: 'calendar', label: '日历'},
|
||||
{icon: '', name: 'file', label: '文件'},
|
||||
{icon: '', name: 'setting', label: '设置'},
|
||||
],
|
||||
[
|
||||
{icon: '', name: 'addTask', label: '添加任务'},
|
||||
{icon: '', name: 'addProject', label: '添加项目'},
|
||||
]
|
||||
],
|
||||
};
|
||||
},
|
||||
|
||||
@ -123,12 +134,21 @@ export default {
|
||||
|
||||
methods: {
|
||||
toggleRoute(path) {
|
||||
this.$emit("on-click", path)
|
||||
if (path != 'more') {
|
||||
this.isMore = false
|
||||
}
|
||||
//
|
||||
let location;
|
||||
switch (path) {
|
||||
case 'more':
|
||||
this.isMore = !this.isMore;
|
||||
return;
|
||||
|
||||
case 'addTask':
|
||||
case 'addProject':
|
||||
return;
|
||||
|
||||
case 'project':
|
||||
location = {name: 'manage-project', params: {projectId: 'all'}};
|
||||
break;
|
||||
@ -145,7 +165,6 @@ export default {
|
||||
location = {name: 'manage-' + path};
|
||||
break;
|
||||
}
|
||||
this.isMore = false;
|
||||
this.goForward(location);
|
||||
},
|
||||
},
|
||||
|
||||
@ -354,7 +354,7 @@
|
||||
</DragBallComponent>
|
||||
|
||||
<!--移动端选项卡-->
|
||||
<MobileTabbar v-if="showMobileTabbar"/>
|
||||
<MobileTabbar v-if="showMobileTabbar" @on-click="onTabbarClick"/>
|
||||
<MobileBack :showTabbar="showMobileTabbar"/>
|
||||
</div>
|
||||
</template>
|
||||
@ -1017,6 +1017,17 @@ export default {
|
||||
});
|
||||
},
|
||||
|
||||
onTabbarClick(act) {
|
||||
switch (act) {
|
||||
case 'addTask':
|
||||
this.onAddTask(0)
|
||||
break;
|
||||
case 'addProject':
|
||||
this.onAddShow()
|
||||
break;
|
||||
}
|
||||
},
|
||||
|
||||
notificationInit() {
|
||||
this.notificationManage = new notificationKoro(this.$L("打开通知成功"));
|
||||
if (this.notificationManage.support) {
|
||||
|
||||
@ -109,30 +109,30 @@
|
||||
}
|
||||
}
|
||||
|
||||
.drawer-fade-bottom-enter-active {
|
||||
.drawer-slide-bottom-enter-active {
|
||||
transition: all .2s ease;
|
||||
}
|
||||
|
||||
.drawer-fade-bottom-leave-active {
|
||||
.drawer-slide-bottom-leave-active {
|
||||
transition: all .2s ease;
|
||||
}
|
||||
|
||||
.drawer-fade-bottom-enter,
|
||||
.drawer-fade-bottom-leave-to {
|
||||
.drawer-slide-bottom-enter,
|
||||
.drawer-slide-bottom-leave-to {
|
||||
transform: translate(0, 15%) scale(0.98);
|
||||
opacity: 0;
|
||||
}
|
||||
|
||||
.drawer-fade-right-enter-active {
|
||||
.drawer-slide-right-enter-active {
|
||||
transition: all .2s ease;
|
||||
}
|
||||
|
||||
.drawer-fade-right-leave-active {
|
||||
.drawer-slide-right-leave-active {
|
||||
transition: all .2s ease;
|
||||
}
|
||||
|
||||
.drawer-fade-right-enter,
|
||||
.drawer-fade-right-leave-to {
|
||||
.drawer-slide-right-enter,
|
||||
.drawer-slide-right-leave-to {
|
||||
transform: translate(15%, 0) scale(0.98);
|
||||
opacity: 0;
|
||||
}
|
||||
|
||||
75
resources/assets/sass/components/mobile.scss
vendored
75
resources/assets/sass/components/mobile.scss
vendored
@ -8,7 +8,9 @@
|
||||
right: 0;
|
||||
z-index: 99;
|
||||
|
||||
> ul {
|
||||
.tabbar-box {
|
||||
position: relative;
|
||||
z-index: 3;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
@ -16,7 +18,7 @@
|
||||
margin: 0;
|
||||
height: 60px;
|
||||
background-color: #f8f8f8;
|
||||
box-shadow: 0 0 2px rgba(28, 34, 43, 0.15);
|
||||
box-shadow: 0 0 1px rgba(28, 34, 43, 0.15);
|
||||
|
||||
> li {
|
||||
flex: 1;
|
||||
@ -58,27 +60,40 @@
|
||||
}
|
||||
}
|
||||
|
||||
.more-mask {
|
||||
position: fixed;
|
||||
top: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
z-index: 1;
|
||||
background-color: rgba(0, 0, 0, 0.15);
|
||||
}
|
||||
|
||||
.more-box {
|
||||
display: none;
|
||||
position: relative;
|
||||
z-index: 2;
|
||||
display: block;
|
||||
margin-bottom: -2px;
|
||||
border-radius: 16px 16px 0 0;
|
||||
background-color: rgba(250, 250, 250, 0.98);
|
||||
padding-bottom: 16px;
|
||||
background-color: #ffffff;
|
||||
border-top: 1px solid #f1f1f1;
|
||||
|
||||
.tabbar-more-title {
|
||||
font-size: 18px;
|
||||
font-weight: 500;
|
||||
padding: 14px 14px 0;
|
||||
padding: 16px 16px 36px;
|
||||
}
|
||||
|
||||
> ul {
|
||||
padding: 36px 12px 16px;
|
||||
padding: 0 12px;
|
||||
|
||||
> li {
|
||||
list-style: none;
|
||||
display: inline-block;
|
||||
width: 25%;
|
||||
margin-bottom: 20px;
|
||||
margin-bottom: 28px;
|
||||
|
||||
.more-item {
|
||||
display: flex;
|
||||
@ -92,9 +107,9 @@
|
||||
justify-content: center;
|
||||
width: 56px;
|
||||
height: 56px;
|
||||
font-size: 26px;
|
||||
color: #0bc037;
|
||||
background-color: #f1f1f1;
|
||||
font-size: 25px;
|
||||
color: $primary-color;
|
||||
background-color: rgba($primary-color, 0.08);
|
||||
border-radius: 12px;
|
||||
}
|
||||
|
||||
@ -109,19 +124,6 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
&.more-show {
|
||||
top: 0;
|
||||
background-color: rgba(0, 0, 0, 0.15);
|
||||
|
||||
> ul {
|
||||
box-shadow: 0 0 1px rgba(28, 34, 43, 0.15);
|
||||
}
|
||||
|
||||
.more-box {
|
||||
display: block;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.mobile-back {
|
||||
@ -142,6 +144,33 @@
|
||||
}
|
||||
}
|
||||
|
||||
.mobile-fade-enter-active {
|
||||
transition: all 0.2s ease;
|
||||
}
|
||||
|
||||
.mobile-fade-leave-active {
|
||||
transition: all 0.2s ease;
|
||||
}
|
||||
|
||||
.mobile-fade-enter,
|
||||
.mobile-fade-leave-to {
|
||||
opacity: 0;
|
||||
}
|
||||
|
||||
.mobile-slide-enter-active {
|
||||
transition: all 0.2s ease;
|
||||
}
|
||||
|
||||
.mobile-slide-leave-active {
|
||||
transition: all 0.2s ease;
|
||||
}
|
||||
|
||||
.mobile-slide-enter,
|
||||
.mobile-slide-leave-to {
|
||||
transform: translate(0, 15%) scale(0.98);
|
||||
opacity: 0;
|
||||
}
|
||||
|
||||
@media (max-width: 640px) {
|
||||
.mobile-tabbar {
|
||||
display: flex;
|
||||
|
||||
1
resources/assets/sass/taskfont.scss
vendored
1
resources/assets/sass/taskfont.scss
vendored
@ -10,6 +10,5 @@
|
||||
font-size: 16px;
|
||||
font-style: normal;
|
||||
-webkit-font-smoothing: antialiased;
|
||||
-webkit-text-stroke-width: 0.2px;
|
||||
-moz-osx-font-smoothing: grayscale;
|
||||
}
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user