feat: 添加无双相关

This commit is contained in:
2026-07-25 16:30:57 +08:00
parent 3569ff6b5a
commit d168e38305
4 changed files with 133 additions and 15 deletions
+15 -1
View File
@@ -307,8 +307,22 @@
};
const openThirdPartyService = (item) => {
if (!item?.url) return;
const title = encodeURIComponent(item.title || item.name || '第三方服务');
const targetUrl = encodeURIComponent(item.url);
if (typeof plus !== 'undefined' && plus?.runtime) {
uni.navigateTo({
url: `/pages/public/webview?title=${title}&url=${targetUrl}`,
});
return;
}
if (typeof window !== 'undefined' && typeof window.open === 'function') {
const opened = window.open(item.url, '_blank');
if (opened) return;
window.location.href = item.url;
return;
}
uni.navigateTo({
url: `/pages/public/webview?title=${encodeURIComponent(item.title || item.name || '第三方服务')}&url=${encodeURIComponent(item.url)}`,
url: `/pages/public/webview?title=${title}&url=${targetUrl}`,
});
};
const updateAvatar = async (avatar) => {