Merge branch 'main' of http://192.168.1.42/developOne/harmonyPool
Showing
3 changed files
with
4 additions
and
3 deletions
| @@ -249,8 +249,7 @@ export struct MorningEveningPaperComponent { | @@ -249,8 +249,7 @@ export struct MorningEveningPaperComponent { | ||
| 249 | // 图片转换为PixelMap对象 | 249 | // 图片转换为PixelMap对象 |
| 250 | // const pixelMap: image.PixelMap = await image2PixelMap(item.icon); | 250 | // const pixelMap: image.PixelMap = await image2PixelMap(item.icon); |
| 251 | // console.log(TAG, "compInfoBean compStyle = " + imageUrl) | 251 | // console.log(TAG, "compInfoBean compStyle = " + imageUrl) |
| 252 | - | ||
| 253 | - if (this.pageInfoBean.backgroundColor.length > 0){ | 252 | + if (this.pageInfoBean.backgroundColor.length > 0 && this.pageInfoBean.topicInfo?.frontLinkObject != undefined){ |
| 254 | let colorDatas = ColorUtils.hexColorValueToRGB(this.pageInfoBean.backgroundColor) | 253 | let colorDatas = ColorUtils.hexColorValueToRGB(this.pageInfoBean.backgroundColor) |
| 255 | let color = ColorUtils.getMorningEveningPaperRgb({red:colorDatas[0],green:colorDatas[1],blue:colorDatas[2],alpha:1}) | 254 | let color = ColorUtils.getMorningEveningPaperRgb({red:colorDatas[0],green:colorDatas[1],blue:colorDatas[2],alpha:1}) |
| 256 | this.mixedBgColor = "#ff" + color.red.toString(16).padStart(2,'0') + color.green.toString(16).padStart(2,'0') + color.blue.toString(16).padStart(2,'0'); | 255 | this.mixedBgColor = "#ff" + color.red.toString(16).padStart(2,'0') + color.green.toString(16).padStart(2,'0') + color.blue.toString(16).padStart(2,'0'); |
| @@ -258,6 +257,7 @@ export struct MorningEveningPaperComponent { | @@ -258,6 +257,7 @@ export struct MorningEveningPaperComponent { | ||
| 258 | } | 257 | } |
| 259 | 258 | ||
| 260 | if (imageUrl.length > 0 && this.pageInfoBean.topicInfo.frontFlag === 1) { | 259 | if (imageUrl.length > 0 && this.pageInfoBean.topicInfo.frontFlag === 1) { |
| 260 | + | ||
| 261 | const imageSource: image.ImageSource | undefined = await getPicture(imageUrl) | 261 | const imageSource: image.ImageSource | undefined = await getPicture(imageUrl) |
| 262 | this.pickColor(imageSource) | 262 | this.pickColor(imageSource) |
| 263 | } else { | 263 | } else { |
| @@ -146,6 +146,7 @@ export struct CommentTabComponent { | @@ -146,6 +146,7 @@ export struct CommentTabComponent { | ||
| 146 | this.publishCommentModel.rootCommentId = '-1'; | 146 | this.publishCommentModel.rootCommentId = '-1'; |
| 147 | this.publishCommentModel.parentId = '-1'; | 147 | this.publishCommentModel.parentId = '-1'; |
| 148 | this.publishCommentModel.placeHolderText = "说两句..." | 148 | this.publishCommentModel.placeHolderText = "说两句..." |
| 149 | + this.publishCommentModel.visitorComment = String(this.contentDetail?.visitorComment || '') | ||
| 149 | if (this.contentDetail.bestNoticer === 1) { | 150 | if (this.contentDetail.bestNoticer === 1) { |
| 150 | this.publishCommentModel.placeHolderText = "优质评论会获得最佳评论人的称号" | 151 | this.publishCommentModel.placeHolderText = "优质评论会获得最佳评论人的称号" |
| 151 | } | 152 | } |
| @@ -626,7 +626,7 @@ export struct PaperSingleColumn999CardView { | @@ -626,7 +626,7 @@ export struct PaperSingleColumn999CardView { | ||
| 626 | } | 626 | } |
| 627 | 627 | ||
| 628 | async aboutToAppear(): Promise<void> { | 628 | async aboutToAppear(): Promise<void> { |
| 629 | - // this.loadImg = await onlyWifiLoadImg(); | 629 | + this.loadImg = await onlyWifiLoadImg(); |
| 630 | this.onChangeCommentList() | 630 | this.onChangeCommentList() |
| 631 | this.isRead = hasClicked(this.item.objectId, '') | 631 | this.isRead = hasClicked(this.item.objectId, '') |
| 632 | } | 632 | } |
-
Please register or login to post a comment