liyubing

Merge remote-tracking branch 'origin/main'

@@ -5,6 +5,10 @@ import { HostManager } from './HttpHostManager'; @@ -5,6 +5,10 @@ import { HostManager } from './HttpHostManager';
5 */ 5 */
6 export class HttpUrlUtils { 6 export class HttpUrlUtils {
7 /** 7 /**
  8 + * 查询直播参与人数
  9 + */
  10 + static readonly GET_JOIN_PEOPLE_NUM: string = '/api/live-center-message/zh/a/live/room/number/batch/all'
  11 + /**
8 * 启动接口(底导接口) 12 * 启动接口(底导接口)
9 */ 13 */
10 static readonly BOTTOM_NAV_PATH: string = "/api/rmrb-bff-display-zh/display/zh/c/bottomNavGroup"; 14 static readonly BOTTOM_NAV_PATH: string = "/api/rmrb-bff-display-zh/display/zh/c/bottomNavGroup";
@@ -135,14 +139,6 @@ export class HttpUrlUtils { @@ -135,14 +139,6 @@ export class HttpUrlUtils {
135 */ 139 */
136 static readonly APPOINTMENT_ExecuteCollcet_PATH: string = "/api/rmrb-interact/interact/zh/c/collect/executeCollcetRecord"; 140 static readonly APPOINTMENT_ExecuteCollcet_PATH: string = "/api/rmrb-interact/interact/zh/c/collect/executeCollcetRecord";
137 /** 141 /**
138 - * 个人中心 - 消息  
139 - */  
140 - static readonly APPOINTMENT_MessageList_PATH: string = "/api/rmrb-inside-mail/zh/c/inside-mail/private";  
141 - /**  
142 - * 个人中心 - 消息 点赞数  
143 - */  
144 - static readonly APPOINTMENT_getMessageLikeCount_PATH: string = "/api/rmrb-inside-mail/zh/c/inside-mail/private/getLikeCount";  
145 - /**  
146 * 个人中心 我的评论列表 142 * 个人中心 我的评论列表
147 */ 143 */
148 static readonly MINE_COMMENT_LIST_DATA_PATH: string = "/api/rmrb-comment/comment/zh/c/myCommentList"; 144 static readonly MINE_COMMENT_LIST_DATA_PATH: string = "/api/rmrb-comment/comment/zh/c/myCommentList";
@@ -324,10 +320,6 @@ export class HttpUrlUtils { @@ -324,10 +320,6 @@ export class HttpUrlUtils {
324 */ 320 */
325 static readonly FEEDBACK_TYPE_PATH: string = "/api/rmrb-interact/interact/c/user/optionClassify/list"; 321 static readonly FEEDBACK_TYPE_PATH: string = "/api/rmrb-interact/interact/c/user/optionClassify/list";
326 322
327 - /**  
328 - * 查询点赞、回复我的、系统消息的未读数量以及回复/评论人  
329 - */  
330 - static readonly MESSAGE_UN_READ_DATA_PATH: string = "/api/rmrb-inside-mail/zh/c/inside-mail/private/polymerizationInfo?createTime=";  
331 323
332 /** 324 /**
333 * 直播详情-直播人数 325 * 直播详情-直播人数
@@ -515,16 +507,6 @@ export class HttpUrlUtils { @@ -515,16 +507,6 @@ export class HttpUrlUtils {
515 return url 507 return url
516 } 508 }
517 509
518 - static getMessageListDataUrl() {  
519 - let url = HttpUrlUtils.getHost() + HttpUrlUtils.APPOINTMENT_MessageList_PATH  
520 - return url  
521 - }  
522 -  
523 - static getMessageLikeCount() {  
524 - let url = HttpUrlUtils.getHost() + HttpUrlUtils.APPOINTMENT_getMessageLikeCount_PATH  
525 - return url  
526 - }  
527 -  
528 static getExecuteCollcetUrl() { 510 static getExecuteCollcetUrl() {
529 let url = HttpUrlUtils.getHost() + HttpUrlUtils.APPOINTMENT_ExecuteCollcet_PATH 511 let url = HttpUrlUtils.getHost() + HttpUrlUtils.APPOINTMENT_ExecuteCollcet_PATH
530 return url 512 return url
@@ -761,14 +743,9 @@ export class HttpUrlUtils { @@ -761,14 +743,9 @@ export class HttpUrlUtils {
761 return url; 743 return url;
762 } 744 }
763 745
764 - //获取消息未读接口  
765 - static getMessageUnReadDataUrl() {  
766 - let url = HttpUrlUtils.getHost() + HttpUrlUtils.MESSAGE_UN_READ_DATA_PATH  
767 - return url  
768 - }  
769 -  
770 - static reportDeviceInfo() {  
771 - let url = HttpUrlUtils.getHost() + "/api/rmrb-user-center/common/user/c/device/push"; 746 +// 查询节目的参与人数
  747 + static getJoinPeopleNum() {
  748 + let url = HttpUrlUtils.getHost() + HttpUrlUtils.GET_JOIN_PEOPLE_NUM;
772 return url; 749 return url;
773 } 750 }
774 751
@@ -796,4 +773,5 @@ export class HttpUrlUtils { @@ -796,4 +773,5 @@ export class HttpUrlUtils {
796 let url = HttpUrlUtils.getHost() + HttpUrlUtils.ENTER_MESSAGE_PATH 773 let url = HttpUrlUtils.getHost() + HttpUrlUtils.ENTER_MESSAGE_PATH
797 return url 774 return url
798 } 775 }
799 -} 776 +
  777 +}
@@ -73,15 +73,17 @@ export struct InteractMComponent { @@ -73,15 +73,17 @@ export struct InteractMComponent {
73 .height('12') 73 .height('12')
74 }.margin({top:10,bottom:15}) 74 }.margin({top:10,bottom:15})
75 }.padding({left:10,right:10}).alignItems(HorizontalAlign.Start).backgroundColor('#f5f5f5').borderRadius(5) 75 }.padding({left:10,right:10}).alignItems(HorizontalAlign.Start).backgroundColor('#f5f5f5').borderRadius(5)
76 - .onClick(()=>{  
77 - let contentDTO :ContentDTO = new ContentDTO();  
78 - contentDTO.objectType = this.messageModel.InteractMsubM.contentType  
79 - contentDTO.objectId = this.messageModel.InteractMsubM.contentId  
80 - ProcessUtils.processPage(contentDTO)  
81 - }) 76 +
82 } 77 }
83 }.padding({left:5,right:5}).alignItems(HorizontalAlign.Start).width('90%') 78 }.padding({left:5,right:5}).alignItems(HorizontalAlign.Start).width('90%')
84 }.padding({top:10,left:16,right:16}).width('100%').alignItems(VerticalAlign.Top) 79 }.padding({top:10,left:16,right:16}).width('100%').alignItems(VerticalAlign.Top)
  80 + .onClick(()=>{
  81 + if(this.messageModel.contentType === '211') return
  82 + let contentDTO :ContentDTO = new ContentDTO();
  83 + contentDTO.objectType = this.messageModel.InteractMsubM.contentType
  84 + contentDTO.objectId = this.messageModel.InteractMsubM.contentId
  85 + ProcessUtils.processPage(contentDTO)
  86 + })
85 } 87 }
86 88
87 buildContentString(): string { 89 buildContentString(): string {
@@ -45,10 +45,11 @@ struct EditUserIntroductionPage { @@ -45,10 +45,11 @@ struct EditUserIntroductionPage {
45 Divider() 45 Divider()
46 .margin(20) 46 .margin(20)
47 47
48 - Text('1、账号中(头像、昵称等)不允许含有违禁违规内容;\n2、最多60个字,只能输入中文、数字、英文字母。')  
49 - .fontSize(13)  
50 - .padding(12)  
51 - .fontColor(Color.Gray).lineHeight(25) 48 + Row(){
  49 + Text('1、账号中(头像、昵称等)不允许含有违禁违规内容;\n2、最多16个字,只能输入中文、数字、英文字母。')
  50 + .fontSize(13)
  51 + .fontColor(Color.Gray).lineHeight(25)
  52 + }.padding({left:16}).width('100%')
52 53
53 Button('保存') 54 Button('保存')
54 .type(ButtonType.Normal) 55 .type(ButtonType.Normal)
@@ -47,10 +47,12 @@ struct EditUserNikeNamePage { @@ -47,10 +47,12 @@ struct EditUserNikeNamePage {
47 Divider() 47 Divider()
48 .margin(20) 48 .margin(20)
49 49
50 - Text('1、账号中(头像、昵称等)不允许含有违禁违规内容;\n2、最多16个字,只能输入中文、数字、英文字母。')  
51 - .fontSize(13)  
52 - .padding(12)  
53 - .fontColor(Color.Gray).lineHeight(25) 50 + Row(){
  51 + Text('1、账号中(头像、昵称等)不允许含有违禁违规内容;\n2、最多16个字,只能输入中文、数字、英文字母。')
  52 + .fontSize(13)
  53 + .fontColor(Color.Gray).lineHeight(25)
  54 + }.padding({left:16}).width('100%')
  55 +
54 56
55 Button('保存') 57 Button('保存')
56 .type(ButtonType.Normal) 58 .type(ButtonType.Normal)
@@ -69,7 +69,15 @@ struct InteractMessagePage { @@ -69,7 +69,15 @@ struct InteractMessagePage {
69 // 下拉刷新 69 // 下拉刷新
70 ForEach(this.allDatas, (InteractM: InteractMessageModel, compIndex: number) => { 70 ForEach(this.allDatas, (InteractM: InteractMessageModel, compIndex: number) => {
71 ListItem() { 71 ListItem() {
72 - InteractMComponent({messageModel:InteractM}) 72 + Column(){
  73 + InteractMComponent({messageModel:InteractM})
  74 +
  75 + Divider()
  76 + .color('#f5f5f5')
  77 + .width('100%')
  78 + .strokeWidth(1)
  79 + .padding({left:16,right:16,top:16})
  80 + }
73 } 81 }
74 }) 82 })
75 // 加载更多 83 // 加载更多
@@ -20,6 +20,7 @@ struct MyCollectionListPage { @@ -20,6 +20,7 @@ struct MyCollectionListPage {
20 @State private browSingModel: PageModel = new PageModel() 20 @State private browSingModel: PageModel = new PageModel()
21 isloading : boolean = false 21 isloading : boolean = false
22 @Provide isEditState:boolean = false 22 @Provide isEditState:boolean = false
  23 + @State isDisplayButton:boolean = false
23 @State allDatas :ContentDTO[] = []; 24 @State allDatas :ContentDTO[] = [];
24 @State selectDatas :ContentDTO[] = []; 25 @State selectDatas :ContentDTO[] = [];
25 @Provide deleteNum :number = 0; 26 @Provide deleteNum :number = 0;
@@ -48,7 +49,7 @@ struct MyCollectionListPage { @@ -48,7 +49,7 @@ struct MyCollectionListPage {
48 49
49 build() { 50 build() {
50 Column(){ 51 Column(){
51 - CustomTitleAndEditUI({titleName:'我的收藏',isDisplayButton:this.browSingModel.viewType == ViewType.ERROR || this.browSingModel.viewType == ViewType.EMPTY?false:true,editCallback:()=>{ 52 + CustomTitleAndEditUI({titleName:'我的收藏',isDisplayButton:this.isDisplayButton,editCallback:()=>{
52 this.allSelectDatas(false) 53 this.allSelectDatas(false)
53 this.isAllSelect = false 54 this.isAllSelect = false
54 this.selectDatas = [] 55 this.selectDatas = []
@@ -159,16 +160,19 @@ struct MyCollectionListPage { @@ -159,16 +160,19 @@ struct MyCollectionListPage {
159 } else { 160 } else {
160 this.browSingModel.hasMore = true; 161 this.browSingModel.hasMore = true;
161 } 162 }
  163 + this.isDisplayButton = true;
162 } else { 164 } else {
163 if (this.currentPage === 1) { 165 if (this.currentPage === 1) {
164 this.browSingModel.viewType = ViewType.EMPTY; 166 this.browSingModel.viewType = ViewType.EMPTY;
165 this.browSingModel.emptyType = WDViewDefaultType.WDViewDefaultType_NoCollection 167 this.browSingModel.emptyType = WDViewDefaultType.WDViewDefaultType_NoCollection
  168 + this.isDisplayButton = false;
166 } 169 }
167 } 170 }
168 }) 171 })
169 } else { 172 } else {
170 this.browSingModel.viewType = ViewType.EMPTY; 173 this.browSingModel.viewType = ViewType.EMPTY;
171 this.browSingModel.emptyType = WDViewDefaultType.WDViewDefaultType_NoNetwork; 174 this.browSingModel.emptyType = WDViewDefaultType.WDViewDefaultType_NoNetwork;
  175 + this.isDisplayButton = false;
172 } 176 }
173 } 177 }
174 178
@@ -231,6 +235,7 @@ struct MyCollectionListPage { @@ -231,6 +235,7 @@ struct MyCollectionListPage {
231 if (this.allDatas.length === 0) { 235 if (this.allDatas.length === 0) {
232 this.browSingModel.viewType = ViewType.EMPTY; 236 this.browSingModel.viewType = ViewType.EMPTY;
233 this.browSingModel.hasMore === true 237 this.browSingModel.hasMore === true
  238 + this.isDisplayButton = false;
234 } 239 }
235 } 240 }
236 241
@@ -4,7 +4,7 @@ import router from '@ohos.router' @@ -4,7 +4,7 @@ import router from '@ohos.router'
4 export struct CustomTitleAndEditUI { 4 export struct CustomTitleAndEditUI {
5 imgBack:boolean = true 5 imgBack:boolean = true
6 titleName:string = "默认标题" 6 titleName:string = "默认标题"
7 - isDisplayButton:boolean = false 7 + @Link isDisplayButton:boolean
8 @Consume isEditState:boolean 8 @Consume isEditState:boolean
9 editCallback: () => void = () => { 9 editCallback: () => void = () => {
10 } 10 }
@@ -39,18 +39,18 @@ export struct AreaPickerDialog { @@ -39,18 +39,18 @@ export struct AreaPickerDialog {
39 this.confirmCallback(this.currentFirst.label,this.currentSecondBean.label,this.currentThirdBean.label,this.currentFirst.label+this.currentSecondBean.label+this.currentThirdBean.label); 39 this.confirmCallback(this.currentFirst.label,this.currentSecondBean.label,this.currentThirdBean.label,this.currentFirst.label+this.currentSecondBean.label+this.currentThirdBean.label);
40 }) 40 })
41 .backgroundColor(0xffffff) 41 .backgroundColor(0xffffff)
42 - .fontColor(Color.Blue) 42 + .fontColor('#ED2800')
43 .layoutWeight(1) 43 .layoutWeight(1)
44 } 44 }
45 .margin({top:0,bottom:10}) 45 .margin({top:0,bottom:10})
46 46
47 Row(){ 47 Row(){
48 - FirstLevelComponent().width('30%')  
49 - SecondLevelComponent().width('30%')  
50 - ThirdLevelComponent().width('30%') 48 + FirstLevelComponent().width('33%')
  49 + SecondLevelComponent().width('33%')
  50 + ThirdLevelComponent().width('33%')
51 } 51 }
52 } 52 }
53 .height('40%') 53 .height('40%')
54 - 54 + .width('100%')
55 } 55 }
56 } 56 }
@@ -165,7 +165,7 @@ struct MineHomePage { @@ -165,7 +165,7 @@ struct MineHomePage {
165 //用户简介区域 165 //用户简介区域
166 Column() { 166 Column() {
167 Row() { 167 Row() {
168 - Text(this.desc) 168 + Text(this.isHasIntroduction?"简介:"+this.desc:this.desc)
169 .fontSize('27lpx') 169 .fontSize('27lpx')
170 .maxLines(3) 170 .maxLines(3)
171 .textOverflow({ overflow: TextOverflow.Ellipsis }) 171 .textOverflow({ overflow: TextOverflow.Ellipsis })
@@ -417,7 +417,7 @@ struct MineHomePage { @@ -417,7 +417,7 @@ struct MineHomePage {
417 this.userName = value.userName 417 this.userName = value.userName
418 this.headPhotoUrl = value.headPhotoUrl 418 this.headPhotoUrl = value.headPhotoUrl
419 if(StringUtils.isNotEmpty(value.introduction)){ 419 if(StringUtils.isNotEmpty(value.introduction)){
420 - this.desc = "简介:" + value.introduction 420 + this.desc = value.introduction
421 this.isHasIntroduction = true 421 this.isHasIntroduction = true
422 }else{ 422 }else{
423 this.desc = "点击添加简介,让大家认识你" 423 this.desc = "点击添加简介,让大家认识你"
@@ -47,7 +47,7 @@ export class RefreshConstants { @@ -47,7 +47,7 @@ export class RefreshConstants {
47 * The NoMoreLayout constants. 47 * The NoMoreLayout constants.
48 */ 48 */
49 static readonly NoMoreLayoutConstant_NORMAL_PADDING: number = 8; 49 static readonly NoMoreLayoutConstant_NORMAL_PADDING: number = 8;
50 - static readonly NoMoreLayoutConstant_TITLE_FONT: string = '16vp'; 50 + static readonly NoMoreLayoutConstant_TITLE_FONT: string = '12vp';
51 static readonly NoMoreLayoutConstant_TITLE_COLOR: string = '#666666'; 51 static readonly NoMoreLayoutConstant_TITLE_COLOR: string = '#666666';
52 /** 52 /**
53 * The RefreshLayout constants. 53 * The RefreshLayout constants.
@@ -184,9 +184,8 @@ export struct DetailVideoListPage { @@ -184,9 +184,8 @@ export struct DetailVideoListPage {
184 center: { anchor: "__container__", align: VerticalAlign.Center }, 184 center: { anchor: "__container__", align: VerticalAlign.Center },
185 middle: { anchor: "__container__", align: HorizontalAlign.Center } 185 middle: { anchor: "__container__", align: HorizontalAlign.Center }
186 }) 186 })
187 - } else {  
188 -  
189 - Column() { 187 + }else{
  188 + Column() {
190 Swiper(this.swiperController) { 189 Swiper(this.swiperController) {
191 ForEach(this.data, (item: ContentDetailDTO, index: number) => { 190 ForEach(this.data, (item: ContentDetailDTO, index: number) => {
192 DetailPlayShortVideoPage({ 191 DetailPlayShortVideoPage({
@@ -220,6 +219,8 @@ export struct DetailVideoListPage { @@ -220,6 +219,8 @@ export struct DetailVideoListPage {
220 // .padding({ 219 // .padding({
221 // bottom: this.bottomSafeHeight + 'px' 220 // bottom: this.bottomSafeHeight + 'px'
222 // }) 221 // })
  222 + }
  223 +
223 } 224 }
224 - } 225 +
225 } 226 }
@@ -109,6 +109,8 @@ export struct OperationListView { @@ -109,6 +109,8 @@ export struct OperationListView {
109 contentList: [{ 109 contentList: [{
110 contentId: this.contentDetailData?.newsId + '', 110 contentId: this.contentDetailData?.newsId + '',
111 contentType: this.contentDetailData?.newsType + '', 111 contentType: this.contentDetailData?.newsType + '',
  112 + relType: this.contentDetailData?.reLInfo?.relType + '',
  113 + contentRelId: this.contentDetailData?.reLInfo?.relId + '',
112 }], 114 }],
113 115
114 } 116 }
@@ -87,6 +87,8 @@ export struct PlayerRightView { @@ -87,6 +87,8 @@ export struct PlayerRightView {
87 contentList: [{ 87 contentList: [{
88 contentId: this.contentDetailData?.newsId + '', 88 contentId: this.contentDetailData?.newsId + '',
89 contentType: this.contentDetailData?.newsType + '', 89 contentType: this.contentDetailData?.newsType + '',
  90 + relType: this.contentDetailData?.reLInfo?.relType + '',
  91 + contentRelId: this.contentDetailData?.reLInfo?.relId + '',
90 }], 92 }],
91 93
92 } 94 }
@@ -17,7 +17,7 @@ struct GuidePages { @@ -17,7 +17,7 @@ struct GuidePages {
17 this.ChildItem(index) 17 this.ChildItem(index)
18 18
19 }, (item: number) => JSON.stringify(item)) 19 }, (item: number) => JSON.stringify(item))
20 - }.loop(false) 20 + }.loop(false).disableSwipe(true)
21 .indicator(false) 21 .indicator(false)
22 .width('100%') 22 .width('100%')
23 .height('100%') 23 .height('100%')