feat(spec-3): complete section 3.1/3.2/3.3 activity verify settlement, role_flags, and distribution_relations
这个提交包含在:
@@ -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();
|
||||
|
||||
在新工单中引用
屏蔽一个用户