张善主

Merge remote-tracking branch 'origin/main'

@@ -175,7 +175,14 @@ export struct LiveHorizontalCardComponent { @@ -175,7 +175,14 @@ export struct LiveHorizontalCardComponent {
175 }) 175 })
176 }) 176 })
177 } 177 }
178 - if (this.compDTO.operDataList.length >= 2) { 178 + if (this.compDTO.operDataList.length >= 2 && !(this.compDTO?.objectType === '0' || this.compDTO?.objectType === '')) {
  179 + Row() {
  180 + Ellipse()
  181 + .width(2* (this.moreWidth - this.initMoreWidth - 1))
  182 + .height('100%')
  183 + .fill(0xe9e9e9)
  184 + .position({ left: -(this.moreWidth - this.initMoreWidth - 3) * 0.8 , top: 0 })
  185 +
179 Column() { 186 Column() {
180 if (this.moreWidth > this.initMoreWidth + 2) { 187 if (this.moreWidth > this.initMoreWidth + 2) {
181 Text(this.moreTips) 188 Text(this.moreTips)
@@ -186,10 +193,12 @@ export struct LiveHorizontalCardComponent { @@ -186,10 +193,12 @@ export struct LiveHorizontalCardComponent {
186 } 193 }
187 .justifyContent(FlexAlign.Center) 194 .justifyContent(FlexAlign.Center)
188 .align(Alignment.Center) 195 .align(Alignment.Center)
189 - .width(this.moreWidth)  
190 - .backgroundColor(0xf1f3f4) 196 + .height('100%')
  197 + .width(this.initMoreWidth)
  198 + .backgroundColor(0xe9e9e9)
191 .borderRadius({ topLeft: 5, bottomLeft: 5 }) 199 .borderRadius({ topLeft: 5, bottomLeft: 5 })
192 - .height(this.compDTO.operDataList.length == 2 ? 180 : 146) 200 + }
  201 + .margin({left: 1.5 * (this.moreWidth - this.initMoreWidth)})
193 } 202 }
194 } 203 }
195 } 204 }
@@ -201,7 +210,7 @@ export struct LiveHorizontalCardComponent { @@ -201,7 +210,7 @@ export struct LiveHorizontalCardComponent {
201 this.edgeAnimation() 210 this.edgeAnimation()
202 }) 211 })
203 .onScrollStop(() => { 212 .onScrollStop(() => {
204 - // this.resetEdgeAnimation(); 213 + this.resetEdgeAnimation();
205 }) 214 })
206 .onScroll((xOffset: number, yOffset: number) => { 215 .onScroll((xOffset: number, yOffset: number) => {
207 if (xOffset < 0) { 216 if (xOffset < 0) {
@@ -211,6 +220,7 @@ export struct LiveHorizontalCardComponent { @@ -211,6 +220,7 @@ export struct LiveHorizontalCardComponent {
211 .onTouch((event?: TouchEvent) => { 220 .onTouch((event?: TouchEvent) => {
212 if(event) { 221 if(event) {
213 if (event.type === TouchType.Up) { 222 if (event.type === TouchType.Up) {
  223 + this.toMore();
214 this.resetEdgeAnimation(); 224 this.resetEdgeAnimation();
215 } 225 }
216 } 226 }