Commit 3fbda34e by 陈桂东

commit

parent b7c3c872
@Extend(Button) function CommonButtonStyle() { @Extend(Button) function CommonButtonStyle() {
.borderWidth(2) .borderWidth(2)
.borderColor('#0fa983') .borderColor('#0fa983')
...@@ -7,42 +6,43 @@ ...@@ -7,42 +6,43 @@
.borderRadius(10) .borderRadius(10)
.type(ButtonType.Normal) .type(ButtonType.Normal)
.height(30) .height(30)
.margin({ left: 10,right: 10 }) .margin({ left: 10, right: 10 })
.stateEffect(true) .stateEffect(true)
} }
@Entry @Entry
@Component @Component
export struct DirectConnect { export struct DirectConnect {
@State message: string = 'DirectConnect'
@Builder renderTop() { @Builder renderTop() {
Column() { Column() {
Row() { Flex({ alignItems: ItemAlign.Start, direction: FlexDirection.Column }) {
Divider() Row() {
.vertical(true) Divider()
.height(14) .vertical(true)
.strokeWidth(3) .height(14)
.color('#19ac88') .strokeWidth(3)
.opacity(0.6) .color('#19ac88')
.margin({ left: 8, right: 8 }) .opacity(0.6)
Text("扫描信息") .margin({ left: 8, right: 8 })
.fontWeight(FontWeight.Medium) Text("扫描信息")
.fontSize(14) .fontWeight(FontWeight.Medium)
} .fontSize(14)
}.padding({ top: 8, bottom: 8 })
Row() { Row() {
Text("连接状态:").fontSize(20) Text("连接状态:").fontSize(18)
Text("未连接").fontColor("#22b08d").fontSize(21) Text("未连接").fontColor("#22b08d").fontSize(19)
}.padding({ top: 8, bottom: 8 }) }.padding({ top: 8, bottom: 8 }).margin({ left: 20 })
Row() { Row() {
Text("扫描信息:").fontSize(18) Text("扫描信息:").fontSize(16)
Text("请扫描二维码").fontSize(19) Text("请扫描二维码").fontSize(18)
}.padding({ top: 8, bottom: 8 }) }.padding({ top: 8, bottom: 8 }).margin({ left: 20 })
}
} }
.backgroundColor("#fff") .backgroundColor("#fff")
.height("20%") .alignItems(HorizontalAlign.Start)
.height("15%")
.width("100%") .width("100%")
.margin({ top: 25 }) .margin({ top: 25 })
.borderRadius(15) .borderRadius(15)
...@@ -73,8 +73,13 @@ export struct DirectConnect { ...@@ -73,8 +73,13 @@ export struct DirectConnect {
} }
} }
}.margin({ top: 12 }) }.margin({ top: 12 })
Column(){
Image($r("app.media.empty")).width('50%')
Text("暂无历史扫描信息").fontSize(20)
}.margin({top:100})
} }
.height("70%") .height("75%")
.width("100%") .width("100%")
.backgroundColor("#fff") .backgroundColor("#fff")
.margin({ top: 25 }) .margin({ top: 25 })
...@@ -84,10 +89,11 @@ export struct DirectConnect { ...@@ -84,10 +89,11 @@ export struct DirectConnect {
build() { build() {
Column() { Column() {
this.renderTop() this.renderTop()
this.renderBottom() this.renderBottom()
// BasicTable()
}.padding({ left: 20, right: 20 }).width("100%").height("100%").linearGradient({
}.padding({ left: 20, right: 20 }).height("100%").linearGradient({
direction: GradientDirection.RightBottom, direction: GradientDirection.RightBottom,
repeating: true, repeating: true,
colors: [[0x36a3c0, 0.0], [0x97c6a6, 1.0], [0xc7d799, 2.0]] colors: [[0x36a3c0, 0.0], [0x97c6a6, 1.0], [0xc7d799, 2.0]]
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论