Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
iBiz-Vue-Mob-R7-Res
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
iBiz-R7前端标准模板
iBiz-Vue-Mob-R7-Res
提交
d80e54e4
提交
d80e54e4
编写于
9月 28, 2020
作者:
zhujiamin
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
侧滑菜单样式美化,兼容性调整
上级
02c939fa
变更
5
隐藏空白字符变更
内嵌
并排
正在显示
5 个修改的文件
包含
133 行增加
和
25 行删除
+133
-25
app-mob-menu-sideslip-view-header.less
...deslip-view-header/app-mob-menu-sideslip-view-header.less
+3
-3
app-mob-menu-sideslip-view-header.vue
...ideslip-view-header/app-mob-menu-sideslip-view-header.vue
+48
-3
app-mob-menu-sideslip-view.less
...pp-mob-menu-sideslip-view/app-mob-menu-sideslip-view.less
+28
-10
app-mob-menu-sideslip-view.vue
...app-mob-menu-sideslip-view/app-mob-menu-sideslip-view.vue
+27
-9
theme.less
src/styles/theme/theme.less
+27
-0
未找到文件。
src/components/app-mob-menu-sideslip-view-header/app-mob-menu-sideslip-view-header.less
浏览文件 @
d80e54e4
...
...
@@ -8,16 +8,16 @@
}
.title{
color: #fff;
font-size:
20
px;
font-size:
15
px;
margin-bottom: 10px;
}
.text{
display: inline-block;
padding: 3px 6px;
background-color: #fff;
color: #333;
//
color: #333;
font-size: 12px;
margin-bottom:
2
0px;
margin-bottom:
1
0px;
}
.notice{
ion-icon{
...
...
src/components/app-mob-menu-sideslip-view-header/app-mob-menu-sideslip-view-header.vue
浏览文件 @
d80e54e4
...
...
@@ -2,9 +2,9 @@
<div
class=
"app-mob-menu-sideslip-view-header"
>
<div
class=
"header"
>
<img
src=
"assets/images/logo.png"
class=
"ibizLogo"
/>
<div
class=
"title"
>
iBizPMS
</div>
<div
class=
"text"
>
登录·试用测试版
</div>
<div
class=
"notice"
><ion-icon
name=
"megaphone-outline"
></ion-icon>
#最新通知——更新/下载
</div>
<div
class=
"title"
>
账号信息:
{{
srfloginname
}}
</div>
<div
class=
"text"
>
{{
text
}}
</div>
<div
class=
"notice"
@
click=
"toNotice"
><ion-icon
name=
"megaphone-outline"
></ion-icon>
#论坛地址——
{{
notice
}}
</div>
</div>
</div>
</
template
>
...
...
@@ -18,6 +18,51 @@ import { Environment } from '@/environments/environment';
})
export
default
class
AppMobMenuSideslipView
extends
Vue
{
/**
* 账号信息
*
* @type {*}
* @memberof AppMobMenuSideslipViewHeader
*/
public
srfloginname
?:
any
;
/**
* 软件信息
*
* @type {string}
* @memberof AppMobMenuSideslipViewHeader
*/
public
text
?:
string
;
/**
* 论坛信息
*
* @type {string}
* @memberof AppMobMenuSideslipViewHeader
*/
public
notice
?:
string
;
/**
* 生命周期
*
* @memberof AppMobMenuSideslipViewHeader
*/
public
created
(){
this
.
text
=
Environment
.
AppTitle
;
this
.
notice
=
Environment
.
ibizbbstUrl
;
let
appdata
=
this
.
$store
.
state
.
appdata
;
this
.
srfloginname
=
appdata
.
context
.
srfloginname
;
}
/**
* 跳转论坛
*
* @memberof AppMobMenuSideslipViewHeader
*/
public
toNotice
(){
// window.location.href = 'https://bbs.ibizlab.cn';
window
.
open
(
'https://bbs.ibizlab.cn'
,
'_blank'
);
}
}
</
script
>
...
...
src/components/app-mob-menu-sideslip-view/app-mob-menu-sideslip-view.less
浏览文件 @
d80e54e4
...
...
@@ -6,11 +6,6 @@
}
.app-mob-menu-sideslip-view{
height: 100%;
ion-button{
position: absolute;
top: 5px;
left: 0;
}
v-touch{
height: 100%;
}
...
...
@@ -20,11 +15,12 @@
.title{
color:#727272;
font-size: 18px;
padding-left: 10px;
}
padding: 15px;
border-bottom:1px solid #E8E8E8;
padding: 15px 0;
.list{
padding: 10px 10px 10px 0;
box-sizing: border-box;
padding: 10px 10px 10px 10px;
ion-icon{
font-size: 25px;
margin-right: 35px;
...
...
@@ -33,9 +29,31 @@
align-items: center;
font-size: 16px;
margin: 10px 0;
color: #
333
;
color: #
565656
;
&:active{
background-color: #DBDBDB;
background: #F4F3F8;
box-shadow: -1px -1px -2px rgba(255, 255, 255, 0.2);
transition: all 0.25s linear;
}
.van-tag{
position: absolute;
right: 10px;
}
}
.active{
padding: 10px 10px 10px 10px;
ion-icon{
font-size: 25px;
margin-right: 35px;
}
display: flex;
align-items: center;
font-size: 16px;
margin: 10px 0;
color: #333;
background-color:#F4F3F8;
.text{
color: #565656;
}
}
}
...
...
src/components/app-mob-menu-sideslip-view/app-mob-menu-sideslip-view.vue
浏览文件 @
d80e54e4
<
template
>
<div
class=
"app-mob-menu-sideslip-view"
>
<van-popup
v-model=
"showPopup"
get-container=
"#app"
position=
"left"
:style=
"
{ height: '100%',width: '
80
%' }" duration="0.2" :close-on-popstate="true">
<van-popup
v-model=
"showPopup"
get-container=
"#app"
position=
"left"
:style=
"
{ height: '100%',width: '
75
%' }" duration="0.2" :close-on-popstate="true">
<v-touch
v-on:swipeleft=
"onSwipeLeft"
style=
"height:100%;"
>
<div
class=
"app-menu-plugin"
>
<app-mob-menu-sideslip-view-header></app-mob-menu-sideslip-view-header>
...
...
@@ -8,12 +8,13 @@
<div
class=
"title"
>
Menu
</div>
<template
v-for=
"item in items"
>
<template
v-if=
"!item.hidden"
>
<div
class=
"list"
:key=
"item.index"
@
click=
"active(item)"
>
<div
class=
"list"
:key=
"item.index"
@
click=
"active(item)"
:class=
"
{'active':item.id == activeId}"
>
<ion-icon
:name=
" item.iconcls ? item.iconcls : 'home' "
></ion-icon>
<div
class=
"text"
>
<ion-label
v-if=
"item.appfunctag != 'settings'"
>
{{
$t
(
`app.menus.${menuName
}
.${item.name
}
`
)
}}
<
/ion-label
>
<
ion
-
label
v
-
else
>
{{
item
.
text
}}
<
/ion-label
>
<
ion
-
badge
color
=
"danger"
v
-
if
=
"counterServide && counterServide.counterData && counterServide.counterData[item.counterid]"
><
ion
-
label
>
{{
counterServide
.
counterData
[
item
.
counterid
]
}}
<
/ion-label></i
on
-
badge
>
<
van
-
tag
round
type
=
"primary"
size
=
"medium"
v
-
if
=
"counterServide && counterServide.counterData && counterServide.counterData[item.counterid]"
>
{{
counterServide
.
counterData
[
item
.
counterid
]
}}
<
/van-tag
>
<!--
<
ion
-
badge
color
=
"danger"
v
-
if
=
"counterServide && counterServide.counterData && counterServide.counterData[item.counterid]"
><
ion
-
label
>
{{
counterServide
.
counterData
[
item
.
counterid
]
}}
<
/ion-label></i
on
-
badge
>
-->
<
/div
>
<
/div
>
<
/template
>
...
...
@@ -208,14 +209,10 @@ export default class AppMobMenuSideslipView extends Vue {
if
(
currPage
){
this
.
items
.
forEach
((
item
:
any
,
index
:
number
)
=>
{
if
(
item
.
id
==
currPage
){
this
.
activeId
=
item
.
id
;
this
.
activeId
=
item
.
id
}
}
)
}
// 阻止冒泡
document
.
addEventListener
(
'touchmove'
,
function
(
event
){
event
.
stopPropagation
();
}
,
false
);
}
}
/**
...
...
@@ -262,6 +259,27 @@ export default class AppMobMenuSideslipView extends Vue {
return
val
;
}
/**
* 选中菜单项
*
* @param {*
}
$event
* @returns {void
}
* @memberof AppMobMenuDefaultView
*/
public
selectItem
(
$event
:
any
):
void
{
if
(
!
$event
)
{
return
;
}
let
{
detail
}
=
$event
;
if
(
!
detail
)
{
return
;
}
let
{
tab
}
=
detail
;
if
(
!
tab
)
{
return
;
}
}
/**
* 向左滑动关闭弹出层
*
...
...
src/styles/theme/theme.less
浏览文件 @
d80e54e4
...
...
@@ -169,7 +169,25 @@
.header {
background-color: @theme-color;
}
.list{
&:active{
color: @theme-color;
}
.van-tag{
background-color: @theme-color;
color: @text-color;
}
}
.active{
ion-icon{
color: @theme-color;
}
ion-label{
color: @theme-color;
}
}
}
// 快速搜索组件主题
.app-seach-history {
.record {
...
...
@@ -191,4 +209,13 @@
.dropdown-box .dropdown-item .dropdown-item-icon {
color: @theme-color;
}
// 侧滑菜单头部
.app-mob-menu-sideslip-view-header{
.header{
.text{
color: @theme-color;
}
}
}
}
编辑
预览
Markdown
格式
0%
请重试
or
添加新附件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录