yumaochao
@@ -17,6 +17,7 @@ @@ -17,6 +17,7 @@
17 "wdDetailPlayShortVideo": "file:../../features/wdDetailPlayShortVideo", 17 "wdDetailPlayShortVideo": "file:../../features/wdDetailPlayShortVideo",
18 "wdRouter": "file:../../commons/wdRouter", 18 "wdRouter": "file:../../commons/wdRouter",
19 "wdNetwork": "file:../../commons/wdNetwork", 19 "wdNetwork": "file:../../commons/wdNetwork",
20 - "wdJsBridge": "file:../../commons/wdJsBridge" 20 + "wdJsBridge": "file:../../commons/wdJsBridge",
  21 + "wdDetailPlayApi":"file:../../features/wdDetailPlayApi"
21 } 22 }
22 } 23 }
@@ -10,6 +10,7 @@ import { QueryListIsFollowedItem } from '../../../viewmodel/QueryListIsFollowedI @@ -10,6 +10,7 @@ import { QueryListIsFollowedItem } from '../../../viewmodel/QueryListIsFollowedI
10 import { ListHasNoMoreDataUI } from '../../reusable/ListHasNoMoreDataUI'; 10 import { ListHasNoMoreDataUI } from '../../reusable/ListHasNoMoreDataUI';
11 import { FollowChildComponent } from './FollowChildComponent'; 11 import { FollowChildComponent } from './FollowChildComponent';
12 import dataPreferences from '@ohos.data.preferences'; 12 import dataPreferences from '@ohos.data.preferences';
  13 +import { EmptyComponent } from '../../view/EmptyComponent';
13 14
14 const TAG = "FollowListDetailUI" 15 const TAG = "FollowListDetailUI"
15 16
@@ -32,8 +33,9 @@ export struct FollowListDetailUI { @@ -32,8 +33,9 @@ export struct FollowListDetailUI {
32 build() { 33 build() {
33 Column() { 34 Column() {
34 if (this.count === 0) { 35 if (this.count === 0) {
35 - ListHasNoMoreDataUI({ style: 2 })  
36 - .height('100%') 36 + EmptyComponent({emptyType:14})
  37 + .layoutWeight(1)
  38 + .width('100%')
37 } else { 39 } else {
38 List({ space: 3 }) { 40 List({ space: 3 }) {
39 LazyForEach(this.data, (item: FollowListDetailItem, index: number = 0) => { 41 LazyForEach(this.data, (item: FollowListDetailItem, index: number = 0) => {
@@ -95,7 +95,7 @@ export struct HomePageBottomComponent{ @@ -95,7 +95,7 @@ export struct HomePageBottomComponent{
95 WDRouterRule.jumpWithPage(WDRouterPage.followListPage,params) 95 WDRouterRule.jumpWithPage(WDRouterPage.followListPage,params)
96 }) 96 })
97 97
98 - EmptyComponent({emptyType:4}) 98 + EmptyComponent({emptyType:14})
99 .layoutWeight(1) 99 .layoutWeight(1)
100 .width('100%') 100 .width('100%')
101 }.layoutWeight(1) 101 }.layoutWeight(1)
@@ -5,6 +5,7 @@ import MinePageDatasModel from '../../../model/MinePageDatasModel'; @@ -5,6 +5,7 @@ import MinePageDatasModel from '../../../model/MinePageDatasModel';
5 import { FollowListDetailItem } from '../../../viewmodel/FollowListDetailItem'; 5 import { FollowListDetailItem } from '../../../viewmodel/FollowListDetailItem';
6 import { UserFollowListRequestItem } from '../../../viewmodel/UserFollowListRequestItem'; 6 import { UserFollowListRequestItem } from '../../../viewmodel/UserFollowListRequestItem';
7 import { ListHasNoMoreDataUI } from '../../reusable/ListHasNoMoreDataUI'; 7 import { ListHasNoMoreDataUI } from '../../reusable/ListHasNoMoreDataUI';
  8 +import { EmptyComponent } from '../../view/EmptyComponent';
8 import { FollowChildComponent } from '../follow/FollowChildComponent'; 9 import { FollowChildComponent } from '../follow/FollowChildComponent';
9 10
10 const TAG = "HomePageBottomComponent" 11 const TAG = "HomePageBottomComponent"
@@ -30,8 +31,37 @@ export struct OtherHomePageBottomFollowComponent{ @@ -30,8 +31,37 @@ export struct OtherHomePageBottomFollowComponent{
30 .backgroundColor($r('app.color.color_EDEDED')) 31 .backgroundColor($r('app.color.color_EDEDED'))
31 32
32 if(this.count === 0){ 33 if(this.count === 0){
33 - ListHasNoMoreDataUI({style:2})  
34 - .height('100%') 34 + Column(){
  35 + Row(){
  36 + Text("关注更多人民号")
  37 + .fontWeight('400lpx')
  38 + .fontColor($r('app.color.color_222222'))
  39 + .lineHeight('38lpx')
  40 + .fontSize('27lpx')
  41 + .textAlign(TextAlign.Center)
  42 + .margin({right:'4lpx'})
  43 + Image($r('app.media.arrow_icon_right'))
  44 + .objectFit(ImageFit.Auto)
  45 + .width('27lpx')
  46 + .height('27lpx')
  47 + }.height('69lpx')
  48 + .width('659lpx')
  49 + .alignItems(VerticalAlign.Center)
  50 + .justifyContent(FlexAlign.Center)
  51 + .backgroundColor($r('app.color.color_F5F5F5'))
  52 + .margin({top:'31lpx',bottom:'4lpx'})
  53 + .onClick(()=>{
  54 + let params: Params = {
  55 + pageID: "1"
  56 + }
  57 + WDRouterRule.jumpWithPage(WDRouterPage.followListPage,params)
  58 + })
  59 +
  60 + EmptyComponent({emptyType:14})
  61 + .layoutWeight(1)
  62 + .width('100%')
  63 + }.layoutWeight(1)
  64 + .justifyContent(FlexAlign.Start)
35 }else{ 65 }else{
36 List({ space: 3 }) { 66 List({ space: 3 }) {
37 67
@@ -11,6 +11,6 @@ @@ -11,6 +11,6 @@
11 "wdKit": "file:../../commons/wdKit", 11 "wdKit": "file:../../commons/wdKit",
12 "wdBean": "file:../../features/wdBean", 12 "wdBean": "file:../../features/wdBean",
13 "wdRouter": "file:../../commons/wdRouter", 13 "wdRouter": "file:../../commons/wdRouter",
14 - "wdNetwork": "file:../../commons/wdNetwork" 14 + "wdNetwork": "file:../../commons/wdNetwork",
15 } 15 }
16 } 16 }