Showing
1 changed file
with
1 additions
and
134 deletions
| @@ -86,8 +86,7 @@ export struct ImageAndTextPageComponent { | @@ -86,8 +86,7 @@ export struct ImageAndTextPageComponent { | ||
| 86 | .width(CommonConstants.FULL_WIDTH) | 86 | .width(CommonConstants.FULL_WIDTH) |
| 87 | .height(CommonConstants.FULL_HEIGHT) | 87 | .height(CommonConstants.FULL_HEIGHT) |
| 88 | .padding({ bottom: 76 }) | 88 | .padding({ bottom: 76 }) |
| 89 | - | ||
| 90 | - // .scrollBar(BarState.Off) | 89 | + .scrollBar(BarState.Off) |
| 91 | 90 | ||
| 92 | //底部交互区 | 91 | //底部交互区 |
| 93 | Row() { | 92 | Row() { |
| @@ -132,138 +131,6 @@ export struct ImageAndTextPageComponent { | @@ -132,138 +131,6 @@ export struct ImageAndTextPageComponent { | ||
| 132 | .height(CommonConstants.FULL_HEIGHT) | 131 | .height(CommonConstants.FULL_HEIGHT) |
| 133 | } | 132 | } |
| 134 | 133 | ||
| 135 | - // build() { | ||
| 136 | - // Column() { | ||
| 137 | - // // 发布时间 | ||
| 138 | - // Row() { | ||
| 139 | - // Image($r('app.media.icon_ren_min_ri_bao')) | ||
| 140 | - // .width(70) | ||
| 141 | - // .height(28) | ||
| 142 | - // Text(this.contentDetailData[0]?.publishTime) | ||
| 143 | - // .fontColor($r('app.color.color_B0B0B0')) | ||
| 144 | - // .fontSize($r('app.float.font_size_13')) | ||
| 145 | - // .height('100%') | ||
| 146 | - // .align(Alignment.End) | ||
| 147 | - // } | ||
| 148 | - // .width(CommonConstants.FULL_WIDTH) | ||
| 149 | - // .height(32) | ||
| 150 | - // .padding({ left: 15, right: 15, }) | ||
| 151 | - // .justifyContent(FlexAlign.SpaceBetween) | ||
| 152 | - // .backgroundColor(Color.White) | ||
| 153 | - // | ||
| 154 | - // Row() { | ||
| 155 | - // Image($r('app.media.line')) | ||
| 156 | - // .width('100%') | ||
| 157 | - // .height(6) | ||
| 158 | - // .objectFit(ImageFit.Cover) | ||
| 159 | - // .margin({ top: 10 }) | ||
| 160 | - // } | ||
| 161 | - // .padding({ left: 15, right: 15, }) | ||
| 162 | - // .backgroundColor(Color.White) | ||
| 163 | - // | ||
| 164 | - // Stack({ alignContent: Alignment.Bottom }) { | ||
| 165 | - // | ||
| 166 | - // List() { | ||
| 167 | - // //详情展示区 | ||
| 168 | - // ListItem() { | ||
| 169 | - // Column() { | ||
| 170 | - // ImageAndTextWebComponent({ | ||
| 171 | - // contentDetailData: this.contentDetailData, | ||
| 172 | - // action: this.action, | ||
| 173 | - // }) | ||
| 174 | - // }.width(CommonConstants.FULL_WIDTH) | ||
| 175 | - // // .height(CommonConstants.FULL_HEIGHT) | ||
| 176 | - // } | ||
| 177 | - // | ||
| 178 | - // if (this.contentDetailData[0]?.openLikes === 1) { | ||
| 179 | - // ListItem() { | ||
| 180 | - // // 点赞 | ||
| 181 | - // Row() { | ||
| 182 | - // Row() { | ||
| 183 | - // if (this.newsStatusOfUser?.likeStatus === '1') { | ||
| 184 | - // Image(this.contentDetailData[0]?.likesStyle === 1 ? $r('app.media.ic_like_check') : (this.contentDetailData[0]?.likesStyle === 2 ? $r('app.media.icon_prayer_active') : $r('app.media.icon_candle_active'))) | ||
| 185 | - // .width(24) | ||
| 186 | - // .height(24) | ||
| 187 | - // .margin({ right: 5 }) | ||
| 188 | - // } else { | ||
| 189 | - // Image(this.contentDetailData[0]?.likesStyle === 1 ? $r('app.media.icon_like') : (this.contentDetailData[0]?.likesStyle === 2 ? $r('app.media.icon_prayer') : $r('app.media.icon_candle'))) | ||
| 190 | - // .width(24) | ||
| 191 | - // .height(24) | ||
| 192 | - // .margin({ right: 5 }) | ||
| 193 | - // } | ||
| 194 | - // Text(`${this.interactData?.likeNum || 0}`) | ||
| 195 | - // .fontSize(16) | ||
| 196 | - // .fontColor(this.newsStatusOfUser?.likeStatus === '1' ? '#ED2800' : '#999999') | ||
| 197 | - // .fontWeight(500) | ||
| 198 | - // }.alignItems(VerticalAlign.Center) | ||
| 199 | - // .onClick(() => { | ||
| 200 | - // this.toggleLikeStatus() | ||
| 201 | - // }) | ||
| 202 | - // | ||
| 203 | - // }.width(CommonConstants.FULL_WIDTH).height(80) | ||
| 204 | - // .justifyContent(FlexAlign.Center) | ||
| 205 | - // } | ||
| 206 | - // .border({ | ||
| 207 | - // width: { bottom: 5 }, | ||
| 208 | - // color: '#f5f5f5', | ||
| 209 | - // }) | ||
| 210 | - // } | ||
| 211 | - // | ||
| 212 | - // // 相关推荐区 | ||
| 213 | - // ListItem() { | ||
| 214 | - // RecommendList({ recommendList: this.recommendList }) | ||
| 215 | - // } | ||
| 216 | - // } | ||
| 217 | - // .width(CommonConstants.FULL_WIDTH) | ||
| 218 | - // .height(CommonConstants.FULL_HEIGHT) | ||
| 219 | - // .padding({ bottom: 56 }) | ||
| 220 | - // .scrollBar(BarState.Off) | ||
| 221 | - // .edgeEffect(EdgeEffect.None) | ||
| 222 | - // | ||
| 223 | - // //底部交互区 | ||
| 224 | - // Row() { | ||
| 225 | - // Image($r('app.media.icon_arrow_left')) | ||
| 226 | - // .width(24) | ||
| 227 | - // .height(24) | ||
| 228 | - // .onClick((event: ClickEvent) => { | ||
| 229 | - // router.back() | ||
| 230 | - // }) | ||
| 231 | - // | ||
| 232 | - // Row() { | ||
| 233 | - // Image($r('app.media.icon_comment')) | ||
| 234 | - // .width(24) | ||
| 235 | - // .height(24) | ||
| 236 | - // .margin({ right: 24 }) | ||
| 237 | - // .id('comment') | ||
| 238 | - // | ||
| 239 | - // Image($r('app.media.icon_star')) | ||
| 240 | - // .width(24) | ||
| 241 | - // .height(24) | ||
| 242 | - // .margin({ right: 24 }) | ||
| 243 | - // | ||
| 244 | - // Image($r('app.media.icon_listen')) | ||
| 245 | - // .width(24) | ||
| 246 | - // .height(24) | ||
| 247 | - // .margin({ right: 24 }) | ||
| 248 | - // | ||
| 249 | - // Image($r('app.media.icon_forward')) | ||
| 250 | - // .width(24) | ||
| 251 | - // .height(24) | ||
| 252 | - // | ||
| 253 | - // } | ||
| 254 | - // } | ||
| 255 | - // .width(CommonConstants.FULL_WIDTH) | ||
| 256 | - // .height(56) | ||
| 257 | - // .padding({ left: 15, right: 15, bottom: 50, top: 20 }) | ||
| 258 | - // .justifyContent(FlexAlign.SpaceBetween) | ||
| 259 | - // .backgroundColor(Color.White) | ||
| 260 | - // } | ||
| 261 | - // | ||
| 262 | - // }.width(CommonConstants.FULL_WIDTH).height(CommonConstants.FULL_HEIGHT) | ||
| 263 | - // .backgroundColor(Color.White) | ||
| 264 | - // | ||
| 265 | - // } | ||
| 266 | - | ||
| 267 | private async getDetail() { | 134 | private async getDetail() { |
| 268 | let contentId: string = '' | 135 | let contentId: string = '' |
| 269 | let relId: string = '' | 136 | let relId: string = '' |
-
Please register or login to post a comment