张善主

fix(17938):电子报-2024.05.21第5版,右下角欢迎赐稿,点击无法跳转到内容详情,见附件视频。

1 -import { Action, ContentDTO, NewspaperListItemBean, NewspaperPositionItemBean, Params } from 'wdBean';  
2 -import { ExtraDTO } from 'wdBean/src/main/ets/bean/component/extra/ExtraDTO'; 1 +import { ContentDTO, NewspaperListItemBean, NewspaperPositionItemBean, Params } from 'wdBean';
3 import { StringUtils } from 'wdKit'; 2 import { StringUtils } from 'wdKit';
4 -import { ProcessUtils, WDRouterRule } from 'wdRouter'; 3 +import { ProcessUtils } from 'wdRouter';
5 import { newsSkeleton } from './skeleton/newsSkeleton'; 4 import { newsSkeleton } from './skeleton/newsSkeleton';
6 5
7 @Component 6 @Component
@@ -78,7 +77,7 @@ export struct ENewspaperItemComponent { @@ -78,7 +77,7 @@ export struct ENewspaperItemComponent {
78 let mx = event.touches[0].x; 77 let mx = event.touches[0].x;
79 let my = event.touches[0].y; 78 let my = event.touches[0].y;
80 if (this.startX - mx > 5 || mx - this.startX > 5 || this.startY - my > 5 || my - this.startY > 5) { 79 if (this.startX - mx > 5 || mx - this.startX > 5 || this.startY - my > 5 || my - this.startY > 5) {
81 - // this.itemBeanClicked = {} as NewspaperPositionItemBean 80 + this.itemBeanClicked = {} as NewspaperPositionItemBean
82 this.context.clearRect(0, 0, this.context.width, this.context.height) 81 this.context.clearRect(0, 0, this.context.width, this.context.height)
83 } 82 }
84 83
@@ -133,7 +132,6 @@ export struct ENewspaperItemComponent { @@ -133,7 +132,6 @@ export struct ENewspaperItemComponent {
133 } 132 }
134 133
135 } 134 }
136 -  
137 if (vp2px(x) > minX && vp2px(x) < maxX && vp2px(y) > minY && vp2px(y) < maxY) { 135 if (vp2px(x) > minX && vp2px(x) < maxX && vp2px(y) > minY && vp2px(y) < maxY) {
138 this.itemBeanClicked = itemBean; 136 this.itemBeanClicked = itemBean;
139 return xys; 137 return xys;