Showing
3 changed files
with
9 additions
and
5 deletions
| 1 | +import { ImageKnifeComponent } from '@ohos/imageknife'; | ||
| 1 | import { ContentDTO, FrontLinkObject } from 'wdBean'; | 2 | import { ContentDTO, FrontLinkObject } from 'wdBean'; |
| 2 | import { Logger } from 'wdKit/Index'; | 3 | import { Logger } from 'wdKit/Index'; |
| 3 | import { ProcessUtils } from 'wdRouter/Index'; | 4 | import { ProcessUtils } from 'wdRouter/Index'; |
| @@ -28,9 +29,12 @@ export struct topicInfoView { | @@ -28,9 +29,12 @@ export struct topicInfoView { | ||
| 28 | build() { | 29 | build() { |
| 29 | RelativeContainer() { | 30 | RelativeContainer() { |
| 30 | Stack(){ | 31 | Stack(){ |
| 31 | - Image(this.frontLinkObject?.coverUrl) | ||
| 32 | - .width("100%") | ||
| 33 | - .height("100%") | 32 | + ImageKnifeComponent({imageKnifeOption:{loadSrc:this.frontLinkObject?.coverUrl,isCacheable:true}}) |
| 33 | + .width('100%') | ||
| 34 | + .height('100%') | ||
| 35 | + // Image(this.frontLinkObject?.coverUrl) | ||
| 36 | + // .width("100%") | ||
| 37 | + // .height("100%") | ||
| 34 | Stack(){ | 38 | Stack(){ |
| 35 | Image('') | 39 | Image('') |
| 36 | .width("100%") | 40 | .width("100%") |
| @@ -233,7 +233,7 @@ export struct HomePageBottomFollowComponent { | @@ -233,7 +233,7 @@ export struct HomePageBottomFollowComponent { | ||
| 233 | this.hasMore = false | 233 | this.hasMore = false |
| 234 | } | 234 | } |
| 235 | } | 235 | } |
| 236 | - this.bottomCompH = DisplayUtils.getDeviceHeight() - this.data_follow.totalCount()*100 | 236 | + this.bottomCompH = DisplayUtils.getDeviceHeight() - this.data_follow.totalCount()*101 |
| 237 | console.log(TAG, `${this.bottomCompH}`); | 237 | console.log(TAG, `${this.bottomCompH}`); |
| 238 | this.isLoading = false | 238 | this.isLoading = false |
| 239 | this.isGetRequest = true | 239 | this.isGetRequest = true |
| @@ -20,7 +20,7 @@ struct MorningEveningPaperPage { | @@ -20,7 +20,7 @@ struct MorningEveningPaperPage { | ||
| 20 | 20 | ||
| 21 | pageTransition() { | 21 | pageTransition() { |
| 22 | // 定义页面进入时的效果,从底侧滑入 | 22 | // 定义页面进入时的效果,从底侧滑入 |
| 23 | - PageTransitionEnter({ type: RouteType.Push, duration: 200 }) | 23 | + PageTransitionEnter({ type: RouteType.Push, duration: 300 }) |
| 24 | .slide(SlideEffect.Bottom).onEnter((type: RouteType, progress: number) => { | 24 | .slide(SlideEffect.Bottom).onEnter((type: RouteType, progress: number) => { |
| 25 | if (progress >= 0.99) { | 25 | if (progress >= 0.99) { |
| 26 | // WindowModel.shared.setWindowLayoutFullScreen(true) | 26 | // WindowModel.shared.setWindowLayoutFullScreen(true) |
-
Please register or login to post a comment