V2EX = way to explore V2EX 是一个关于分享和探索的地方
script> document.addEventListener('DOMContentLoaded', function() { // Function to escape HTML entities function escapeHtml(text) { if (!text) return ''; var div = document.createElement('div'); div.textCOntent= text; return div.innerHTML; } // Function to render campaign based on display format function renderCampaign(campaign) { let html = ''; let displayFormat = campaign.display_format || 'text-only'; let title = escapeHtml(campaign.title); let description = escapeHtml(campaign.description); let callToAction = escapeHtml(campaign.call_to_action); let link = escapeHtml(campaign.link); // Check if required image URL is available for the display format, fallback to text-only if not if (displayFormat === 'small-with-description' && !campaign.img_small_url) { displayFormat = 'text-only'; } else if (displayFormat === 'banner-only' && !campaign.img_banner_url) { displayFormat = 'text-only'; } else if ((displayFormat === 'big-only' || displayFormat === 'big-with-description' || displayFormat === 'big-with-title-description-button') && !campaign.img_big_url) { displayFormat = 'text-only'; } html = `
${title}
`; switch(displayFormat) { case 'text-only': html += `
`; break; case 'small-with-description': html += `
${campaign.img_small_cid ? `
` : ''}
${description}
`; break; case 'banner-only': html += `
`; break; case 'big-only': html += `
`; break; case 'big-with-description': html += `
`; html += `
`; break; case 'big-with-title-description-button': html += `
`; html += `
`; html += `
`; break; default: html += `
`; } html += `
` return html; } // Load campaign from emitter var xhr = new XMLHttpRequest(); xhr.open('GET', '/pro/emitter', true); xhr.setRequestHeader('Content-Type', 'application/json'); xhr.Onreadystatechange= function() { if (xhr.readyState === 4) { if (xhr.status === 200) { try { var campaign = JSON.parse(xhr.responseText); if (campaign && campaign.id) { var html = renderCampaign(campaign); document.getElementById('pro-campaign-container').innerHTML = html; } else { // No campaign to display, hide the container document.getElementById('pro-campaign-container').style.display = 'none'; } } catch (e) { // Parse error, hide the container document.getElementById('pro-campaign-container').style.display = 'none'; console.log('Error parsing campaign data: ' + e.message); } } else { // HTTP error, hide the container document.getElementById('pro-campaign-container').style.display = 'none'; console.log('Error loading campaign: HTTP ' + xhr.status); } } }; xhr.send(); });
这是一个创建于 1367 天前的主题,其中的信息可能已经有所发展或是发生改变。
尼玛的,什么玩意儿,除了能接受信息,在 Apple Watch 上操作,简直是灾难。
22 条回复 2022-01-17 14:00:06 +08:00  | | 1 phub2020 2022-01-15 22:57:31 +08:00 +1 |
 | | 2 yousabuk 2022-01-16 02:13:09 +08:00 via iPhone +1 |
 | | 3 ZE3kr 2022-01-16 03:06:25 +08:00 via iPhone 接收 /回复信息也不需要在 watch 上安装软件 |
 | | 4 FakerLeung 2022-01-16 03:34:53 +08:00 via iPhone 还卡得要死,消息一多就 gg |
 | | 5 INFP 2022-01-16 04:17:12 +08:00 确实 |
 | | 6 wanqiuyao 2022-01-16 08:02:59 +08:00 via iPhone |
 | | 8 ggmood 2022-01-16 11:25:14 +08:00 via iPhone 比 ios 端还差吗?我觉得都是并列第一 |
 | | 10 xuyaowen 2022-01-16 13:03:04 +08:00 微信早点死吧,乐色 |
 | | 11 anc95 2022-01-16 13:31:50 +08:00 Apple watch 上的应用基本没能用的,除了运动 / 健康 这些基本需求,其它不如手机 |
 | | 12 7gugu 2022-01-16 14:35:53 +08:00 就是 watchOS 的锅,只要 App 上了 watchOS 就没有好用的 |
 | | 13 MsHan 2022-01-16 17:14:34 +08:00 开着蜂窝网络,不连手机。 微信收不到消息,垃圾得很 |
 | | 14 Zeonjl 2022-01-16 17:59:01 +08:00 via iPhone 可以2 吗 |
 | | 15 forgetlight 2022-01-16 23:32:04 +08:00 其实大约半年前升级过一次, 现在至少打开微信,几秒内能从手机上把记录拉过来. 之前几年时间打开微信 watch 同步手机需要 30s 以上,直接卡死在那里..... 楼上说是 watchos 的锅的朋友, 建议体验一下 telegram 的 watch 版, 简直是两个次元. |
 | | 16 chenmobuys 2022-01-17 09:27:18 +08:00 为什么总想把手机上的应用塞到这么小的手表里,理解不了 |
 | | 17 XieGP 2022-01-17 09:40:17 +08:00 确实, 下载了之后只看 notification, 从来不打开 app 查看或回复消息, 因为打开就转圈 |
 | | 18 liminghui 2022-01-17 09:42:16 +08:00 在手表上你还想怎样?难不成手表也要生产力? |
 | | 19 NoUltimate 2022-01-17 10:16:54 +08:00 小米的米家我完全用不了,微信好歹能看一下通知 |
 | | 20 cityboy 2022-01-17 10:53:57 +08:00 +1 , 消息更新都是啥,我每次都不知道是哪条消息 |
 | | 21 lectror 2022-01-17 13:58:59 +08:00 凡是给微信洗地的请试试看 Telegram 的 WatchOS 版再开始舔腾讯,谢谢。 |