feat: add customer travel records and browse history
This commit is contained in:
1 parent
0139fe6382
commit
6d9a546918
79 files changed
+12362
-112
No files matched your search
@@ -60,7 +60,7 @@ import { onLoad, onShareAppMessage } from "@dcloudio/uni-app";
|
||||
import ConciergeContactSheet from "@/components/ConciergeContactSheet.vue";
|
||||
import { fetchPublicDetail } from "@/lib/api";
|
||||
import { goBack } from "@/lib/navigation";
|
||||
import { rememberRecentlyViewed } from "@/lib/recentlyViewed";
|
||||
import { rememberRecentlyViewed, syncRecentlyViewed } from "@/lib/recentlyViewed";
|
||||
import { SUPPORT_PHONE } from "@/lib/types";
|
||||
import type { ConciergeAdvisor } from "../concierge/components/conciergeTypes";
|
||||
import DetailActionBar from "./components/DetailActionBar.vue";
|
||||
@@ -130,13 +130,15 @@ function rememberCurrentDetail() {
|
||||
const current = presentation.value;
|
||||
if (!current || !routeId.value) return;
|
||||
|
||||
rememberRecentlyViewed({
|
||||
const item = {
|
||||
type: "wanfa-route",
|
||||
id: routeId.value,
|
||||
title: current.title,
|
||||
image: current.gallery[0] ?? "",
|
||||
visitedAt: Date.now(),
|
||||
});
|
||||
} as const;
|
||||
rememberRecentlyViewed(item);
|
||||
void syncRecentlyViewed(item);
|
||||
}
|
||||
|
||||
function goCall() {
|
||||
|
||||
Reference in new issue
Block a user