Showing
2 changed files
with
10 additions
and
5 deletions
| @@ -163,9 +163,9 @@ export struct MorningEveningPaperComponent { | @@ -163,9 +163,9 @@ export struct MorningEveningPaperComponent { | ||
| 163 | this.getAllContentInteractData(this.compListItem.operDataList) | 163 | this.getAllContentInteractData(this.compListItem.operDataList) |
| 164 | } | 164 | } |
| 165 | console.log(TAG, 'compInfoBean?.compList[0].audioDataList', JSON.stringify(compInfoBean?.compList[0].audioDataList)) | 165 | console.log(TAG, 'compInfoBean?.compList[0].audioDataList', JSON.stringify(compInfoBean?.compList[0].audioDataList)) |
| 166 | - if (compInfoBean?.compList[0].audioDataList) { | ||
| 167 | - this.audioPlayUrl = compInfoBean?.compList[0].audioDataList[0].audioUrl | ||
| 168 | - this.audioTitle = compInfoBean?.compList[0].audioDataList[0].title | 166 | + if (compInfoBean?.compList[0].audioDataList.length > 0) { |
| 167 | + this.audioPlayUrl = compInfoBean?.compList[0].audioDataList[0]?.audioUrl | ||
| 168 | + this.audioTitle = compInfoBean?.compList[0].audioDataList[0]?.title | ||
| 169 | console.log(TAG, 'this.audioPlayUrl', this.audioPlayUrl) | 169 | console.log(TAG, 'this.audioPlayUrl', this.audioPlayUrl) |
| 170 | } | 170 | } |
| 171 | } | 171 | } |
| @@ -215,6 +215,11 @@ export struct MorningEveningPaperComponent { | @@ -215,6 +215,11 @@ export struct MorningEveningPaperComponent { | ||
| 215 | // 图片转换为PixelMap对象 | 215 | // 图片转换为PixelMap对象 |
| 216 | // const pixelMap: image.PixelMap = await image2PixelMap(item.icon); | 216 | // const pixelMap: image.PixelMap = await image2PixelMap(item.icon); |
| 217 | console.log(TAG, "compInfoBean compStyle = " + imageUrl) | 217 | console.log(TAG, "compInfoBean compStyle = " + imageUrl) |
| 218 | + | ||
| 219 | + if (this.pageInfoBean.backgroundColor.length > 0){ | ||
| 220 | + this.mixedBgColor = this.pageInfoBean.backgroundColor | ||
| 221 | + return | ||
| 222 | + } | ||
| 218 | 223 | ||
| 219 | if (imageUrl.length > 0 && this.pageInfoBean.topicInfo.frontFlag === 1) { | 224 | if (imageUrl.length > 0 && this.pageInfoBean.topicInfo.frontFlag === 1) { |
| 220 | const imageSource: image.ImageSource | undefined = await getPicture(imageUrl) | 225 | const imageSource: image.ImageSource | undefined = await getPicture(imageUrl) |
| @@ -253,10 +253,10 @@ struct MineHomePage { | @@ -253,10 +253,10 @@ struct MineHomePage { | ||
| 253 | Tabs({controller: this.controller}) { | 253 | Tabs({controller: this.controller}) { |
| 254 | TabContent() { | 254 | TabContent() { |
| 255 | HomePageBottomCommentComponent({commentNum:$commentNum}) | 255 | HomePageBottomCommentComponent({commentNum:$commentNum}) |
| 256 | - } | 256 | + }.gesture(PanGesture(new PanGestureOptions({ direction: PanDirection.Right }))) |
| 257 | TabContent() { | 257 | TabContent() { |
| 258 | HomePageBottomFollowComponent() | 258 | HomePageBottomFollowComponent() |
| 259 | - } | 259 | + }.gesture(PanGesture(new PanGestureOptions({ direction: PanDirection.Left }))) |
| 260 | } | 260 | } |
| 261 | .backgroundColor($r('app.color.white')) | 261 | .backgroundColor($r('app.color.white')) |
| 262 | .animationDuration(0) | 262 | .animationDuration(0) |
-
Please register or login to post a comment