yangchenggong1_wd

fix |> 20384 隐私政策和用户协议,左上角的返回按钮下方缺少分割线

@@ -5,8 +5,10 @@ export struct CustomTitleUI { @@ -5,8 +5,10 @@ export struct CustomTitleUI {
5 imgBack:boolean = true 5 imgBack:boolean = true
6 titleName:ResourceStr = "默认标题" 6 titleName:ResourceStr = "默认标题"
7 @Prop percent:number = 1 7 @Prop percent:number = 1
  8 + isShowBottomLine:boolean = false
8 9
9 build() { 10 build() {
  11 + Column(){
10 RelativeContainer() { 12 RelativeContainer() {
11 //标题栏目 13 //标题栏目
12 if(this.imgBack){ 14 if(this.imgBack){
@@ -43,6 +45,13 @@ export struct CustomTitleUI { @@ -43,6 +45,13 @@ export struct CustomTitleUI {
43 .height(44) 45 .height(44)
44 .width('100%') 46 .width('100%')
45 .backgroundColor($r('app.color.white')) 47 .backgroundColor($r('app.color.white'))
  48 +
  49 + if(this.isShowBottomLine){
  50 + Text().backgroundColor($r('app.color.color_EDEDED'))
  51 + .width('100%')
  52 + .height(1)
  53 + }
  54 + }
46 } 55 }
47 56
48 calcHeight(value:number): number{ 57 calcHeight(value:number): number{
@@ -70,7 +70,12 @@ struct LoginProtocolWebview { @@ -70,7 +70,12 @@ struct LoginProtocolWebview {
70 } 70 }
71 .alignItems(VerticalAlign.Center) 71 .alignItems(VerticalAlign.Center)
72 .width('100%') 72 .width('100%')
73 - .height(44) 73 + .height(43)
  74 +
  75 + Text().backgroundColor("#EDEDED")
  76 + .width('100%')
  77 + .height(1)
  78 +
74 if(this.isConnectNetwork){ 79 if(this.isConnectNetwork){
75 Web({ src: this.webUrl, controller: this.webviewController }) 80 Web({ src: this.webUrl, controller: this.webviewController })
76 .backgroundColor(Color.White) 81 .backgroundColor(Color.White)