wangliang_wd

feat:优化号主评论主页

@@ -58,7 +58,6 @@ export struct HomePageBottomCommentComponent { @@ -58,7 +58,6 @@ export struct HomePageBottomCommentComponent {
58 this.curPageNum = 1; 58 this.curPageNum = 1;
59 this.hasMore = true 59 this.hasMore = true
60 this.isGetRequest = false 60 this.isGetRequest = false
61 - this.data_comment.clear()  
62 61
63 if (!this.isLoading){ 62 if (!this.isLoading){
64 this.getNewPageData() 63 this.getNewPageData()
@@ -71,6 +70,7 @@ export struct HomePageBottomCommentComponent { @@ -71,6 +70,7 @@ export struct HomePageBottomCommentComponent {
71 this.isLoading = true 70 this.isLoading = true
72 //加载分页数据 71 //加载分页数据
73 this.getNewPageData() 72 this.getNewPageData()
  73 + if(resolve) resolve('刷新成功')
74 } 74 }
75 } 75 }
76 }) 76 })
@@ -127,6 +127,7 @@ export struct HomePageBottomCommentComponent { @@ -127,6 +127,7 @@ export struct HomePageBottomCommentComponent {
127 let object = new FollowListDetailRequestItem(-1, 20, this.curPageNum) 127 let object = new FollowListDetailRequestItem(-1, 20, this.curPageNum)
128 128
129 MinePageDatasModel.getMineCommentListData(time, object, getContext(this)).then((value) => { 129 MinePageDatasModel.getMineCommentListData(time, object, getContext(this)).then((value) => {
  130 + if (this.curPageNum === 1) this.data_comment.clear()
130 if (!this.data_comment || value.list.length == 0) { 131 if (!this.data_comment || value.list.length == 0) {
131 this.hasMore = false 132 this.hasMore = false
132 this.isLoading = false 133 this.isLoading = false
@@ -185,7 +186,7 @@ export struct HomePageBottomCommentComponent { @@ -185,7 +186,7 @@ export struct HomePageBottomCommentComponent {
185 186
186 this.count = this.data_comment.totalCount() 187 this.count = this.data_comment.totalCount()
187 this.commentNum = value.totalCount 188 this.commentNum = value.totalCount
188 - if (value.pageNum === 1) { 189 + if (value.hasNext === 1) {
189 this.curPageNum++ 190 this.curPageNum++
190 } else { 191 } else {
191 this.hasMore = false 192 this.hasMore = false
@@ -218,7 +219,7 @@ export struct HomePageBottomCommentComponent { @@ -218,7 +219,7 @@ export struct HomePageBottomCommentComponent {
218 219
219 this.count = this.data_comment.totalCount() 220 this.count = this.data_comment.totalCount()
220 this.commentNum = value.totalCount 221 this.commentNum = value.totalCount
221 - if (value.pageNum === 1) { 222 + if (value.hasNext === 1) {
222 this.curPageNum++ 223 this.curPageNum++
223 } else { 224 } else {
224 this.hasMore = false 225 this.hasMore = false
@@ -73,6 +73,7 @@ struct MineHomePage { @@ -73,6 +73,7 @@ struct MineHomePage {
73 } 73 }
74 74
75 build() { 75 build() {
  76 + Column(){
76 if(this.isConnectNetwork){ 77 if(this.isConnectNetwork){
77 Stack({ alignContent: Alignment.Top }){ 78 Stack({ alignContent: Alignment.Top }){
78 Stack({ alignContent: Alignment.Top }){ 79 Stack({ alignContent: Alignment.Top }){
@@ -299,7 +300,7 @@ struct MineHomePage { @@ -299,7 +300,7 @@ struct MineHomePage {
299 } 300 }
300 .margin({top:px2vp(this.topSafeHeight)}) 301 .margin({top:px2vp(this.topSafeHeight)})
301 }.width('100%') 302 }.width('100%')
302 - .padding({bottom:px2vp(this.bottomSafeHeight)}) 303 + // .padding({bottom:px2vp(this.bottomSafeHeight)})
303 .layoutWeight(1) 304 .layoutWeight(1)
304 }else{ 305 }else{
305 Column(){ 306 Column(){
@@ -316,6 +317,8 @@ struct MineHomePage { @@ -316,6 +317,8 @@ struct MineHomePage {
316 } 317 }
317 } 318 }
318 319
  320 + }.padding({bottom:px2vp(this.bottomSafeHeight)})
  321 +
319 } 322 }
320 @Builder MineHomeTitleTransparent() { 323 @Builder MineHomeTitleTransparent() {
321 RelativeContainer() { 324 RelativeContainer() {