feat(spec-3): complete section 3.1/3.2/3.3 activity verify settlement, role_flags, and distribution_relations

这个提交包含在:
xcbyy
2026-10-14 11:41:03 +08:00
父节点 8fc4d601c3
当前提交 a14f27d641
共有 5 个文件被更改,包括 255 次插入 和 17 次删除

查看文件

@@ -267,12 +267,12 @@
<script setup>
import { ref, computed, onMounted, onUnmounted } from 'vue';
import { onShow } from '@dcloudio/uni-app';
import { onLoad, onShow } from '@dcloudio/uni-app';
import AppTabBar from '@/components/CustomTabBar.vue';
import SkeletonScreen from '@/components/SkeletonScreen.vue';
import PrivacyModal from '@/components/PrivacyModal.vue';
import HomePopupModal from '@/components/HomePopupModal.vue';
import { getCompanions, getBanners, getNavCategories } from '@/common/api.js';
import { getCompanions, getBanners, getNavCategories, bindInviteCode } from '@/common/api.js';
import { ICONS } from '@/common/icons.js';
import { getCurrentThemeKey, applyThemeToNativeUI } from '@/common/theme.js';
import { getNavBarInfo } from '@/common/nav.js';
@@ -403,6 +403,20 @@ const onThemeChanged = (key) => {
applyThemeToNativeUI(key);
};
onLoad((options) => {
const rawInvite = options && (options.inviter_id || options.inviterId || options.code || options.scene);
if (rawInvite) {
const decoded = decodeURIComponent(String(rawInvite));
uni.setStorageSync('PENDING_INVITER_CODE', decoded);
const uid = uni.getStorageSync('userId');
if (uid) {
bindInviteCode(uid, decoded).then(() => {
uni.removeStorageSync('PENDING_INVITER_CODE');
}).catch(() => {});
}
}
});
onMounted(() => {
navInfo.value = getNavBarInfo();
currentThemeKey.value = getCurrentThemeKey();