feat: maidian

This commit is contained in:
zzc
2026-02-12 17:22:47 +08:00
parent 54e8581b81
commit 313435d13f
13 changed files with 142 additions and 32 deletions

View File

@@ -20,7 +20,7 @@
/>
</view>
<view class="status-info">
<view class="status-title">当前正在使用</view>
<view class="status-title">头像效果预览</view>
<view class="decor-name">
<text class="star-icon"></text>
<text>{{ currentAvatar.decorName || "金马贺岁挂饰" }}</text>
@@ -93,6 +93,7 @@ import { onPullDownRefresh, onReachBottom } from "@dcloudio/uni-app";
import { getMyAvatar, userAvatarChange } from "@/api/mine.js";
import { useUserStore } from "@/stores/user";
import NavBar from "@/components/NavBar/NavBar.vue";
import { trackRecord } from "@/utils/common.js";
const userStore = useUserStore();
const list = ref([]);
@@ -115,6 +116,10 @@ const names = [
onMounted(() => {
fetchList(true);
trackRecord({
eventName: "avatar_record_page_visit",
eventType: `visit`,
});
});
onPullDownRefresh(() => {
@@ -174,6 +179,7 @@ const changeUserAvatar = async (imageUrl) => {
title: "头像更换成功",
icon: "success",
});
// userStore.fetchUserInfo();
}
};