"@twa-dev/sdk": "^7.10.1"
ios 17
mywebapp:https://t.me/testElse_bot/whatTelegram
After registering, go to the lucky draw page and click Invite for Spins,No response at ios。
`import React, { memo } from 'react';
import { RightOutline } from 'antd-mobile-icons';
import WebApp from '@twa-dev/sdk';
import { useMemoizedFn, useRequest } from 'ahooks';
import { useNavigate } from 'umi';
import InvitationBg from '@/assets/game-invite-bg.png';
import ShareLinkIcon from '@/assets/share-link-icon.png';
import ShareCopyIcon from '@/assets/share-copy-icon.png';
import DownloadIcon from '@/assets/invite-download-icon.png';
import InviteBtnBg from '@/assets/invite-btn-bg.png';
import useTelegramInfo from '@/models/useTelegramInfo';
import { copyText } from '@/utils/tools';
import useUserInfo from '@/models/useUserInfo';
import api from '@/services';
"@twa-dev/sdk": "^7.10.1" ios 17 mywebapp:https://t.me/testElse_bot/whatTelegram After registering, go to the lucky draw page and click Invite for Spins,No response at ios。 `import React, { memo } from 'react'; import { RightOutline } from 'antd-mobile-icons'; import WebApp from '@twa-dev/sdk'; import { useMemoizedFn, useRequest } from 'ahooks'; import { useNavigate } from 'umi';
import InvitationBg from '@/assets/game-invite-bg.png'; import ShareLinkIcon from '@/assets/share-link-icon.png'; import ShareCopyIcon from '@/assets/share-copy-icon.png'; import DownloadIcon from '@/assets/invite-download-icon.png'; import InviteBtnBg from '@/assets/invite-btn-bg.png'; import useTelegramInfo from '@/models/useTelegramInfo'; import { copyText } from '@/utils/tools'; import useUserInfo from '@/models/useUserInfo'; import api from '@/services';
import './index.less';
export default memo(() => { const { userInfo } = useUserInfo(); const tmaInfo = useTelegramInfo();
const navigate = useNavigate();
const { data } = useRequest(() => { return api.common.getInviteList({ current: 1, size: 10 }); });
const handleInvite = useMemoizedFn(() => { if (tmaInfo?.initDataUnsafe?.user?.id) { // @ts-ignore WebApp.switchInlineQuery(tmaInfo.initDataUnsafe.user.id, [ 'users', 'groups', 'channels', 'bots', ]); } });
const handleCopy = useMemoizedFn(() => { copyText(
https://t.me/testElse_bot/whatTelegram?startapp=${userInfo?.id}
); });const handleDownload = useMemoizedFn(() => { WebApp.openLink(
https://www.iboloup.com/home?shareID=${userInfo?.id}&telegram_id=${tmaInfo?.initDataUnsafe?.user?.id}
, ); }); return (); }); `