|
@@ -6,6 +6,7 @@ import { DateUtils } from '../../utils/DateUtils';
|
|
|
import { YTDate } from '../../utils/YTDate';
|
|
import { YTDate } from '../../utils/YTDate';
|
|
|
import { fileUri } from '@kit.CoreFileKit';
|
|
import { fileUri } from '@kit.CoreFileKit';
|
|
|
import { YTAvoid } from '../../utils/YTAvoid';
|
|
import { YTAvoid } from '../../utils/YTAvoid';
|
|
|
|
|
+import { IBestImagePreview } from '@ibestservices/ibest-ui';
|
|
|
|
|
|
|
|
|
|
|
|
|
@Component
|
|
@Component
|
|
@@ -72,7 +73,7 @@ export struct StatisticsTab {
|
|
|
.onClick(() => {
|
|
.onClick(() => {
|
|
|
YTDatePicker.show({
|
|
YTDatePicker.show({
|
|
|
date: new Date(this.beginTime),
|
|
date: new Date(this.beginTime),
|
|
|
- type: SelectType.DATE_TIME,
|
|
|
|
|
|
|
+ type: SelectType.DATE,
|
|
|
timeUnitType: TimeTypeEnum.HH_MM_SS,
|
|
timeUnitType: TimeTypeEnum.HH_MM_SS,
|
|
|
highlightStyle: {
|
|
highlightStyle: {
|
|
|
backgroundColor: Color.Transparent,
|
|
backgroundColor: Color.Transparent,
|
|
@@ -109,7 +110,7 @@ export struct StatisticsTab {
|
|
|
|
|
|
|
|
YTDatePicker.show({
|
|
YTDatePicker.show({
|
|
|
date: new Date(this.beginTime),
|
|
date: new Date(this.beginTime),
|
|
|
- type: SelectType.DATE_TIME,
|
|
|
|
|
|
|
+ type: SelectType.DATE,
|
|
|
timeUnitType: TimeTypeEnum.HH_MM_SS,
|
|
timeUnitType: TimeTypeEnum.HH_MM_SS,
|
|
|
highlightStyle: {
|
|
highlightStyle: {
|
|
|
backgroundColor: Color.Transparent,
|
|
backgroundColor: Color.Transparent,
|
|
@@ -289,13 +290,17 @@ struct RecordItemView {
|
|
|
if (item.images && item.images.length > 0) {
|
|
if (item.images && item.images.length > 0) {
|
|
|
Scroll() {
|
|
Scroll() {
|
|
|
Row() {
|
|
Row() {
|
|
|
- ForEach(item.images, (uri: string) => {
|
|
|
|
|
|
|
+ ForEach(item.images, (uri: string, index) => {
|
|
|
Image(fileUri.getUriFromPath(uri))
|
|
Image(fileUri.getUriFromPath(uri))
|
|
|
.width(80)
|
|
.width(80)
|
|
|
.height(80)
|
|
.height(80)
|
|
|
.borderRadius(6)
|
|
.borderRadius(6)
|
|
|
.margin({ right: 10 })
|
|
.margin({ right: 10 })
|
|
|
.objectFit(ImageFit.Cover)
|
|
.objectFit(ImageFit.Cover)
|
|
|
|
|
+ .onClick(() => {
|
|
|
|
|
+ IBestImagePreview.show(item.images.map(v => fileUri.getUriFromPath(v as string)),
|
|
|
|
|
+ { startIndex: index })
|
|
|
|
|
+ })
|
|
|
})
|
|
})
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|