陈剑华

Merge remote-tracking branch 'origin/main'

@@ -54,7 +54,6 @@ export class BridgeWebViewControl extends webview.WebviewController { @@ -54,7 +54,6 @@ export class BridgeWebViewControl extends webview.WebviewController {
54 * 刷新消息 54 * 刷新消息
55 */ 55 */
56 flushMessageQueue() { 56 flushMessageQueue() {
57 - hilog.error(0xFF00, TAG, 'flushMessageQueue');  
58 this.loadUrlCustom(BridgeUtil.JS_FETCH_QUEUE_FROM_JAVA, (data: string) => { 57 this.loadUrlCustom(BridgeUtil.JS_FETCH_QUEUE_FROM_JAVA, (data: string) => {
59 let list: Array<Message> = JSON.parse(data) 58 let list: Array<Message> = JSON.parse(data)
60 if (list == null || list.length == 0) { 59 if (list == null || list.length == 0) {
@@ -105,6 +104,53 @@ export class BridgeWebViewControl extends webview.WebviewController { @@ -105,6 +104,53 @@ export class BridgeWebViewControl extends webview.WebviewController {
105 104
106 } 105 }
107 106
  107 + receiveDataFromH5(url: string) {
  108 +
  109 + if (!url.startsWith(BridgeUtil.YY_OVERRIDE_SCHEMA)) {
  110 + return
  111 + }
  112 + let functionName: string = url.replace('yy://__QUEUE_MESSAGE__/', '');
  113 + let value:Message = JSON.parse(functionName)
  114 + let responseId: string = value.responseId
  115 + // 是否是response CallBackFunction,收到消息,
  116 + if (StringUtils.isNotEmpty(responseId)) {
  117 + let call: Callback = this.responseCallbacks.get(responseId)
  118 + let responseData: string = value.responseData;
  119 + if (StringUtils.isEmpty(responseData) || call === undefined) {
  120 + return
  121 + }
  122 + call(responseData)
  123 + this.responseCallbacks.remove(responseId)
  124 + } else {
  125 + let responseFunction: Callback;
  126 + let callbackId: string = value.callbackId
  127 + let handlerName: string = value.handlerName
  128 + if (StringUtils.isNotEmpty(callbackId)) {
  129 + responseFunction = (data: string) => {
  130 + let msg: CallBackMessage = new CallBackMessage()
  131 + msg.responseId = callbackId
  132 + msg.responseData = data
  133 + msg.handlerName = handlerName
  134 + this.queueMessage(msg)
  135 + }
  136 + } else {
  137 + responseFunction = (data: string) => {
  138 + //TODO 更换log输出方式
  139 + // Logger.info(TAG, `default response:: ${data}`);
  140 + }
  141 + }
  142 + let handle: BridgeHandler
  143 + if (StringUtils.isNotEmpty(value.handlerName)) {
  144 + handle = this.messageHandlers.get(value.handlerName)
  145 + } else {
  146 + handle = new DefaultBridgeHandler()
  147 + }
  148 + if (handle != undefined && value.data != undefined) {
  149 + handle.handle(value, responseFunction)
  150 + }
  151 + }
  152 + }
  153 +
108 private queueMessage(msg: CallBackMessage) { 154 private queueMessage(msg: CallBackMessage) {
109 // //TODO 155 // //TODO
110 this.dispatchMessage(msg); 156 this.dispatchMessage(msg);
@@ -134,6 +134,7 @@ export struct WdWebComponent { @@ -134,6 +134,7 @@ export struct WdWebComponent {
134 if (url.startsWith(BridgeUtil.YY_OVERRIDE_SCHEMA)) { 134 if (url.startsWith(BridgeUtil.YY_OVERRIDE_SCHEMA)) {
135 Logger.debug(TAG, 'flushMessageQueue'); 135 Logger.debug(TAG, 'flushMessageQueue');
136 this.webviewControl.flushMessageQueue() 136 this.webviewControl.flushMessageQueue()
  137 + // this.webviewControl.receiveDataFromH5(url)
137 return true 138 return true
138 } 139 }
139 if (url.includes(BridgeUtil.BRIDGE_LOADED_MSG)) { 140 if (url.includes(BridgeUtil.BRIDGE_LOADED_MSG)) {
@@ -99,8 +99,9 @@ export struct WdWebLocalComponent { @@ -99,8 +99,9 @@ export struct WdWebLocalComponent {
99 return true 99 return true
100 } 100 }
101 if (url.startsWith(BridgeUtil.YY_OVERRIDE_SCHEMA)) { 101 if (url.startsWith(BridgeUtil.YY_OVERRIDE_SCHEMA)) {
102 - Logger.debug(TAG, 'flushMessageQueue');  
103 - this.webviewControl.flushMessageQueue() 102 + Logger.debug(TAG, 'flushMessageQueue:'+url);
  103 + // this.webviewControl.flushMessageQueue()
  104 + this.webviewControl.receiveDataFromH5(url)
104 return true 105 return true
105 } 106 }
106 return this.onLoadIntercept(event.data.getRequestUrl().toString()); 107 return this.onLoadIntercept(event.data.getRequestUrl().toString());
@@ -147,6 +148,8 @@ export struct WdWebLocalComponent { @@ -147,6 +148,8 @@ export struct WdWebLocalComponent {
147 148
148 //webview 高度设置 149 //webview 高度设置
149 private setCurrentPageOperate8: (data: Message) => void = (data) => { 150 private setCurrentPageOperate8: (data: Message) => void = (data) => {
  151 +
  152 + Logger.debug('setCurrentPageOperate8: ' + data?.data?.webViewHeight)
150 if (data.handlerName === H5CallNativeType.jsCall_currentPageOperate && data?.data?.operateType === '8') { 153 if (data.handlerName === H5CallNativeType.jsCall_currentPageOperate && data?.data?.operateType === '8') {
151 if (typeof this.webHeight === 'number') { 154 if (typeof this.webHeight === 'number') {
152 if (Number(data?.data?.webViewHeight) > this.webHeight) { 155 if (Number(data?.data?.webViewHeight) > this.webHeight) {
@@ -96,21 +96,16 @@ export default struct MinePageUserSimpleInfoUI { @@ -96,21 +96,16 @@ export default struct MinePageUserSimpleInfoUI {
96 }) 96 })
97 97
98 if (this.levelId !== 0){ 98 if (this.levelId !== 0){
99 - Stack(){  
100 - Image($r('app.media.mine_grade_bg'))  
101 - .width(44)  
102 - .height(15)  
103 - .objectFit(ImageFit.Auto)  
104 - Text(`等级${this.levelId}`)  
105 - .fontFamily('PingFang SC-Semibold')  
106 - .fontWeight(600)  
107 - .textAlign(TextAlign.Center)  
108 - .fontColor($r('app.color.white'))  
109 - .fontSize(10)  
110 - .width(this.levelId > 9 ? 35: 26)  
111 - .lineHeight(15)  
112 - }  
113 - .margin({top: 10}) 99 + Text(`等级${this.levelId}`)
  100 + .fontColor(Color.White)
  101 + .fontFamily('PingFang SC-Semibold')
  102 + .fontSize(10)
  103 + .fontWeight(600)
  104 + .margin({ left: 6 })
  105 + .backgroundImage($r("app.media.mine_grade_bg"))
  106 + .backgroundImageSize(ImageSize.FILL)
  107 + .padding({left: 6,right: 6})
  108 + .height(16)
114 } 109 }
115 } 110 }
116 .alignItems(HorizontalAlign.Start) 111 .alignItems(HorizontalAlign.Start)
@@ -7,11 +7,13 @@ export struct FollowSecondTabsComponent{ @@ -7,11 +7,13 @@ export struct FollowSecondTabsComponent{
7 @Link data:FollowListItem[] 7 @Link data:FollowListItem[]
8 @State firstIndex:number = 0 8 @State firstIndex:number = 0
9 @State currentIndex: number = 0 9 @State currentIndex: number = 0
  10 + @Prop LeftTab:number = 0 //监听tab变化,重置列表tabIndex = 0
10 private swiperController: SwiperController = new SwiperController() 11 private swiperController: SwiperController = new SwiperController()
11 fontColor: string = '#000000' 12 fontColor: string = '#000000'
12 selectedFontColor: string = '#ED2800' 13 selectedFontColor: string = '#ED2800'
13 14
14 aboutToAppear(){ 15 aboutToAppear(){
  16 +
15 } 17 }
16 18
17 build(){ 19 build(){
@@ -76,7 +78,7 @@ export struct FollowSecondTabsComponent{ @@ -76,7 +78,7 @@ export struct FollowSecondTabsComponent{
76 78
77 Swiper(this.swiperController ) { 79 Swiper(this.swiperController ) {
78 ForEach(this.data[this.firstIndex].children, (item: FollowSecondListItem, index: number ) => { 80 ForEach(this.data[this.firstIndex].children, (item: FollowSecondListItem, index: number ) => {
79 - FollowThirdTabsComponent({data:$data,firstIndex:$firstIndex,secondIndex:index}) 81 + FollowThirdTabsComponent({data:$data,firstIndex:$firstIndex,secondIndex:index,LeftTab:this.LeftTab})
80 }, (item: FollowListItem, index: number) => index.toString()) 82 }, (item: FollowListItem, index: number) => index.toString())
81 } 83 }
82 .loop(false) 84 .loop(false)
@@ -102,6 +104,7 @@ export struct FollowSecondTabsComponent{ @@ -102,6 +104,7 @@ export struct FollowSecondTabsComponent{
102 .onClick(()=>{ 104 .onClick(()=>{
103 this.currentIndex = index 105 this.currentIndex = index
104 this.swiperController.changeIndex(this.currentIndex) 106 this.swiperController.changeIndex(this.currentIndex)
  107 + this.LeftTab = Math.random()
105 }) 108 })
106 .justifyContent(FlexAlign.Center) 109 .justifyContent(FlexAlign.Center)
107 .height(50) 110 .height(50)
@@ -10,11 +10,21 @@ export struct FollowThirdTabsComponent{ @@ -10,11 +10,21 @@ export struct FollowThirdTabsComponent{
10 @Link firstIndex: number 10 @Link firstIndex: number
11 @State secondIndex:number = -1 11 @State secondIndex:number = -1
12 12
  13 + @Watch('LeftTabChange') @Prop LeftTab : number
13 private swiperController: SwiperController = new SwiperController() 14 private swiperController: SwiperController = new SwiperController()
14 private listScroller: Scroller = new Scroller() 15 private listScroller: Scroller = new Scroller()
15 fontColor: string = '#666666' 16 fontColor: string = '#666666'
16 selectedFontColor: string = '#222222' 17 selectedFontColor: string = '#222222'
17 18
  19 + ///重置界面选择
  20 + LeftTabChange(){
  21 + if (this.currentIndex != 0) {
  22 + this.currentIndex = 0
  23 + this.swiperController.changeIndex(this.currentIndex)
  24 + this.listScroller.scrollToIndex(this.currentIndex, true, ScrollAlign.CENTER)
  25 + }
  26 + }
  27 +
18 build(){ 28 build(){
19 if(this.data != null){ 29 if(this.data != null){
20 if(this.data[this.firstIndex].children[this.secondIndex].children == null || this.data[this.firstIndex].children[this.secondIndex].children.length == 0){ 30 if(this.data[this.firstIndex].children[this.secondIndex].children == null || this.data[this.firstIndex].children[this.secondIndex].children.length == 0){
@@ -25,6 +35,7 @@ export struct FollowThirdTabsComponent{ @@ -25,6 +35,7 @@ export struct FollowThirdTabsComponent{
25 } 35 }
26 } 36 }
27 37
  38 +
28 @Builder TabBuilder(index: number, item: FollowThirdListItem) { 39 @Builder TabBuilder(index: number, item: FollowThirdListItem) {
29 Column(){ 40 Column(){
30 Row(){ 41 Row(){
@@ -54,12 +65,10 @@ export struct FollowThirdTabsComponent{ @@ -54,12 +65,10 @@ export struct FollowThirdTabsComponent{
54 this.listScroller.scrollToIndex(index, true, ScrollAlign.CENTER) 65 this.listScroller.scrollToIndex(index, true, ScrollAlign.CENTER)
55 }) 66 })
56 .offset({x: -5}) 67 .offset({x: -5})
57 - .height(84) 68 + .height(40)
58 .justifyContent(FlexAlign.End) 69 .justifyContent(FlexAlign.End)
59 } 70 }
60 71
61 -  
62 -  
63 @Builder FollowThirdUI(){ 72 @Builder FollowThirdUI(){
64 73
65 Column(){ 74 Column(){
@@ -76,7 +85,7 @@ export struct FollowThirdTabsComponent{ @@ -76,7 +85,7 @@ export struct FollowThirdTabsComponent{
76 .scrollBar(BarState.Off) 85 .scrollBar(BarState.Off)
77 .listDirection(Axis.Horizontal) 86 .listDirection(Axis.Horizontal)
78 .width('100%') 87 .width('100%')
79 - .height(84) 88 + .height(40)
80 .padding({left: 16,right: 25}) 89 .padding({left: 16,right: 25})
81 90
82 // Column() { 91 // Column() {
@@ -107,7 +107,7 @@ export struct HomePageBottomCommentComponent { @@ -107,7 +107,7 @@ export struct HomePageBottomCommentComponent {
107 //没有更多数据 显示提示 107 //没有更多数据 显示提示
108 if (!this.hasMore) { 108 if (!this.hasMore) {
109 ListItem() { 109 ListItem() {
110 - ListHasNoMoreDataUI().height(this.bottomCompH > 100 ? this.bottomCompH :100) 110 + ListHasNoMoreDataUI().height(this.bottomCompH > 80 ? this.bottomCompH :80)
111 } 111 }
112 } 112 }
113 } 113 }
@@ -172,7 +172,7 @@ export struct HomePageBottomCommentComponent { @@ -172,7 +172,7 @@ export struct HomePageBottomCommentComponent {
172 parentCommentUserName)) 172 parentCommentUserName))
173 }) 173 })
174 174
175 - this.bottomCompH = DisplayUtils.getDeviceHeight() - data.length*180 175 + this.bottomCompH = DisplayUtils.getDeviceHeight() - data.length*160
176 if (status.commentIdList.length === 0) { 176 if (status.commentIdList.length === 0) {
177 177
178 if (this.curPageNum === 1) this.data_comment.clear() 178 if (this.curPageNum === 1) this.data_comment.clear()
@@ -4,29 +4,6 @@ var dpr = window.devicePixelRatio || 1 @@ -4,29 +4,6 @@ var dpr = window.devicePixelRatio || 1
4 var clientHeight = 0 4 var clientHeight = 0
5 var appFontSize = 'normalsize' 5 var appFontSize = 'normalsize'
6 6
7 -/* 判断设备类型 */  
8 -function judgTerminal() {  
9 - /* 返回当前的用户代理(User Agent)字符串 'Mozilla/5.0 (iPhone; CPU iPhone OS 13_2_3 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.0.3 Mobile/15E148 Safari/604.1' */  
10 - const u = navigator.userAgent  
11 - const isXiaomi = u.indexOf('XiaoMi') > -1 // 小米手机  
12 - const isAndroid = u.indexOf('Android') > -1 || u.indexOf('Linux') > -1 // 其它安卓  
13 - const isIOS = !!u.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/) // ios  
14 - const isHarmony = u.indexOf('ArkWeb') > -1  
15 - if (isAndroid) {  
16 - return 1  
17 - } else if (isIOS) {  
18 - if (isXiaomi) {  
19 - return 1  
20 - } else {  
21 - return 2  
22 - }  
23 - }else if (isHarmony){  
24 - return 2  
25 - }  
26 -  
27 - return 1  
28 -}  
29 -  
30 // adjust body font size 7 // adjust body font size
31 function setBodyFontSize() { 8 function setBodyFontSize() {
32 if (document && document.body) { 9 if (document && document.body) {
@@ -178,6 +178,7 @@ function judgTerminal() { @@ -178,6 +178,7 @@ function judgTerminal() {
178 const isXiaomi = u.indexOf('XiaoMi') > -1 // 小米手机 178 const isXiaomi = u.indexOf('XiaoMi') > -1 // 小米手机
179 const isAndroid = u.indexOf('Android') > -1 || u.indexOf('Linux') > -1 // 其它安卓 179 const isAndroid = u.indexOf('Android') > -1 || u.indexOf('Linux') > -1 // 其它安卓
180 const isIOS = !!u.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/) // ios 180 const isIOS = !!u.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/) // ios
  181 + const isHarmony = u.indexOf('ArkWeb') > -1 // 鸿蒙
181 if (isAndroid) { 182 if (isAndroid) {
182 return 1 183 return 1
183 } else if (isIOS) { 184 } else if (isIOS) {
@@ -186,6 +187,8 @@ function judgTerminal() { @@ -186,6 +187,8 @@ function judgTerminal() {
186 } else { 187 } else {
187 return 2 188 return 2
188 } 189 }
  190 + }else if (isHarmony){
  191 + return 2
189 } 192 }
190 193
191 return 1 194 return 1
@@ -11,7 +11,6 @@ export struct TabLiveItemComponent { @@ -11,7 +11,6 @@ export struct TabLiveItemComponent {
11 photoList: PhotoListBean[] = [] 11 photoList: PhotoListBean[] = []
12 12
13 aboutToAppear(): void { 13 aboutToAppear(): void {
14 -  
15 } 14 }
16 15
17 build() { 16 build() {
@@ -93,8 +92,9 @@ export struct TabLiveItemComponent { @@ -93,8 +92,9 @@ export struct TabLiveItemComponent {
93 if (this.item.pictureUrls.length > 1) { 92 if (this.item.pictureUrls.length > 1) {
94 Image(itemSub) 93 Image(itemSub)
95 .width(`${100 / this.item.pictureUrls.length}%`) 94 .width(`${100 / this.item.pictureUrls.length}%`)
96 - // .height(70)  
97 - .objectFit(ImageFit.Contain) 95 + .height(this.item.pictureUrls.length == 3 ? 57 : 87)
  96 + .objectFit(ImageFit.Cover)
  97 + .alt($r('app.media.cover_place_holder'))
98 .borderRadius(4) 98 .borderRadius(4)
99 } else { 99 } else {
100 Image(itemSub) 100 Image(itemSub)
@@ -102,6 +102,7 @@ export struct TabLiveItemComponent { @@ -102,6 +102,7 @@ export struct TabLiveItemComponent {
102 // .aspectRatio(this.getAspectRation()) 102 // .aspectRatio(this.getAspectRation())
103 // .height(177) 103 // .height(177)
104 .objectFit(ImageFit.Contain) 104 .objectFit(ImageFit.Contain)
  105 + .alt($r('app.media.cover_place_holder'))
105 .borderRadius(4) 106 .borderRadius(4)
106 } 107 }
107 }.onClick(() => { 108 }.onClick(() => {
@@ -109,10 +110,13 @@ export struct TabLiveItemComponent { @@ -109,10 +110,13 @@ export struct TabLiveItemComponent {
109 }) 110 })
110 }) 111 })
111 } 112 }
  113 + .enableScrollInteraction(false)
112 .listDirection(Axis.Horizontal) 114 .listDirection(Axis.Horizontal)
  115 + .scrollBar(BarState.Off)
113 .margin({ 116 .margin({
114 top: 8, 117 top: 8,
115 }) 118 })
  119 + .borderRadius(4)
116 } 120 }
117 //音频 121 //音频
118 else if (this.item.dataType === LiveMessageOptType.ZH_AUDIO_MSG) { 122 else if (this.item.dataType === LiveMessageOptType.ZH_AUDIO_MSG) {
@@ -8,7 +8,7 @@ import { @@ -8,7 +8,7 @@ import {
8 postInteractBrowsOperateParams 8 postInteractBrowsOperateParams
9 } from 'wdDetailPlayApi/src/main/ets/request/ContentDetailRequest'; 9 } from 'wdDetailPlayApi/src/main/ets/request/ContentDetailRequest';
10 import { HttpUtils } from 'wdNetwork/Index'; 10 import { HttpUtils } from 'wdNetwork/Index';
11 -import { DateTimeUtils, Logger, WindowModel } from 'wdKit/Index'; 11 +import { DateTimeUtils, EmitterEventId, EmitterUtils, Logger, WindowModel } from 'wdKit/Index';
12 import { PlayerBottomView } from '../view/PlayerBottomView'; 12 import { PlayerBottomView } from '../view/PlayerBottomView';
13 import { PlayerRightView } from '../view/PlayerRightView'; 13 import { PlayerRightView } from '../view/PlayerRightView';
14 import { DisplayDirection } from 'wdConstant/Index'; 14 import { DisplayDirection } from 'wdConstant/Index';
@@ -512,7 +512,11 @@ export struct DetailPlayShortVideoPage { @@ -512,7 +512,11 @@ export struct DetailPlayShortVideoPage {
512 WindowModel.shared.setPreferredOrientation(this.displayDirection == DisplayDirection.VERTICAL ? 512 WindowModel.shared.setPreferredOrientation(this.displayDirection == DisplayDirection.VERTICAL ?
513 window.Orientation.PORTRAIT : 513 window.Orientation.PORTRAIT :
514 window.Orientation.LANDSCAPE) 514 window.Orientation.LANDSCAPE)
515 - 515 + if (this.displayDirection === DisplayDirection.VERTICAL) {
  516 + EmitterUtils.sendEvent(EmitterEventId.FULL_SCREEN, 0)
  517 + } else {
  518 + EmitterUtils.sendEvent(EmitterEventId.FULL_SCREEN, 1)
  519 + }
516 520
517 }) 521 })
518 522
@@ -403,6 +403,8 @@ export struct DetailVideoListPage { @@ -403,6 +403,8 @@ export struct DetailVideoListPage {
403 // TODO:下拉刷新“努力加载中” 403 // TODO:下拉刷新“努力加载中”
404 if (!this.peopleShipHomeCreatorId) { 404 if (!this.peopleShipHomeCreatorId) {
405 this.queryVideoList() 405 this.queryVideoList()
  406 + } else {
  407 + this.getRmhPublishNexts(this.peopleShipHomeCreatorId, `${this.data[this.currentIndex].newsId}`, 1, 1, 10, systemDateTime.getTime(false));
406 } 408 }
407 // this.getRmhPublishNexts(this.peopleShipHomeCreatorId, this.contentId, 1, 1, 10, systemDateTime.getTime(false)); 409 // this.getRmhPublishNexts(this.peopleShipHomeCreatorId, this.contentId, 1, 1, 10, systemDateTime.getTime(false));
408 } 410 }
@@ -29,7 +29,7 @@ export struct BottomNavigationComponent { @@ -29,7 +29,7 @@ export struct BottomNavigationComponent {
29 @Provide bottomRectHeight: number = 0 29 @Provide bottomRectHeight: number = 0
30 private bottomRectHeight1: string = AppStorage.get<number>('bottomSafeHeight') + 'px'; 30 private bottomRectHeight1: string = AppStorage.get<number>('bottomSafeHeight') + 'px';
31 @Provide topRectHeight: number = 0 31 @Provide topRectHeight: number = 0
32 - @Provide isLayoutFullScreen: boolean = false 32 + @State isLayoutFullScreen: boolean = false
33 @Provide displayDirection: DisplayDirection = DisplayDirection.VERTICAL 33 @Provide displayDirection: DisplayDirection = DisplayDirection.VERTICAL
34 @Provide isImmersive: boolean = false // 是否开启沉浸式模式 http://192.168.1.3:3300/project/3802/interface/api/189229 34 @Provide isImmersive: boolean = false // 是否开启沉浸式模式 http://192.168.1.3:3300/project/3802/interface/api/189229
35 @Provide isNight: boolean = false // 是否开启夜间模式 35 @Provide isNight: boolean = false // 是否开启夜间模式
@@ -72,6 +72,13 @@ export struct BottomNavigationComponent { @@ -72,6 +72,13 @@ export struct BottomNavigationComponent {
72 this.changeBottomNav(assignChannel) 72 this.changeBottomNav(assignChannel)
73 } 73 }
74 }) 74 })
  75 + EmitterUtils.receiveEvent(EmitterEventId.FULL_SCREEN, (str?: string) => {
  76 + Logger.debug(TAG, 'receiveEvent FULL_SCREEN: ' + str)
  77 + if (str) {
  78 + // 跳转指定频道场景,传参底导id、频道id
  79 + this.isLayoutFullScreen = str == '1' ? true : false
  80 + }
  81 + })
75 } 82 }
76 83
77 aboutToDisappear() { 84 aboutToDisappear() {
@@ -120,8 +127,7 @@ export struct BottomNavigationComponent { @@ -120,8 +127,7 @@ export struct BottomNavigationComponent {
120 // 备注:鸿蒙目前只有修改三线导航背景方法,对于全面屏导航条手机需要设置背景色并使其扩散到导航区域 127 // 备注:鸿蒙目前只有修改三线导航背景方法,对于全面屏导航条手机需要设置背景色并使其扩散到导航区域
121 // .backgroundColor(this.barBackgroundColor) 128 // .backgroundColor(this.barBackgroundColor)
122 .layoutWeight(1) 129 .layoutWeight(1)
123 -  
124 - Blank().width('100%').height(this.bottomRectHeight1).backgroundColor(this.barBackgroundColor) 130 + Blank().width('100%').height(this.bottomRectHeight1).backgroundColor(this.barBackgroundColor).visibility(this.isLayoutFullScreen?Visibility.None:Visibility.Visible)
125 }.height('100%').width('100%') 131 }.height('100%').width('100%')
126 } 132 }
127 133
@@ -70,8 +70,9 @@ @@ -70,8 +70,9 @@
70 message.callbackId = callbackId; 70 message.callbackId = callbackId;
71 } 71 }
72 72
  73 + console.log("WebViewJavascriptBridge55: ", JSON.stringify(message));
73 sendMessageQueue.push(message); 74 sendMessageQueue.push(message);
74 - messagingIframe.src = CUSTOM_PROTOCOL_SCHEME + '://' + QUEUE_HAS_MESSAGE; 75 + messagingIframe.src = CUSTOM_PROTOCOL_SCHEME + '://' + QUEUE_HAS_MESSAGE + encodeURIComponent(JSON.stringify(message));
75 } 76 }
76 77
77 // 提供给native调用,该函数作用:获取sendMessageQueue返回给native,由于android不能直接获取返回的内容,所以使用url shouldOverrideUrlLoading 的方式返回内容 78 // 提供给native调用,该函数作用:获取sendMessageQueue返回给native,由于android不能直接获取返回的内容,所以使用url shouldOverrideUrlLoading 的方式返回内容