wangliang_wd

feat:修改bug

@@ -73,16 +73,18 @@ export struct InteractMComponent { @@ -73,16 +73,18 @@ 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 +
  77 + }
  78 + }.padding({left:5,right:5}).alignItems(HorizontalAlign.Start).width('90%')
  79 + }.padding({top:10,left:16,right:16}).width('100%').alignItems(VerticalAlign.Top)
76 .onClick(()=>{ 80 .onClick(()=>{
  81 + if(this.messageModel.contentType === '211') return
77 let contentDTO :ContentDTO = new ContentDTO(); 82 let contentDTO :ContentDTO = new ContentDTO();
78 contentDTO.objectType = this.messageModel.InteractMsubM.contentType 83 contentDTO.objectType = this.messageModel.InteractMsubM.contentType
79 contentDTO.objectId = this.messageModel.InteractMsubM.contentId 84 contentDTO.objectId = this.messageModel.InteractMsubM.contentId
80 ProcessUtils.processPage(contentDTO) 85 ProcessUtils.processPage(contentDTO)
81 }) 86 })
82 } 87 }
83 - }.padding({left:5,right:5}).alignItems(HorizontalAlign.Start).width('90%')  
84 - }.padding({top:10,left:16,right:16}).width('100%').alignItems(VerticalAlign.Top)  
85 - }  
86 88
87 buildContentString(): string { 89 buildContentString(): string {
88 let contentString: string = '' 90 let contentString: 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个字,只能输入中文、数字、英文字母。') 48 + Row(){
  49 + Text('1、账号中(头像、昵称等)不允许含有违禁违规内容;\n2、最多16个字,只能输入中文、数字、英文字母。')
49 .fontSize(13) 50 .fontSize(13)
50 - .padding(12)  
51 .fontColor(Color.Gray).lineHeight(25) 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 + Row(){
50 Text('1、账号中(头像、昵称等)不允许含有违禁违规内容;\n2、最多16个字,只能输入中文、数字、英文字母。') 51 Text('1、账号中(头像、昵称等)不允许含有违禁违规内容;\n2、最多16个字,只能输入中文、数字、英文字母。')
51 .fontSize(13) 52 .fontSize(13)
52 - .padding(12)  
53 .fontColor(Color.Gray).lineHeight(25) 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 + Column(){
72 InteractMComponent({messageModel:InteractM}) 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.
@@ -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%')