Showing
1 changed file
with
16 additions
and
24 deletions
| @@ -53,7 +53,8 @@ export struct LiveHorizontalCardComponent { | @@ -53,7 +53,8 @@ export struct LiveHorizontalCardComponent { | ||
| 53 | 53 | ||
| 54 | resetEdgeAnimation() { | 54 | resetEdgeAnimation() { |
| 55 | if (this.moreWidth > this.initMoreWidth) { | 55 | if (this.moreWidth > this.initMoreWidth) { |
| 56 | - this.moreWidth = 16 | 56 | + this.moreWidth = this.moreWidth - 1 |
| 57 | + this.resetEdgeAnimation(); | ||
| 57 | } | 58 | } |
| 58 | this.resetMoreTips() | 59 | this.resetMoreTips() |
| 59 | } | 60 | } |
| @@ -93,7 +94,7 @@ export struct LiveHorizontalCardComponent { | @@ -93,7 +94,7 @@ export struct LiveHorizontalCardComponent { | ||
| 93 | .fontWeight(600) | 94 | .fontWeight(600) |
| 94 | } | 95 | } |
| 95 | 96 | ||
| 96 | - if (this.compDTO?.objectType === '0' || this.compDTO?.objectType === '') { | 97 | + if (this.compDTO.dataSourceType === 'LIVE_HORIZONTAL_CARD' || this.compDTO.dataSourceType === 'LIVE_MONTHLY_RANKING' || this.compDTO.dataSourceType === 'OBJECT_POS') { |
| 97 | Row() { | 98 | Row() { |
| 98 | Text("更多") | 99 | Text("更多") |
| 99 | .fontSize($r("app.float.font_size_14")) | 100 | .fontSize($r("app.float.font_size_14")) |
| @@ -164,30 +165,21 @@ export struct LiveHorizontalCardComponent { | @@ -164,30 +165,21 @@ export struct LiveHorizontalCardComponent { | ||
| 164 | }) | 165 | }) |
| 165 | }) | 166 | }) |
| 166 | } | 167 | } |
| 167 | - if (this.compDTO.operDataList.length >= 2 && (this.compDTO?.objectType === '0' || this.compDTO?.objectType === '')) { | ||
| 168 | - Row() { | ||
| 169 | - Ellipse() | ||
| 170 | - .width(2* (this.moreWidth - this.initMoreWidth - 1)) | ||
| 171 | - .height(this.compDTO.operDataList.length == 2 ? 180 : 146) | ||
| 172 | - .fill(0xf1f3f4) | ||
| 173 | - .position({ left: -(this.moreWidth - this.initMoreWidth - 3) * 0.8 }) | ||
| 174 | - | ||
| 175 | - Column() { | ||
| 176 | - if (this.moreWidth > this.initMoreWidth + 2) { | ||
| 177 | - Text(this.moreTips) | ||
| 178 | - .fontSize(8) | ||
| 179 | - .fontColor(0x858585) | ||
| 180 | - .width(8) | ||
| 181 | - } | 168 | + if (this.compDTO.operDataList.length >= 2) { |
| 169 | + Column() { | ||
| 170 | + if (this.moreWidth > this.initMoreWidth + 2) { | ||
| 171 | + Text(this.moreTips) | ||
| 172 | + .fontSize(8) | ||
| 173 | + .fontColor(0x858585) | ||
| 174 | + .width(8) | ||
| 182 | } | 175 | } |
| 183 | - .justifyContent(FlexAlign.Center) | ||
| 184 | - .align(Alignment.Center) | ||
| 185 | - .height(this.compDTO.operDataList.length == 2 ? 180 : 146) | ||
| 186 | - .width(this.initMoreWidth) | ||
| 187 | - .backgroundColor(0xf1f3f4) | ||
| 188 | - .borderRadius({ topLeft: 5, bottomLeft: 5 }) | ||
| 189 | } | 176 | } |
| 190 | - .margin({left: 1.5 * (this.moreWidth - this.initMoreWidth)}) | 177 | + .justifyContent(FlexAlign.Center) |
| 178 | + .align(Alignment.Center) | ||
| 179 | + .width(this.moreWidth) | ||
| 180 | + .backgroundColor(0xf1f3f4) | ||
| 181 | + .borderRadius({ topLeft: 5, bottomLeft: 5 }) | ||
| 182 | + .height(this.compDTO.operDataList.length == 2 ? 180 : 146) | ||
| 191 | } | 183 | } |
| 192 | } | 184 | } |
| 193 | } | 185 | } |
-
Please register or login to post a comment