wangyujian_wd

fix:1)直播详情页面优化;

@@ -58,10 +58,10 @@ export struct TabLiveComponent { @@ -58,10 +58,10 @@ export struct TabLiveComponent {
58 // 加载更多 58 // 加载更多
59 ListItem() { 59 ListItem() {
60 if (this.pageModel.hasMore) { 60 if (this.pageModel.hasMore) {
61 - LoadMoreLayout({  
62 - refreshBean: new RefreshLayoutBean(this.pageModel.isVisiblePullUpLoad, this.pageModel.pullUpLoadImage,  
63 - this.pageModel.pullUpLoadText, this.pageModel.pullUpLoadHeight)  
64 - }) 61 + // LoadMoreLayout({
  62 + // refreshBean: new RefreshLayoutBean(this.pageModel.isVisiblePullUpLoad, this.pageModel.pullUpLoadImage,
  63 + // this.pageModel.pullUpLoadText, this.pageModel.pullUpLoadHeight)
  64 + // })
65 } else { 65 } else {
66 ListHasNoMoreDataUI() 66 ListHasNoMoreDataUI()
67 } 67 }
@@ -89,7 +89,7 @@ export struct TabLiveComponent { @@ -89,7 +89,7 @@ export struct TabLiveComponent {
89 if (data.barrageResponses && data.barrageResponses.length > 0) { 89 if (data.barrageResponses && data.barrageResponses.length > 0) {
90 /** 90 /**
91 * 在直播聊天添加一条新内容逻辑: 91 * 在直播聊天添加一条新内容逻辑:
92 - 判断 oldNewsId:迁移id空 且 直播状态不是预约:"wait" 92 + 判断 oldNewsId:迁移id空 且 直播状态不是预约:"wait"
93 消息内容: 93 消息内容:
94 1.头像固定:APP默认头像 94 1.头像固定:APP默认头像
95 2.名称固定:人民日报主持人 95 2.名称固定:人民日报主持人
@@ -105,6 +105,25 @@ export struct TabLiveComponent { @@ -105,6 +105,25 @@ export struct TabLiveComponent {
105 if (StringUtils.isEmpty(this.liveDetailsBean.oldNewsId) 105 if (StringUtils.isEmpty(this.liveDetailsBean.oldNewsId)
106 && this.liveDetailsBean 106 && this.liveDetailsBean
107 && this.liveDetailsBean.liveInfo.liveState != 'wait') { 107 && this.liveDetailsBean.liveInfo.liveState != 'wait') {
  108 + this.updateLiveListData()
  109 + }
  110 + }
  111 + } else {
  112 + if (StringUtils.isEmpty(this.liveDetailsBean.oldNewsId)
  113 + && this.liveDetailsBean
  114 + && this.liveDetailsBean.liveInfo.liveState != 'wait') {
  115 + this.updateLiveListData()
  116 + } else {
  117 + this.pageModel.viewType = ViewType.EMPTY;
  118 + }
  119 + }
  120 + },
  121 + () => {
  122 +
  123 + })
  124 + }
  125 +
  126 + updateLiveListData() {
108 let liveRoomItemBeanTemp: LiveRoomItemBean = {} as LiveRoomItemBean 127 let liveRoomItemBeanTemp: LiveRoomItemBean = {} as LiveRoomItemBean
109 liveRoomItemBeanTemp.text = this.liveDetailsBean.newIntroduction 128 liveRoomItemBeanTemp.text = this.liveDetailsBean.newIntroduction
110 liveRoomItemBeanTemp.senderUserName = '人民日报主持人' 129 liveRoomItemBeanTemp.senderUserName = '人民日报主持人'
@@ -118,15 +137,6 @@ export struct TabLiveComponent { @@ -118,15 +137,6 @@ export struct TabLiveComponent {
118 } 137 }
119 this.liveList.push(liveRoomItemBeanTemp) 138 this.liveList.push(liveRoomItemBeanTemp)
120 } 139 }
121 - }  
122 - } else {  
123 - this.pageModel.viewType = ViewType.EMPTY;  
124 - }  
125 - },  
126 - () => {  
127 -  
128 - })  
129 - }  
130 140
131 aboutToDisappear(): void { 141 aboutToDisappear(): void {
132 } 142 }