Showing
7 changed files
with
78 additions
and
33 deletions
| @@ -352,7 +352,6 @@ export struct DynamicDetailComponent { | @@ -352,7 +352,6 @@ export struct DynamicDetailComponent { | ||
| 352 | } | 352 | } |
| 353 | .width(48) | 353 | .width(48) |
| 354 | .padding({ bottom: 9 }) | 354 | .padding({ bottom: 9 }) |
| 355 | - | ||
| 356 | } | 355 | } |
| 357 | 356 | ||
| 358 | } | 357 | } |
| @@ -380,6 +379,7 @@ export struct DynamicDetailComponent { | @@ -380,6 +379,7 @@ export struct DynamicDetailComponent { | ||
| 380 | GridCol({ | 379 | GridCol({ |
| 381 | span: this.onePicW > this.onePicH ? 12 : 8 | 380 | span: this.onePicW > this.onePicH ? 12 : 8 |
| 382 | }) { | 381 | }) { |
| 382 | + Stack({alignContent: Alignment.BottomEnd}) { | ||
| 383 | Image(item.picPath) | 383 | Image(item.picPath) |
| 384 | .backgroundColor(0xf5f5f5) | 384 | .backgroundColor(0xf5f5f5) |
| 385 | .width('100%') | 385 | .width('100%') |
| @@ -396,23 +396,6 @@ export struct DynamicDetailComponent { | @@ -396,23 +396,6 @@ export struct DynamicDetailComponent { | ||
| 396 | this.onePicW = event?.width || 0; | 396 | this.onePicW = event?.width || 0; |
| 397 | this.onePicH = event?.height || 0; | 397 | this.onePicH = event?.height || 0; |
| 398 | }) | 398 | }) |
| 399 | - } | ||
| 400 | - .onClick(async (event: ClickEvent) => { | ||
| 401 | - let retvalue = await FastClickUtil.isMinDelayTime() | ||
| 402 | - if(retvalue){ | ||
| 403 | - return | ||
| 404 | - } | ||
| 405 | - ProcessUtils.gotoMultiPictureListPage(this.contentDetailData.photoList, index) | ||
| 406 | - }) | ||
| 407 | - } | ||
| 408 | - } else if (this.contentDetailData.photoList.length === 4) { | ||
| 409 | - GridCol({ | ||
| 410 | - span: { xs: 4 } | ||
| 411 | - }) { | ||
| 412 | - Stack({alignContent: Alignment.BottomEnd}) { | ||
| 413 | - Image(item.picPath) | ||
| 414 | - .aspectRatio(1) | ||
| 415 | - .borderRadius(this.caclImageRadius(index)) | ||
| 416 | if(this.getPicType(item) !== 3){ | 399 | if(this.getPicType(item) !== 3){ |
| 417 | Flex({ direction: FlexDirection.Row }) { | 400 | Flex({ direction: FlexDirection.Row }) { |
| 418 | Image($r('app.media.icon_long_pic')) | 401 | Image($r('app.media.icon_long_pic')) |
| @@ -444,7 +427,49 @@ export struct DynamicDetailComponent { | @@ -444,7 +427,49 @@ export struct DynamicDetailComponent { | ||
| 444 | } | 427 | } |
| 445 | ProcessUtils.gotoMultiPictureListPage(this.contentDetailData.photoList, index) | 428 | ProcessUtils.gotoMultiPictureListPage(this.contentDetailData.photoList, index) |
| 446 | }) | 429 | }) |
| 447 | - } else { | 430 | + } |
| 431 | + } | ||
| 432 | + // else if (this.contentDetailData.photoList.length === 4) { | ||
| 433 | + // GridCol({ | ||
| 434 | + // span: { xs: 4 } | ||
| 435 | + // }) { | ||
| 436 | + // Stack({alignContent: Alignment.BottomEnd}) { | ||
| 437 | + // Image(item.picPath) | ||
| 438 | + // .aspectRatio(1) | ||
| 439 | + // .borderRadius(this.caclImageRadius(index)) | ||
| 440 | + // if(this.getPicType(item) !== 3){ | ||
| 441 | + // Flex({ direction: FlexDirection.Row }) { | ||
| 442 | + // Image($r('app.media.icon_long_pic')) | ||
| 443 | + // .width(12) | ||
| 444 | + // .height(12) | ||
| 445 | + // .margin({ right: 4 }) | ||
| 446 | + // Text('长图') | ||
| 447 | + // .fontSize(10) | ||
| 448 | + // .fontWeight(400) | ||
| 449 | + // .textShadow({ | ||
| 450 | + // radius: 1, | ||
| 451 | + // color: `rgba(0,0,0,0.5)`, | ||
| 452 | + // offsetY:1, | ||
| 453 | + // offsetX:1 | ||
| 454 | + // }) | ||
| 455 | + // .fontColor(0xffffff) | ||
| 456 | + // .fontFamily('PingFang SC') | ||
| 457 | + // } | ||
| 458 | + // .width(48) | ||
| 459 | + // .align(Alignment.BottomEnd) | ||
| 460 | + // .padding({ bottom: 3 }) | ||
| 461 | + // } | ||
| 462 | + // } | ||
| 463 | + // } | ||
| 464 | + // .onClick(async (event: ClickEvent) => { | ||
| 465 | + // let retvalue = await FastClickUtil.isMinDelayTime() | ||
| 466 | + // if(retvalue){ | ||
| 467 | + // return | ||
| 468 | + // } | ||
| 469 | + // ProcessUtils.gotoMultiPictureListPage(this.contentDetailData.photoList, index) | ||
| 470 | + // }) | ||
| 471 | + // } | ||
| 472 | + else { | ||
| 448 | GridCol({ | 473 | GridCol({ |
| 449 | span: { sm: 4, lg: 3 } | 474 | span: { sm: 4, lg: 3 } |
| 450 | }) { | 475 | }) { |
| @@ -50,7 +50,7 @@ export struct FollowThirdTabsComponent{ | @@ -50,7 +50,7 @@ export struct FollowThirdTabsComponent{ | ||
| 50 | .fontColor(this.currentIndex === index ? this.selectedFontColor : this.fontColor) | 50 | .fontColor(this.currentIndex === index ? this.selectedFontColor : this.fontColor) |
| 51 | .lineHeight(18) | 51 | .lineHeight(18) |
| 52 | .backgroundImage($r('app.media.ic_collect_mid')) | 52 | .backgroundImage($r('app.media.ic_collect_mid')) |
| 53 | - .backgroundImageSize(ImageSize.Cover) | 53 | + .backgroundImageSize(ImageSize.FILL) |
| 54 | .padding({top:7,bottom:7}) | 54 | .padding({top:7,bottom:7}) |
| 55 | 55 | ||
| 56 | Image(index === 0?$r("app.media.ic_collect_left_right"):(index === this.data[this.firstIndex].children[this.secondIndex].children.length-1?$r('app.media.ic_collect_right_right'):$r('app.media.ic_collect_mid_right'))) | 56 | Image(index === 0?$r("app.media.ic_collect_left_right"):(index === this.data[this.firstIndex].children[this.secondIndex].children.length-1?$r('app.media.ic_collect_right_right'):$r('app.media.ic_collect_mid_right'))) |
| @@ -16,7 +16,7 @@ struct EditUserIntroductionPage { | @@ -16,7 +16,7 @@ struct EditUserIntroductionPage { | ||
| 16 | CustomTitleUI({titleName:'修改简介'}) | 16 | CustomTitleUI({titleName:'修改简介'}) |
| 17 | 17 | ||
| 18 | Row(){ | 18 | Row(){ |
| 19 | - TextInput({placeholder:'请输入简介',text:this.params.editContent}) | 19 | + TextArea({placeholder:'请输入简介',text:this.params.editContent}) |
| 20 | .maxLength(60) | 20 | .maxLength(60) |
| 21 | .width('100%') | 21 | .width('100%') |
| 22 | .height(80) | 22 | .height(80) |
| @@ -318,13 +318,13 @@ export struct PeopleShipHomePageTopComponent { | @@ -318,13 +318,13 @@ export struct PeopleShipHomePageTopComponent { | ||
| 318 | this.content = this.subTxt | 318 | this.content = this.subTxt |
| 319 | } | 319 | } |
| 320 | } | 320 | } |
| 321 | - // if (this.detailModel) { | 321 | + if (this.detailModel) { |
| 322 | // this.topFixedHeight = 160 | 322 | // this.topFixedHeight = 160 |
| 323 | - // if (this.detailModel.region && this.detailModel.region.length > 0) { | ||
| 324 | - // this.provinceName = this.detailModel.region | ||
| 325 | - // } else { | ||
| 326 | - // this.provinceName = await this.computeIPRegion(this.detailModel.province) | ||
| 327 | - // } | 323 | + if (this.detailModel.region && this.detailModel.region.length > 0) { |
| 324 | + this.provinceName = this.detailModel.region | ||
| 325 | + } else { | ||
| 326 | + this.provinceName = await this.computeIPRegion(this.detailModel.province) | ||
| 327 | + } | ||
| 328 | // if (this.detailModel.authId == 1 && this.detailModel.categoryAuth.length > 0) { | 328 | // if (this.detailModel.authId == 1 && this.detailModel.categoryAuth.length > 0) { |
| 329 | // this.topFixedHeight += this.getTextLineNum(this.detailModel.categoryAuth, DisplayUtils.getDeviceWidth() - 90, 22, $r('app.float.vp_12')) * 18 | 329 | // this.topFixedHeight += this.getTextLineNum(this.detailModel.categoryAuth, DisplayUtils.getDeviceWidth() - 90, 22, $r('app.float.vp_12')) * 18 |
| 330 | // this.topFixedHeight += 12 | 330 | // this.topFixedHeight += 12 |
| @@ -362,7 +362,7 @@ export struct PeopleShipHomePageTopComponent { | @@ -362,7 +362,7 @@ export struct PeopleShipHomePageTopComponent { | ||
| 362 | // } | 362 | // } |
| 363 | // | 363 | // |
| 364 | // this.topHeight = this.topFixedHeight | 364 | // this.topHeight = this.topFixedHeight |
| 365 | - // } | 365 | + } |
| 366 | } | 366 | } |
| 367 | 367 | ||
| 368 | private computeShowNum(count: number) { | 368 | private computeShowNum(count: number) { |
| @@ -107,6 +107,7 @@ export class SubscribeMessageModel{ | @@ -107,6 +107,7 @@ export class SubscribeMessageModel{ | ||
| 107 | export class Remark{ | 107 | export class Remark{ |
| 108 | relationType:string = "" | 108 | relationType:string = "" |
| 109 | coverImageUrl:string = "" | 109 | coverImageUrl:string = "" |
| 110 | + planStartTimeLong:string = "" | ||
| 110 | relationId:string = "" | 111 | relationId:string = "" |
| 111 | status:string = "" | 112 | status:string = "" |
| 112 | userName:string = "" | 113 | userName:string = "" |
| @@ -154,7 +154,7 @@ struct MineHomePage { | @@ -154,7 +154,7 @@ struct MineHomePage { | ||
| 154 | 154 | ||
| 155 | Row() { | 155 | Row() { |
| 156 | Row() { | 156 | Row() { |
| 157 | - Text(`${this.browseNum}`) | 157 | + Text(this.handlerNum(this.browseNum.toString())) |
| 158 | .textStyle() | 158 | .textStyle() |
| 159 | Text("阅读") | 159 | Text("阅读") |
| 160 | .textStyle2() | 160 | .textStyle2() |
| @@ -168,7 +168,7 @@ struct MineHomePage { | @@ -168,7 +168,7 @@ struct MineHomePage { | ||
| 168 | .vertical(true) | 168 | .vertical(true) |
| 169 | .opacity(0.4) | 169 | .opacity(0.4) |
| 170 | Row() { | 170 | Row() { |
| 171 | - Text(`${this.commentNum}`) | 171 | + Text(this.handlerNum(this.commentNum.toString())) |
| 172 | .textStyle() | 172 | .textStyle() |
| 173 | Text("评论") | 173 | Text("评论") |
| 174 | .textStyle2() | 174 | .textStyle2() |
| @@ -182,7 +182,7 @@ struct MineHomePage { | @@ -182,7 +182,7 @@ struct MineHomePage { | ||
| 182 | .vertical(true) | 182 | .vertical(true) |
| 183 | .opacity(0.4) | 183 | .opacity(0.4) |
| 184 | Row() { | 184 | Row() { |
| 185 | - Text(`${this.attentionNum}`) | 185 | + Text(this.handlerNum(this.attentionNum.toString())) |
| 186 | .textStyle() | 186 | .textStyle() |
| 187 | Text("关注") | 187 | Text("关注") |
| 188 | .textStyle2() | 188 | .textStyle2() |
| @@ -401,7 +401,8 @@ struct MineHomePage { | @@ -401,7 +401,8 @@ struct MineHomePage { | ||
| 401 | }) | 401 | }) |
| 402 | .margin({ left: 10 }) | 402 | .margin({ left: 10 }) |
| 403 | .onClick(() => { | 403 | .onClick(() => { |
| 404 | - router.back() | 404 | + let params = {'headPhotoUrl': this.headPhotoUrl} as Record<string, string>; |
| 405 | + WDRouterRule.jumpWithPage(WDRouterPage.showUserHeaderPage,params) | ||
| 405 | }) | 406 | }) |
| 406 | 407 | ||
| 407 | Text(`${this.userName}`) | 408 | Text(`${this.userName}`) |
| @@ -518,6 +519,24 @@ struct MineHomePage { | @@ -518,6 +519,24 @@ struct MineHomePage { | ||
| 518 | console.log(TAG,JSON.stringify(err)) | 519 | console.log(TAG,JSON.stringify(err)) |
| 519 | }) | 520 | }) |
| 520 | } | 521 | } |
| 522 | + | ||
| 523 | + handlerNum(number: string) { | ||
| 524 | + const num = number??'0'; | ||
| 525 | + if (Number.parseInt(num) <= 9999) { | ||
| 526 | + return Number.parseInt(num).toString() | ||
| 527 | + } else if (Number.parseInt(num) > 9999 && Number.parseInt(num) <= 99999999) { | ||
| 528 | + const num1: string = num.slice(0, -4); // 万 | ||
| 529 | + const num2: string = num.slice(-4, -3); // 千 | ||
| 530 | + return num2 === '0' ? num1 +'万' : num1 + '.' + num2 + '万' | ||
| 531 | + } else if (Number.parseInt(num) > 99999999) { | ||
| 532 | + const num1: string = num.slice(0, -8); // 亿 | ||
| 533 | + const num2: string = num.slice(-8, -7); | ||
| 534 | + return num2 === '0' ? num1 +'亿' : num1 + '.' + num2 + '亿' | ||
| 535 | + } | ||
| 536 | + return num | ||
| 537 | + } | ||
| 538 | + | ||
| 539 | + | ||
| 521 | getUserLevel(){ | 540 | getUserLevel(){ |
| 522 | MinePageDatasModel.getUserLevelData(getContext(this)).then((value)=>{ | 541 | MinePageDatasModel.getUserLevelData(getContext(this)).then((value)=>{ |
| 523 | if(value!=null){ | 542 | if(value!=null){ |
| @@ -126,7 +126,7 @@ struct LaunchAdvertisingPage { | @@ -126,7 +126,7 @@ struct LaunchAdvertisingPage { | ||
| 126 | .fontColor(Color.White) | 126 | .fontColor(Color.White) |
| 127 | .margin({left:14,right:14}) | 127 | .margin({left:14,right:14}) |
| 128 | } | 128 | } |
| 129 | - .width(74) | 129 | + .width(84) |
| 130 | .height(28) | 130 | .height(28) |
| 131 | .margin({top:5,right:10}) | 131 | .margin({top:5,right:10}) |
| 132 | .backgroundColor('#80000000') | 132 | .backgroundColor('#80000000') |
-
Please register or login to post a comment