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,22 +105,17 @@ export struct TabLiveComponent { @@ -105,22 +105,17 @@ 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 - let liveRoomItemBeanTemp: LiveRoomItemBean = {} as LiveRoomItemBean  
109 - liveRoomItemBeanTemp.text = this.liveDetailsBean.newIntroduction  
110 - liveRoomItemBeanTemp.senderUserName = '人民日报主持人'  
111 - liveRoomItemBeanTemp.pictureUrls = []  
112 - liveRoomItemBeanTemp.pictureUrls.push(this.liveDetailsBean?.fullColumnImgUrls[0]?.url)  
113 - liveRoomItemBeanTemp.dataType = 'ZH_TEXT_AND_IMAGE_MSG'  
114 - let temp = this.liveDetailsBean?.fullColumnImgUrls[0]  
115 - if (temp) {  
116 - liveRoomItemBeanTemp.pictureResolutions = []  
117 - liveRoomItemBeanTemp.pictureResolutions.push(`${temp.height}*${temp.weight}`)  
118 - }  
119 - this.liveList.push(liveRoomItemBeanTemp) 108 + this.updateLiveListData()
120 } 109 }
121 } 110 }
122 } else { 111 } else {
123 - this.pageModel.viewType = ViewType.EMPTY; 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 + }
124 } 119 }
125 }, 120 },
126 () => { 121 () => {
@@ -128,6 +123,21 @@ export struct TabLiveComponent { @@ -128,6 +123,21 @@ export struct TabLiveComponent {
128 }) 123 })
129 } 124 }
130 125
  126 + updateLiveListData() {
  127 + let liveRoomItemBeanTemp: LiveRoomItemBean = {} as LiveRoomItemBean
  128 + liveRoomItemBeanTemp.text = this.liveDetailsBean.newIntroduction
  129 + liveRoomItemBeanTemp.senderUserName = '人民日报主持人'
  130 + liveRoomItemBeanTemp.pictureUrls = []
  131 + liveRoomItemBeanTemp.pictureUrls.push(this.liveDetailsBean?.fullColumnImgUrls[0]?.url)
  132 + liveRoomItemBeanTemp.dataType = 'ZH_TEXT_AND_IMAGE_MSG'
  133 + let temp = this.liveDetailsBean?.fullColumnImgUrls[0]
  134 + if (temp) {
  135 + liveRoomItemBeanTemp.pictureResolutions = []
  136 + liveRoomItemBeanTemp.pictureResolutions.push(`${temp.height}*${temp.weight}`)
  137 + }
  138 + this.liveList.push(liveRoomItemBeanTemp)
  139 + }
  140 +
131 aboutToDisappear(): void { 141 aboutToDisappear(): void {
132 } 142 }
133 } 143 }