Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
J
jump_hm_warehouse
概览
Overview
Details
Activity
Cycle Analytics
版本库
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
问题
0
Issues
0
列表
Board
标记
里程碑
合并请求
0
Merge Requests
0
CI / CD
CI / CD
流水线
作业
日程表
图表
维基
Wiki
代码片段
Snippets
成员
Members
Collapse sidebar
Close sidebar
活动
图像
聊天
创建新问题
作业
提交
Issue Boards
Open sidebar
毛勇泽
jump_hm_warehouse
Commits
6bd1f4c6
Commit
6bd1f4c6
authored
Jan 16, 2024
by
huangqy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
写的一些列表
parent
b5cfd81b
显示空白字符变更
内嵌
并排
正在显示
6 个修改的文件
包含
189 行增加
和
7 行删除
+189
-7
General.ets
entry/src/main/ets/pages/sub_systemMaintenance/General.ets
+1
-0
Maintenance.ets
entry/src/main/ets/pages/sub_systemMaintenance/Maintenance.ets
+64
-0
Setting.ets
entry/src/main/ets/pages/sub_systemMaintenance/Setting.ets
+42
-1
BasicDialog.ets
entry/src/main/ets/view/BasicDialog/BasicDialog.ets
+24
-5
main_pages.json
entry/src/main/resources/base/profile/main_pages.json
+2
-1
UniInitList.ets
features/SystemMaintenance/src/main/ets/model/UniInitList.ets
+56
-0
没有找到文件。
entry/src/main/ets/pages/sub_systemMaintenance/General.ets
View file @
6bd1f4c6
...
...
@@ -20,6 +20,7 @@ export struct General {
builder: BasicDialog({
cancel: this.onCancel,
confirm: this.onSubmit,
title: '2.0业务终端IP'
}),
cancel: this.existApp,
autoCancel: true,
...
...
entry/src/main/ets/pages/sub_systemMaintenance/Maintenance.ets
0 → 100644
View file @
6bd1f4c6
import { maintenanceList, UniListItem } from '@ohos/system/src/main/ets/model/UniInitList'
import { TitleBar } from '../../view/title/TitleBar'
@Entry
@Component
export struct Maintenance {
@State searchValue: string = ''
controller: SearchController = new SearchController()
build() {
Column() {
Flex({ direction: FlexDirection.Column }) {
TitleBar({ title: "联系" })
Column() {
Column() {
List({ space: 2 }) {
ForEach(maintenanceList, (item: UniListItem) => {
ListItem() {
Row() {
Image(item?.extraIcon)
.width(45)
.height(45)
.margin({ right: 8 })
.borderRadius(50)
Flex({ direction: FlexDirection.Column, justifyContent: FlexAlign.Center }) {
Text(item.title).fontSize(20).fontColor('#3b4144')
Text(item.description).fontSize(14).fontColor('#999').margin({ top: 3 })
}
.width('50%')
Blank()
.layoutWeight(1)
Text(item.targetValue)
.fontSize(16)
.flexGrow(1)
.align(Alignment.End)
.margin({ right: 8 })
.fontColor('#999')
}
.width('100%')
.justifyContent(FlexAlign.SpaceBetween)
.padding({ left: 12, right: 18 })
}
.height('10%')
})
}
.width('100%')
.backgroundColor('#fff')
.divider({ strokeWidth: 1, color: 'rgb(242,242,242)' }) // 每行之间的分界线
}
Text('*请您耐心等待,我们非常理解您的心情,我们会尽快为您处理您的问题。')
.fontSize(10)
.margin({ top: 8, bottom: 8 })
}.padding(10)
}
}.linearGradient({
direction: GradientDirection.RightBottom,
repeating: true,
colors: [['#36a3c0', 0.0], ['#97c6a6', 1.0], ['#c7d799', 2.0]]
})
}
}
\ No newline at end of file
entry/src/main/ets/pages/sub_systemMaintenance/Setting.ets
View file @
6bd1f4c6
import { TitleBar } from '../../view/title/TitleBar'
import router from '@ohos.router';
import { UniListItem, sysInitList } from '@ohos/system/src/main/ets/model/UniInitList';
import { UniListItem, sysInitList
, sysExtraInitList
} from '@ohos/system/src/main/ets/model/UniInitList';
@Entry
@Component
...
...
@@ -52,6 +52,47 @@ export struct Setting {
.backgroundColor('#fff')
.divider({ strokeWidth: 1, color: 'rgb(242,242,242)' }) // 每行之间的分界线
}.margin({ top:5, bottom: 5 })
Column() {
List({ space: 2 }) {
ForEach(sysExtraInitList, (item: UniListItem) => {
ListItem() {
Row() {
Row() {
Image(item?.extraIcon)
.width(24)
.height(24)
.margin({ right: 8 })
Text(item?.title).fontSize(20).fontColor('#3b4144')
}
.width('60%')
Blank()
.layoutWeight(1)
Text(item.targetValue)
.fontSize(16)
.flexGrow(1)
.align(Alignment.End)
.margin({ right: 8 })
.fontColor('#999')
Image($r('app.media.right_grey')).width(8).height(16)
}
.width('100%')
.justifyContent(FlexAlign.SpaceBetween)
.padding({ left: 12, right: 18 })
}
.height('7%')
.onClick(() => {
router.pushUrl({
url: item.url
})
})
})
}
.width('100%')
.backgroundColor('#fff')
.divider({ strokeWidth: 1, color: 'rgb(242,242,242)' }) // 每行之间的分界线
}.margin({ top:5, bottom: 5 })
}
...
...
entry/src/main/ets/view/BasicDialog/BasicDialog.ets
View file @
6bd1f4c6
@Extend(Button) function CommonButtonStyle() {
.borderWidth(2)
.borderColor('#0fa983')
.backgroundColor('#fff')
.fontColor('#0fa983')
.borderRadius(10)
.type(ButtonType.Normal)
.stateEffect(true)
}
@CustomDialog
@Component
export struct BasicDialog {
private title: string;
controller: CustomDialogController
cancel: () => void
confirm: () => void
build() {
Column() {
Flex({ alignItems: ItemAlign.Start }) {
Row() {
Text().fontSize(20).textAlign(TextAlign.Start)
}.margin({ top: 10, bottom: 10 })
Divider()
.vertical(true)
.height(14)
.strokeWidth(3)
.color('#19ac88')
.opacity(0.6)
.margin({ left: 8, right: 8 })
Text(this.title)
.fontSize(20)
}.padding({ top: 10, bottom: 10 })
}
Flex({ justifyContent: FlexAlign.SpaceAround }) {
Button('确认')
.onClick(() => {
this.controller.close()
this.confirm()
}).
backgroundColor('#0fa983').fontColor(Color.Black
)
}).
CommonButtonStyle(
)
Button('取消')
.onClick(() => {
this.controller.close()
this.cancel()
}).
backgroundColor('#0fa983').fontColor(Color.Red
)
}).
CommonButtonStyle(
)
}.margin({ bottom: 10 })
}
}
...
...
entry/src/main/resources/base/profile/main_pages.json
View file @
6bd1f4c6
...
...
@@ -18,6 +18,7 @@
"pages/sub_systemMaintenance/GoodsShelf"
,
"pages/sub_systemMaintenance/Pmhx"
,
"pages/sub_systemMaintenance/Setting"
,
"pages/sub_systemMaintenance/General"
"pages/sub_systemMaintenance/General"
,
"pages/sub_systemMaintenance/Maintenance"
]
}
features/SystemMaintenance/src/main/ets/model/UniInitList.ets
View file @
6bd1f4c6
...
...
@@ -73,6 +73,62 @@ export const sysInitList: UniListItem[] = [
},
]
export const sysExtraInitList: UniListItem[] = [
{
title: '意见反馈',
showExtraIcon: true,
showArrow: true,
//extraIcon: '',
url: 'pages/sub_systemMaintenance/General',
targetValue: ''
},
{
title: '联系运维',
showExtraIcon: true,
showArrow: true,
//extraIcon: '',
url: 'pages/sub_systemMaintenance/Maintenance',
targetValue: ''
},
{
title: '帮助',
showExtraIcon: true,
showArrow: true,
//extraIcon: '',
url: '/Unit',
targetValue: ''
},
{
title: '关于',
showExtraIcon: true,
showArrow: true,
//extraIcon: '',
url: '/Unit',
targetValue: '版本号: 1.0.1'
},
]
export const maintenanceList: UniListItem[] = [
{
title: '陈工',
showExtraIcon: true,
showArrow: true,
extraIcon: $r('app.media.tx2'),
description: '13449490736',
url: '',
targetValue: '负责:技术问题'
},
{
title: '李工',
showExtraIcon: true,
showArrow: true,
extraIcon: $r('app.media.tx1'),
description: '18518688936',
url: '',
targetValue: '负责:业务问题'
},
]
export const generalInitList: UniListItem[] = [
{
title: '2.0业务数据服务IP',
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论