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
提交
7b48bb9a
提交
7b48bb9a
编写于
9月 16, 2020
作者:
KK
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
设置菜单调整
上级
c724736d
变更
4
隐藏空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
106 行增加
和
62 行删除
+106
-62
app-mob-menu-default-view.vue
...s/app-mob-menu-default-view/app-mob-menu-default-view.vue
+25
-9
app-mob-select-changeTheme.vue
...app-mob-select-changeTheme/app-mob-select-changeTheme.vue
+1
-1
app-setting.less
src/components/app-setting/app-setting.less
+38
-38
app-setting.vue
src/components/app-setting/app-setting.vue
+42
-14
未找到文件。
src/components/app-mob-menu-default-view/app-mob-menu-default-view.vue
浏览文件 @
7b48bb9a
...
...
@@ -7,26 +7,21 @@
</ion-tab>
</
template
>
</template>
<ion-tab
v-if=
"useDefaultMenu"
key=
"setting"
tab=
"setting"
>
<component
:is=
"'app-setting'"
></component>
</ion-tab>
<
template
>
</
template
>
<ion-tab-bar
slot=
"bottom"
>
<
template
v-for=
"item in items"
>
<template
v-if=
"!item.hidden"
>
<ion-tab-button
:tab=
"item.name"
:key=
"item.id"
:selected=
"item.id == activeId"
@
click=
"active(item)"
>
<ion-icon
:name=
" item.iconcls ? item.iconcls : 'home' "
>
</ion-icon>
<ion-label>
{{
$t
(
`app.menus.${menuName
}
.${item.name
}
`
)
}}
<
/ion-label
>
<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
>
<
/ion-tab-button
>
<
/template
>
<
/template
>
<
ion
-
tab
-
button
v
-
if
=
"useDefaultMenu"
tab
=
"setting"
>
<
ion
-
icon
name
=
"settings"
><
/ion-icon
>
<
ion
-
label
>
设置
<
/ion-label
>
<
/ion-tab-button
>
<
/ion-tab-bar
>
<
/ion-tabs
>
<
/template
>
...
...
@@ -123,12 +118,33 @@ export default class AppMobMenuDefaultView extends Vue {
*/
public
activeId
=
""
;
public
defaultMenu
=
{
appfunctag
:
"settings"
,
componentname
:
"app-setting"
,
expanded
:
false
,
hidden
:
false
,
hidesidebar
:
false
,
icon
:
""
,
iconcls
:
"settings"
,
id
:
"setting"
,
name
:
"setting"
,
opendefault
:
false
,
resourcetag
:
""
,
separator
:
false
,
text
:
"设置"
,
textcls
:
""
,
tooltip
:
"设置"
,
type
:
"MENUITEM"
,
}
;
/**
* 生命周期
*
* @memberof AppMobMenuDefaultView
*/
public
created
()
{
if
(
this
.
useDefaultMenu
){
this
.
items
.
push
(
this
.
defaultMenu
);
}
let
count
=
0
;
this
.
items
.
forEach
((
item
:
any
,
index
:
number
)
=>
{
if
(
item
.
hidden
==
false
){
...
...
src/components/app-mob-select-changeTheme/app-mob-select-changeTheme.vue
浏览文件 @
7b48bb9a
<
template
>
<div
class=
"app-mobile-select"
@
click=
"open"
>
<div
class=
"app-mobile-select"
>
<div
class=
"activeoption"
v-if=
"activeoption"
:style=
"
{'background':activeoption.background,'color':activeoption.color}">
{{
activeoption
.
text
}}
</div>
<ion-select
v-show=
"false"
ref=
"themeselect"
:value=
"curValue"
@
ionChange=
"change"
interface=
"action-sheet"
:cancel-text=
"$t('app.button.cancel')"
>
<ion-select-option
v-for=
"option of options"
:key=
"option.value"
:value=
"option.value"
class=
"mob-select-text"
>
{{
option
.
text
}}
</ion-select-option>
...
...
src/components/app-setting/app-setting.less
浏览文件 @
7b48bb9a
.app-setting {
background: #f4f3f8;
.content {
width: 100%;
height: 100%;
overflow: auto;
.content-list {
margin-top: 12px;
.content-list-item-content {
width: 100%;
height: 100%;
padding: 0 15px;
justify-content: space-between;
display: flex;
align-items: center;
.content-list-item-content-text {
font-size: 14px;
}
ion-icon {
color: #bbbbbb;
}
.app-mobile-select{
width: 70%;
display: flex;
justify-content: flex-end;
}
background: #f4f3f8;
.content {
width: 100%;
height: 100%;
overflow: auto;
.content-list {
margin-top: 12px;
.content-list-item-content {
width: 100%;
height: 100%;
padding: 0 15px;
justify-content: space-between;
display: flex;
align-items: center;
.content-list-item-content-text {
font-size: 14px;
}
.content-list-item-content:active{
background: #f4f3f8;
ion-icon {
color: #bbbbbb;
}
.app-mobile-select{
width: 70%;
display: flex;
justify-content: flex-end;
}
}
.content-list-item-content:active{
background: #f4f3f8;
}
}
ion-item {
--inner-padding-end: 0 !important;
--padding-start: 0 !important;
--border-style: 0;
color: #565656;
--color-activated: #f4f3f8;
--color-focused: #f4f3f8;
--color-hover:#f4f3f8;
}
}
\ No newline at end of file
}
ion-item {
--inner-padding-end: 0 !important;
--padding-start: 0 !important;
--border-style: 0;
color: #565656;
--color-activated: #f4f3f8;
--color-focused: #f4f3f8;
--color-hover:#f4f3f8;
}
}
\ No newline at end of file
src/components/app-setting/app-setting.vue
浏览文件 @
7b48bb9a
<
template
>
<ion-page
:className=
"
{ 'view-container': true,'app-setting': true}">
<ion-header>
<ion-header
v-if=
"titleStatus"
>
<ion-toolbar
class=
"ionoc-view-header"
>
<ion-title
class=
"view-title"
>
<label
class=
"title-label"
>
设置
</label>
...
...
@@ -21,10 +21,10 @@
<ion-icon
name=
"chevron-forward-outline"
></ion-icon>
</div>
</ion-item>
<ion-item>
<ion-item
@
click=
"changeTheme"
>
<div
class=
"content-list-item-content"
>
<
div
class=
"content-list-item-content-text"
>
主题
</div
>
<app-mob-select-changeTheme></app-mob-select-changeTheme>
<
ion-label
class=
"content-list-item-content-text"
>
主题
</ion-label
>
<app-mob-select-changeTheme
ref=
"changeTheme"
></app-mob-select-changeTheme>
</div>
</ion-item>
<ion-item>
...
...
@@ -69,7 +69,8 @@
<ion-list
class=
"content-list"
>
<ion-item
@
click=
"logout"
>
<div
class=
"content-list-item-content"
>
<div
class=
"content-list-item-content-text"
>
退出当前账号
</div>
<div
v-if=
"!thirdPartyName"
class=
"content-list-item-content-text"
>
退出当前账号
</div>
<div
v-if=
"thirdPartyName"
class=
"content-list-item-content-text"
>
退出应用
</div>
</div>
</ion-item>
<ion-item
@
click=
"clear"
>
...
...
@@ -95,23 +96,37 @@ import {
components
:
{},
})
export
default
class
AppRoundList
extends
Vue
{
/**
* 传入item
* @type {any}
* @memberof AppRoundList
*/
// @Prop() public item?:any;
public
items
=
[];
public
srfloginname
=
""
;
public
thirdPartyName
=
this
.
$viewTool
.
getThirdPartyName
();
/**
* created
*/
public
created
()
{
let
appdata
=
this
.
$store
.
state
.
appdata
;
this
.
srfloginname
=
appdata
.
context
.
srfloginname
;
this
.
$viewTool
.
setViewTitleOfThirdParty
(
"设置"
);
this
.
setViewTitleStatus
();
}
activated
(){
this
.
$viewTool
.
setViewTitleOfThirdParty
(
"设置"
);
}
/**
* 标题状态
*
* @memberof ProductCloseMobEditViewBase
*/
public
titleStatus
:
boolean
=
true
;
public
setViewTitleStatus
(){
const
thirdPartyName
=
this
.
$store
.
getters
.
getThirdPartyName
();
if
(
thirdPartyName
){
this
.
titleStatus
=
false
;
}
}
/**
...
...
@@ -124,10 +139,13 @@ export default class AppRoundList extends Vue {
const
contant
:
any
=
this
.
$t
(
'app.tabpage.sureclosetip.content'
);
const
result
=
await
this
.
$notice
.
confirm
(
title
,
'确认退出当前账号?'
,
this
.
$store
);
if
(
result
){
if
(
this
.
thirdPartyName
){
this
.
$viewTool
.
ThirdPartyClose
();
return
}
const
get
:
Promise
<
any
>
=
this
.
$http
.
get
(
'v7/logout'
);
get
.
then
((
response
:
any
)
=>
{
if
(
response
&&
response
.
status
===
200
)
{
// this.$appService.logout();
this
.
doLogin
();
}
}).
catch
((
error
:
any
)
=>
{
...
...
@@ -160,6 +178,16 @@ export default class AppRoundList extends Vue {
}
/**
* changeTheme
*/
public
changeTheme
()
{
let
changeTheme
:
any
=
this
.
$refs
.
changeTheme
;
if
(
changeTheme
){
changeTheme
.
open
();
}
}
}
</
script
>
<
style
lang=
"less"
>
...
...
编辑
预览
Markdown
格式
0%
请重试
or
添加新附件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录