anytrek-front-public-component 1.13.7 → 1.13.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md
CHANGED
|
@@ -807,10 +807,26 @@ export const groupCargoHandlingImages = (list: any[]): any[] => {
|
|
|
807
807
|
items.sort((a: any, b: any) => new Date(a.takeTime).getTime() - new Date(b.takeTime).getTime());
|
|
808
808
|
const timeStampGap = new Date(items[items.length - 1].takeTime).getTime() - new Date(items[0].takeTime).getTime();
|
|
809
809
|
const timeGap = formatDuration(timeStampGap, { d: true, h: true, m: true, s: true });
|
|
810
|
+
let list = items.slice(0);
|
|
811
|
+
if (import.meta.env.MODE === 'development') {
|
|
812
|
+
list = list.map((l: any) => {
|
|
813
|
+
const obj: any = {
|
|
814
|
+
...l,
|
|
815
|
+
}
|
|
816
|
+
if (l.media) {
|
|
817
|
+
obj.media = obj.media.replace('https://oss.anytrek.app', '/oss-anytrek-app')
|
|
818
|
+
} else {
|
|
819
|
+
obj.url = obj.url.replace('https://oss.anytrek.app', '/oss-anytrek-app')
|
|
820
|
+
}
|
|
821
|
+
return {
|
|
822
|
+
...obj,
|
|
823
|
+
}
|
|
824
|
+
})
|
|
825
|
+
}
|
|
810
826
|
if (items[0].media) {
|
|
811
|
-
result.push({ ...items[0], videoList: [...
|
|
827
|
+
result.push({ ...items[0], videoList: [...list], timeGap });
|
|
812
828
|
} else {
|
|
813
|
-
result.push({ ...items[0], imageList: [...
|
|
829
|
+
result.push({ ...items[0], imageList: [...list], timeGap });
|
|
814
830
|
}
|
|
815
831
|
|
|
816
832
|
});
|
|
@@ -19341,7 +19341,7 @@ const m5 = { class: "image-display-normal" }, p5 = { class: "time" }, A5 = { cla
|
|
|
19341
19341
|
]);
|
|
19342
19342
|
};
|
|
19343
19343
|
}
|
|
19344
|
-
}), r8 = /* @__PURE__ */ Gt(n8, [["__scopeId", "data-v-
|
|
19344
|
+
}), r8 = /* @__PURE__ */ Gt(n8, [["__scopeId", "data-v-a33001c1"]]);
|
|
19345
19345
|
function a8(r, o) {
|
|
19346
19346
|
var i = r == null ? null : typeof Symbol < "u" && r[Symbol.iterator] || r["@@iterator"];
|
|
19347
19347
|
if (i != null) {
|