Toggle navigation
Toggle navigation
This project
Loading...
Sign in
developOne
/
harmonyPool
Go to a project
Toggle navigation
Projects
Groups
Snippets
Help
Toggle navigation pinning
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
王士厅
2024-08-30 18:09:59 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
abf95f828c15e8c0ef998916bb6ace1675018ebf
abf95f82
1 parent
930ac2d4
fix: '我的'预约、消息修改ui修改
Show whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
131 additions
and
222 deletions
sight_harmony/features/wdComponent/src/main/ets/components/mine/appointment/AppointmentListChildComponent.ets
sight_harmony/features/wdComponent/src/main/ets/components/mine/appointment/AppointmentListUI.ets
sight_harmony/features/wdComponent/src/main/ets/components/mine/follow/FollowChildComponent.ets
sight_harmony/features/wdComponent/src/main/ets/components/mine/follow/FollowFirstTabsComponent.ets
sight_harmony/features/wdComponent/src/main/ets/components/mine/follow/FollowListDetailUI.ets
sight_harmony/features/wdComponent/src/main/ets/components/mine/follow/FollowSecondTabsComponent.ets
sight_harmony/features/wdComponent/src/main/ets/components/mine/follow/FollowThirdTabsComponent.ets
sight_harmony/features/wdComponent/src/main/ets/components/mine/home/HomePageBottomFollowComponent.ets
sight_harmony/features/wdComponent/src/main/ets/components/mine/message/MessageListItemUI.ets
sight_harmony/features/wdComponent/src/main/ets/components/mine/message/MessageListUI.ets
sight_harmony/features/wdComponent/src/main/ets/components/page/MyCollectionListPage.ets
sight_harmony/features/wdComponent/src/main/ets/components/reusable/CustomTitleAndEditUI.ets
sight_harmony/features/wdComponent/src/main/ets/components/mine/appointment/AppointmentListChildComponent.ets
View file @
abf95f8
...
...
@@ -40,25 +40,25 @@ export struct AppointmentListChildComponent {
.aspectRatio(16 / 9)
.objectFit(ImageFit.Auto)
.interpolation(ImageInterpolation.High)
.borderRadius({
topLeft: 4,
topRight: 4
})
if (this.item.status == "wait") {
Row() {
Row() {
Image($r('app.media.reserve_icon'))
// .width('27lpx')
.width(27)
// .height('27lpx')
.height(27)
.width(14)
.height(14)
.objectFit(ImageFit.Auto)
.interpolation(ImageInterpolation.High)
// .margin({right:"6lpx"})
.margin({right: 6})
.margin({right: 3})
Text("预约")
.fontWeight(400)
// .fontSize('23lpx')
.fontSize(23)
.fontSize(12)
.textShadow({
radius: 2,
color: `rgba(0,0,0,0.3)`,
...
...
@@ -66,15 +66,11 @@ export struct AppointmentListChildComponent {
offsetX:0
})
.fontColor($r('app.color.white'))
// .lineHeight('31lpx')
.lineHeight(31)
.lineHeight(16)
.layoutWeight(1)
.textAlign(TextAlign.Start)
}
// .width('94lpx')
.width(94)
// .margin({ bottom: '15lpx', right: '15lpx' })
.margin({ bottom: 15, right: 15 })
.margin({ bottom: 8, right: 8 })
.alignItems(VerticalAlign.Center)
}.width('100%')
.height('100%')
...
...
@@ -82,22 +78,17 @@ export struct AppointmentListChildComponent {
.justifyContent(FlexAlign.End)
}
}.width('100%')
// .height('376lpx')
.height(376)
.height(196)
Column() {
Text(this.item.title)
// .fontWeight('400lpx')
.fontWeight(400)
// .fontSize('33lpx')
.fontSize(33)
.fontSize(17)
.fontColor($r('app.color.color_222222'))
// .lineHeight('48lpx')
.lineHeight(48)
.lineHeight(25)
.maxLines(2)
.textOverflow({ overflow: TextOverflow.Ellipsis })
// .margin({ bottom: '23lpx' })
.margin({ bottom: 23 })
.margin({ bottom: 12 })
.textAlign(TextAlign.Start)
.width('100%')
Row() {
...
...
@@ -106,144 +97,105 @@ export struct AppointmentListChildComponent {
Image($r('app.media.play_status_history_icon'))
.objectFit(ImageFit.Auto)
.interpolation(ImageInterpolation.High)
// .width('38lpx')
.width(38)
// .height('38lpx')
.height(38)
// .margin({ right: '12lpx' })
.margin({ right: 12 })
.width(20)
.height(20)
.margin({ right: 6 })
Text('已结束').fontColor($r('app.color.color_999999'))
// .fontWeight('500lpx')
.fontWeight(500)
// .fontSize('23lpx')
.fontSize(23)
.fontSize(12)
.lineHeight(16)
}else if(this.item.status == "running"){
Image($r('app.media.play_status_icon'))
.objectFit(ImageFit.Auto)
.interpolation(ImageInterpolation.High)
// .width('38lpx')
.width(38)
// .height('38lpx')
.height(38)
// .margin({ right: '12lpx' })
.margin({ right: 12 })
Text('已开始').fontColor($r('app.color.color_999999'))
// .fontWeight('500lpx')
.width(20)
.height(20)
.margin({ right: 6 })
Text('已开始').fontColor($r('app.color.color_ED2800'))
.fontWeight(500)
// .fontSize('23lpx')
.fontSize(23)
.fontSize(12)
.lineHeight(16)
} else {
Image($r('app.media.play_status_icon'))
.objectFit(ImageFit.Auto)
.interpolation(ImageInterpolation.High)
// .width('38lpx')
.width(38)
// .height('38lpx')
.height(38)
// .margin({ right: '12lpx' })
.margin({ right: 12 })
.width(20)
.height(20)
.margin({ right: 6 })
Text(this.item.timePre).fontColor($r('app.color.color_ED2800'))
// .fontWeight('500lpx')
.fontWeight(500)
// .fontSize('23lpx')
.fontSize(23)
.fontSize(12)
.lineHeight(16)
Image($r('app.media.point_icon'))
.objectFit(ImageFit.Auto)
.interpolation(ImageInterpolation.High)
// .width('12lpx')
.width(12)
// .height('31lpx')
.height(31)
// .margin({ right: '4lpx' })
.margin({ right: 4 })
.width(6)
.height(16)
.margin({ right: 2 })
Text(`${this.item.timeBack}开始`).fontColor($r('app.color.color_ED2800'))
// .fontWeight('500lpx')
.fontWeight(500)
// .fontSize('23lpx')
.fontSize(23)
// .lineHeight('31lpx')
.lineHeight(31)
.fontSize(12)
.lineHeight(16)
}
}
// .padding({ left: '19lpx', right: '19lpx' })
.padding({ left: 19, right: 19 })
// .height('46lpx')
.height(46)
.height(24)
.width(82)
.padding({ left: 10, right: 10})
.alignItems(VerticalAlign.Center)
.backgroundColor($r('app.color.color_F5F5F5'))
// .borderRadius('4lpx')
.borderRadius(4)
.borderRadius(2)
Blank()
.layoutWeight(1)
if (this.item.status === "wait") {
Text(this.item.isAppointment ? "已预约" : "预约")
.fontWeight(400)
// .fontSize('23lpx')
.fontSize(23)
.fontSize(12)
.backgroundColor(this.item.isAppointment ? $r('app.color.color_F5F5F5') : $r('app.color.color_ED2800'))
.fontColor(this.item.isAppointment ? $r('app.color.color_CCCCCC') : $r('app.color.white'))
// .lineHeight('31lpx')
.lineHeight(31)
.lineHeight(18)
.textAlign(TextAlign.Center)
// .width('100lpx')
.width(100)
// .height('46lpx')
.height(46)
// .borderRadius('6lpx')
.borderRadius(6)
.width(52)
.height(24)
.borderRadius(3)
.onClick(() => {
this.dialogController.open()
})
}else if(this.item.status == "running"){
Text("去观看" )
.fontWeight(400)
// .fontSize('23lpx')
.fontSize(23)
.fontSize(12)
.backgroundColor($r('app.color.color_ED2800'))
.fontColor($r('app.color.white'))
// .lineHeight('31lpx')
.lineHeight(31)
.lineHeight(18)
.textAlign(TextAlign.Center)
// .width('100lpx')
.width(100)
// .height('46lpx')
.height(46)
// .borderRadius('6lpx')
.borderRadius(6)
.width(52)
.height(24)
.borderRadius(3)
} else {
Text("看回放")
.fontWeight(400)
// .fontSize('23lpx')
.fontSize(23)
.fontSize(12)
.backgroundColor($r('app.color.color_ED2800'))
.fontColor($r('app.color.white'))
// .lineHeight('31lpx')
.lineHeight(31)
.lineHeight(18)
.textAlign(TextAlign.Center)
// .width('100lpx')
.width(100)
// .height('46lpx')
.height(46)
// .borderRadius('6lpx')
.borderRadius(6)
.width(52)
.height(24)
.borderRadius(3)
}
}
}
.padding({
// left: '23lpx',
left: 23,
// right: '23lpx',
right: 23,
// top: '15lpx',
top: 15,
// bottom: '23lpx'
bottom: 23
left: 12,
right: 12,
top: 8,
bottom: 12
})
}
.margin({ left: 10, right: 10 })
}
.backgroundColor($r('app.color.white'))
// .borderRadius('8lpx')
.borderRadius(8)
.borderRadius(4)
.margin({top: 8})
// }
}
...
...
sight_harmony/features/wdComponent/src/main/ets/components/mine/appointment/AppointmentListUI.ets
View file @
abf95f8
...
...
@@ -140,8 +140,7 @@ export struct AppointmentListUI {
.cachedCount(4)
.scrollBar(BarState.Off)
.edgeEffect(EdgeEffect.None)
// .margin({ top: '23lpx', left: '23lpx', right: '23lpx'})
.margin({ top: 23, left: 23, right: 23})
.margin({ top: 4, left: 12, right: 12})
.layoutWeight(1)
}
...
...
sight_harmony/features/wdComponent/src/main/ets/components/mine/follow/FollowChildComponent.ets
View file @
abf95f8
...
...
@@ -64,6 +64,7 @@ export struct FollowChildComponent{
.fontSize(12)
.fontWeight(400)
.lineHeight(16)
.margin({bottom: 4})
Text(`${this.data.introduction}`)
.fontColor($r('app.color.color_B0B0B0'))
...
...
@@ -149,7 +150,7 @@ export struct FollowChildComponent{
.alignItems(VerticalAlign.Top)
}
.height(
`${this.columnHeight}`
)
.height(
105
)
.justifyContent(FlexAlign.Start)
Divider()
...
...
sight_harmony/features/wdComponent/src/main/ets/components/mine/follow/FollowFirstTabsComponent.ets
View file @
abf95f8
...
...
@@ -54,26 +54,18 @@ export struct FollowFirstTabsComponent{
@Builder TabBuilder(index: number, item: FollowListItem) {
Stack(){
Text(item.directoryName)
// .height('38lpx')
.height(38)
// .fontSize('33lpx')
.fontSize(33)
.fontSize(18)
.fontWeight(this.currentIndex === index ? 600 : 400)
.fontColor(this.currentIndex === index ? this.selectedFontColor : this.fontColor)
// .lineHeight('38lpx')
.lineHeight(38)
.lineHeight(20)
if(this.currentIndex === index){
Divider()
// .width('31lpx')
.width(31)
// .height('4lpx')
.height(4)
.width(16)
.height(2)
.color('#ED2800')
// .strokeWidth('4lpx')
.strokeWidth(4)
// .margin({top:'50lpx'})
.margin({top: 50})
.strokeWidth(2)
.margin({top: 35})
.id("divTag")
}
}.onClick(()=>{
...
...
@@ -83,10 +75,7 @@ export struct FollowFirstTabsComponent{
trackTabFirstClick(item.directoryName)
})
.height('100%')
// .margin({right:'9lpx'})
.margin({right: 9})
// .padding({left:'31lpx',right:index === this.data.length-1?"31lpx":"0lpx"})
.padding({left: 31,right:index === this.data.length-1 ? 31 : 0})
.padding({left: 16,right:index === this.data.length-1 ? 16 : 0})
}
build() {
...
...
@@ -111,8 +100,7 @@ export struct FollowFirstTabsComponent{
}.listDirection(Axis.Horizontal)
.backgroundColor($r('app.color.white'))
.width("100%")
.height(84)
// .height("84lpx")
.height(44)
.edgeEffect(EdgeEffect.None)
.scrollBar(BarState.Off)
...
...
sight_harmony/features/wdComponent/src/main/ets/components/mine/follow/FollowListDetailUI.ets
View file @
abf95f8
...
...
@@ -99,14 +99,12 @@ export struct FollowListDetailUI {
ListItem() {
ListHasNoMoreDataUI()
}
// .margin({bottom:"40lpx"})
.margin({bottom: 40})
.margin({bottom: 20})
}
}
.edgeEffect(EdgeEffect.None)
.cachedCount(5)
// .padding({ left: '31lpx', right: '31lpx' })
.padding({ left: 31, right: 31 })
.padding({ left: 16, right: 16 })
.layoutWeight(1)
.scrollBar(BarState.Off)
.onReachEnd(() => {
...
...
sight_harmony/features/wdComponent/src/main/ets/components/mine/follow/FollowSecondTabsComponent.ets
View file @
abf95f8
...
...
@@ -18,7 +18,6 @@ export struct FollowSecondTabsComponent{
Column(){
Text().backgroundColor($r('app.color.color_EDEDED'))
.width('100%')
// .height('2lpx')
.height(2)
if(this.data != null){
...
...
@@ -94,25 +93,19 @@ export struct FollowSecondTabsComponent{
Column(){
Text(item.directoryName)
.width('100%')
// .height('38lpx')
.height(38)
// .fontSize('30lpx')
.fontSize(30)
.fontSize(14)
.textAlign(TextAlign.Center)
.fontWeight(this.currentIndex === index ? 600 : 400)
.fontColor(this.currentIndex === index ? this.selectedFontColor : this.fontColor)
// .lineHeight('38lpx')
.lineHeight(38)
.lineHeight(22)
}
.onClick(()=>{
this.currentIndex = index
this.swiperController.changeIndex(this.currentIndex)
})
.justifyContent(FlexAlign.Center)
// .height('84lpx')
.height(84)
// .width('140lpx')
.width(140)
.height(50)
.width(80)
.backgroundColor(this.currentIndex === index?$r('app.color.white'):$r('app.color.color_F9F9F9'))
}
...
...
sight_harmony/features/wdComponent/src/main/ets/components/mine/follow/FollowThirdTabsComponent.ets
View file @
abf95f8
...
...
@@ -29,22 +29,22 @@ export struct FollowThirdTabsComponent{
Column(){
Row(){
Image(index === 0?$r("app.media.ic_collect_left_left"):(index === this.data[this.firstIndex].children[this.secondIndex].children.length-1?$r('app.media.ic_collect_right_left'):$r('app.media.ic_collect_mid_left')))
.width(index === 0?"19lpx":"35lpx")
.height('61lpx')
.width(index === 0? 10 : 18)
.height(32)
.objectFit(ImageFit.Fill)
Text(item.directoryName)
.fontSize(
'27lpx'
)
.fontSize(
14
)
.fontWeight(this.currentIndex === index ? 600 : 400)
.fontColor(this.currentIndex === index ? this.selectedFontColor : this.fontColor)
.lineHeight(
'35lpx'
)
.lineHeight(
18
)
.backgroundImage($r('app.media.ic_collect_mid'))
.backgroundImageSize(ImageSize.Cover)
.padding({top:
"13lpx",bottom:"13lpx"
})
.padding({top:
7,bottom:7
})
Image(index === 0?$r("app.media.ic_collect_left_right"):(index === this.data[this.firstIndex].children[this.secondIndex].children.length-1?$r('app.media.ic_collect_right_right'):$r('app.media.ic_collect_mid_right')))
.width(index === this.data[this.firstIndex].children[this.secondIndex].children.length-1?"19lpx":"35lpx")
.height('61lpx')
.width(index === this.data[this.firstIndex].children[this.secondIndex].children.length-1 ? 10 : 18)
.height(32)
.objectFit(ImageFit.Fill)
}
}
...
...
@@ -53,8 +53,8 @@ export struct FollowThirdTabsComponent{
this.swiperController.changeIndex(this.currentIndex)
this.listScroller.scrollToIndex(index, true, ScrollAlign.CENTER)
})
.offset({x:index === 0?"0lpx":"-5lpx"})
.height('80lpx')
.offset({x: -5})
.height(84)
.justifyContent(FlexAlign.End)
}
...
...
@@ -76,10 +76,8 @@ export struct FollowThirdTabsComponent{
.scrollBar(BarState.Off)
.listDirection(Axis.Horizontal)
.width('100%')
// .height("84lpx")
.height(84)
// .padding({left:'31lpx',right:'48lpx'})
.padding({left: 31,right: 48})
.padding({left: 16,right: 25})
// Column() {
// // 页签
...
...
sight_harmony/features/wdComponent/src/main/ets/components/mine/home/HomePageBottomFollowComponent.ets
View file @
abf95f8
...
...
@@ -84,6 +84,7 @@ export struct HomePageBottomFollowComponent {
}
Row() {
Row(){
Text("关注更多人民号")
.fontWeight(400)
.fontColor($r('app.color.color_222222'))
...
...
@@ -96,12 +97,13 @@ export struct HomePageBottomFollowComponent {
.width(14)
.height(14)
}
.backgroundColor($r('app.color.color_F5F5F5'))
.height(36)
.width(343
)
.width('100%'
)
.alignItems(VerticalAlign.Center)
.justifyContent(FlexAlign.Center)
.backgroundColor($r('app.color.color_F5F5F5'))
.margin({ top: 10, bottom: 2 })
}
.margin({ top: 10, bottom: 2, left: 16, right: 16})
.onClick(() => {
let params = { 'index': "1" } as Record<string, string>
WDRouterRule.jumpWithPage(WDRouterPage.followListPage, params)
...
...
@@ -158,11 +160,11 @@ export struct HomePageBottomFollowComponent {
.height(14)
}
.height(36)
.width(
343
)
.width(
'100%'
)
.alignItems(VerticalAlign.Center)
.justifyContent(FlexAlign.Center)
.backgroundColor($r('app.color.color_F5F5F5'))
.margin({ top: 10, bottom: 2
})
.margin({ top: 10, bottom: 2})
}.onClick(() => {
let params = { 'index': "1" } as Record<string, string>
WDRouterRule.jumpWithPage(WDRouterPage.followListPage, params)
...
...
sight_harmony/features/wdComponent/src/main/ets/components/mine/message/MessageListItemUI.ets
View file @
abf95f8
...
...
@@ -15,91 +15,72 @@ export struct MessageListItemUI {
Row() {
Image(this.item.imgSrc)
.objectFit(ImageFit.Auto)
// .width('92lpx')
.width(92)
// .height('92lpx')
.height(92)
// .margin({ right: '15lpx' })
.margin({ right: 15 })
.width(48)
.height(48)
.margin({ right: 8 })
Column() {
Text(this.item.title)
.fontWeight(500)
// .fontSize('31lpx')
.fontSize(31)
// .lineHeight('42lpx')
.lineHeight(42)
.fontSize(16)
.lineHeight(22)
.fontColor($r('app.color.color_222222'))
.maxLines(1)
// .margin({ bottom: StringUtils.isNotEmpty(this.item.desc)?'8lpx':0 })
.margin({ bottom: StringUtils.isNotEmpty(this.item.desc) ? 8 : 0 })
.margin({ bottom: StringUtils.isNotEmpty(this.item.desc) ? 4 : 0 })
if(StringUtils.isNotEmpty(this.item.desc)){
Text(`${this.item.desc}`)
.fontColor($r('app.color.color_999999'))
// .fontSize('27lpx')
.fontSize(27)
// .lineHeight('38lpx')
.lineHeight(38)
.fontSize(14)
.lineHeight(20)
.fontWeight(400)
.maxLines(1)
.textOverflow({ overflow: TextOverflow.Ellipsis })
}
}
// .height('92lpx')
.height(92)
.layoutWeight(1)
.alignItems(HorizontalAlign.Start)
.justifyContent(StringUtils.isNotEmpty(this.item.desc)?FlexAlign.Start:FlexAlign.Center)
.height(46)
}.layoutWeight(1)
Column() {
Text(`${this.item.time}`)
.fontColor($r('app.color.color_999999'))
// .fontSize('23lpx')
.fontSize(23)
.fontWeight(500)
// .lineHeight('35lpx')
.lineHeight(35)
// .margin({ bottom: this.item.unReadCount > 0 ?'8lpx':0 })
.margin({ bottom: this.item.unReadCount > 0 ? 8 : 0 })
.fontSize(14)
.fontWeight(400)
.lineHeight(20)
.margin({ bottom: this.item.unReadCount > 0 ? 4 : 0 })
if(this.item.unReadCount > 0){
Button(){
Text(`${this.item.unReadCount}`)
.fontWeight(400)
// .fontSize("18lpx")
.fontSize(18)
.fontSize(14)
.fontColor($r('app.color.white'))
}
.type((this.item.unReadCount>0 && this.item.unReadCount < 10 ? ButtonType.Circle:ButtonType.Capsule))
.backgroundColor($r("app.color.color_ED2800"))
.stateEffect(false)
// .height("27lpx")
.height(27)
// .constraintSize({minWidth:"27lpx"})
.constraintSize({minWidth: 27})
.height(16)
.constraintSize({minWidth: 16})
}
}
.justifyContent(FlexAlign.Start)
.alignItems(HorizontalAlign.End)
// .height('92lpx')
.height(92)
.height(46)
}
.width('100%')
// .height('92lpx')
.height(92)
.height(46)
.justifyContent(FlexAlign.SpaceBetween)
}
// .height('154lpx')
.height(154)
.height(80)
.width("100%")
.justifyContent(FlexAlign.Center)
Text().backgroundColor($r('app.color.color_EDEDED'))
.width('100%')
// .height('1lpx')
.height(1)
.visibility(this.index != 3 ?Visibility.Visible:Visibility.None)
}
...
...
sight_harmony/features/wdComponent/src/main/ets/components/mine/message/MessageListUI.ets
View file @
abf95f8
...
...
@@ -180,7 +180,7 @@ export struct MessageListUI {
ListItem() {
MessageListItemUI({ item: item, index: index })
}
.padding({ left:
"31lpx", right: "31lpx"
})
.padding({ left:
16, right: 16
})
.onClick(() => {
this.messageCenterCommonButtonTracking(index)
switch (index) {
...
...
@@ -202,7 +202,7 @@ export struct MessageListUI {
break;
}
})
.height(
'154lpx'
)
.height(
80
)
.width("100%")
})
}
...
...
sight_harmony/features/wdComponent/src/main/ets/components/page/MyCollectionListPage.ets
View file @
abf95f8
...
...
@@ -148,6 +148,10 @@ struct MyCollectionListPage {
.scrollBar(BarState.Off)
.height(CommonConstants.FULL_PARENT)
.edgeEffect(EdgeEffect.None) // 必须设置列表为滑动到边缘无效果
.margin({
left: 16,
right: 16
})
}
@Builder
...
...
@@ -159,7 +163,7 @@ struct MyCollectionListPage {
selectCallback:(isOn)=>{
this.addCompDTO(isOn,compDTO)
}
}).margin({
left:
16})
}).margin({
right:
16})
}
Column() {
BigPicCardComponent({compDTO:new CompDTO,contentDTO:compDTO,pageId:TrackConstants.PageName.My_Collect,pageName:TrackConstants.PageName.My_Collect})
...
...
sight_harmony/features/wdComponent/src/main/ets/components/reusable/CustomTitleAndEditUI.ets
View file @
abf95f8
...
...
@@ -13,10 +13,8 @@ export struct CustomTitleAndEditUI {
//标题栏目
if(this.imgBack){
Image($r('app.media.back_icon'))
// .width('46lpx')
.width(46)
// .height('46lpx')
.height(46)
.width(24)
.height(24)
.objectFit(ImageFit.Auto)
.interpolation(ImageInterpolation.High)
.id("back_icon")
...
...
@@ -24,24 +22,19 @@ export struct CustomTitleAndEditUI {
center: {anchor: "__container__", align: VerticalAlign.Center},
left: {anchor: "__container__", align: HorizontalAlign.Start}
})
// .margin({left:'31lpx'})
.margin({left: 31})
.margin({left: 16})
.onClick(()=>{
router.back()
})
}
Text(this.titleName)
// .height('42lpx')
.height(42)
.maxLines(1)
.id("title")
// .fontSize('35lpx')
.fontSize(35)
.fontWeight(400)
.fontSize(18)
.fontWeight(500)
.fontColor($r('app.color.color_222222'))
// .lineHeight('42lpx')
.lineHeight(42)
.lineHeight(26)
.alignRules({
center: {anchor: "__container__", align: VerticalAlign.Center},
middle: {anchor: "__container__", align: HorizontalAlign.Center}
...
...
@@ -51,22 +44,22 @@ export struct CustomTitleAndEditUI {
Button(this.isEditState === true?'取消':'编辑')
.type(ButtonType.Normal)
.fontColor($r('app.color.color_222222'))
.fontSize(16)
.height(20)
.backgroundColor(Color.White)
.id("edit_Button")
.alignRules({
center: {anchor: "__container__", align: VerticalAlign.Center},
right: {anchor: "__container__", align: HorizontalAlign.End}
})
// .margin({right:'31lpx'})
.margin({right: 31})
.margin({right: 16})
.onClick(()=>{
this.isEditState = !this.isEditState
this.editCallback()
})
}
}
// .height('84lpx')
.height(84)
.height(44)
.width('100%')
.backgroundColor($r('app.color.white'))
...
...
Please
register
or
login
to post a comment