This commit is contained in:
@@ -114,22 +114,25 @@
|
||||
};
|
||||
|
||||
const doRealName = async () => {
|
||||
const iccid = currentModalIccid.value;
|
||||
closeModal();
|
||||
|
||||
try {
|
||||
const data = await realnameApi.getLink(userStore.state.identifier, currentModalIccid.value);
|
||||
const data = await realnameApi.getLink(userStore.state.identifier, iccid, { showError: false });
|
||||
if (data.realname_url) {
|
||||
uni.setClipboardData({
|
||||
data: currentModalIccid.value,
|
||||
data: iccid,
|
||||
success: () => {
|
||||
uni.showToast({ title: 'ICCID已复制', icon: 'success' });
|
||||
}
|
||||
});
|
||||
closeModal();
|
||||
setTimeout(() => {
|
||||
window.location.href = data.realname_url;
|
||||
}, 1500);
|
||||
}
|
||||
} catch (e) {
|
||||
console.error('获取实名链接失败', e);
|
||||
uni.showToast({ title: e?.msg || '获取实名链接失败', icon: 'none' });
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user