feat: card log

This commit is contained in:
zzc
2026-02-12 11:18:53 +08:00
parent b6d4a8074e
commit 54e8581b81
6 changed files with 45 additions and 8 deletions

View File

@@ -31,7 +31,7 @@
@tap.stop="openBgmList"
:class="{ playing: isBgmPlaying }"
>
<uni-icons type="headphones" size="20" color="#fff"></uni-icons>
<text class="music-icon">{{ isBgmPlaying ? "🎵" : "🔇" }}</text>
</view>
<view class="premium-tag">
<uni-icons type="info" size="12" color="#fff"></uni-icons>
@@ -513,7 +513,7 @@ import {
} from "@dcloudio/uni-app";
import { useUserStore } from "@/stores/user";
import LoginPopup from "@/components/LoginPopup/LoginPopup.vue";
import { saveRecordRequest, uploadImage } from "@/utils/common.js";
import { saveRecordRequest, uploadImage, trackRecord } from "@/utils/common.js";
const userStore = useUserStore();
const loginPopupRef = ref(null);
@@ -1205,6 +1205,11 @@ onShareTimeline(async () => {
});
const selectGreeting = (text) => {
trackRecord({
eventName: "card_text_choose",
eventType: "click",
elementId: text?.id,
});
blessingText.value = text;
};
@@ -1231,11 +1236,21 @@ const templates = ref([]);
const currentTemplate = ref(templates.value[0]);
const applyTemplate = (tpl) => {
trackRecord({
eventName: "card_tpl_choose",
eventType: "click",
elementId: tpl?.id,
});
currentTemplate.value = tpl;
closePanel();
};
const selectTitle = (title) => {
trackRecord({
eventName: "card_title_choose",
eventType: "click",
elementId: title?.id,
});
if (currentTitle.value?.id === title?.id) {
currentTitle.value = null;
} else {