查看eSIM兼容设备

Source: https://esimkitstore.com/pages/esim-compatible-devices

:root{ --accent-r:14; --accent-g:167; --accent-b:107; --accent: rgba(var(--accent-r),var(--accent-g),var(--accent-b),0.82); --accent-dark: rgba(var(--accent-r),var(--accent-g),var(--accent-b),0.95); --text:#0f172a; --muted:#667085; --line:#e6e9ef; --surface:#ffffff; --bg:#fafbfc; --hover:#eef8f3; --zebra:#f7f9fb; } #esim-compat-page{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Noto Sans",Arial,"PingFang SC","Hiragino Sans GB","Microsoft YaHei",sans-serif;color:var(--text);background:var(--bg);letter-spacing:.1px} .container{max-width:1280px;margin:0 auto;padding:22px 14px 36px} .hero{background:linear-gradient(180deg,#ffffff,#f7fbf9 70%);border:1px solid var(--line);border-radius:16px;padding:16px;margin-bottom:12px;box-shadow:0 6px 16px rgba(16,185,129,.05)} .heading{font-size:26px;font-weight:800;margin:0 0 4px} .sub{color:var(--muted);margin:0} .table-card{background:var(--surface);border:1px solid var(--line);border-radius:16px;overflow:hidden;box-shadow:0 6px 18px rgba(15,23,42,.05);margin-top:10px} .table-wrap{overflow:visible;} table{border-collapse:separate;border-spacing:0;width:100%;table-layout:fixed;font-size:12.5px;line-height:1.32;word-break:break-word;white-space:normal} thead th{position:sticky;top:0;z-index:2;background:var(--accent);color:#fff;font-weight:700;text-align:center;font-size:15px;padding:9px 8px;border-bottom:1px solid var(--accent-dark)} thead th:nth-child(1){width:24%} thead th:nth-child(2){width:56%} thead th:nth-child(3){width:20%} tbody td{padding:7px 9px;border-bottom:1px solid var(--line);color:var(--text);text-align:left} tbody tr:nth-child(odd){background:#fff} tbody tr:nth-child(even){background:var(--zebra)} tbody tr:hover{background:var(--hover);transition:background .15s ease} .td-max{text-align:center;color:#475467;font-feature-settings:"tnum";font-variant-numeric:tabular-nums} .chip{display:inline-block;padding:0 6px;border-radius:999px;background:rgba(var(--accent-r),var(--accent-g),var(--accent-b),0.12);color:rgba(var(--accent-r),var(--accent-g),var(--accent-b),0.95);font-size:12px;border:1px solid rgba(var(--accent-r),var(--accent-g),var(--accent-b),0.22)} .new-tag{margin-left:6px;background:#16a34a;color:#fff;font-size:11px;padding:2px 6px;border-radius:999px;font-weight:700;white-space:nowrap} .faq{margin-top:20px;background:var(--surface);border:1px solid var(--line);border-radius:16px;box-shadow:0 6px 16px rgba(15,23,42,.05);overflow:hidden} .faq-head{padding:12px 14px;border-bottom:1px solid var(--line)} .faq-head h2{font-size:20px;font-weight:800;margin:0} .accordion .qa{border-top:1px solid var(--line)} .accordion .qa:first-child{border-top:none} .q{cursor:pointer;padding:11px 14px;display:flex;justify-content:space-between;align-items:center;font-weight:700;color:var(--text)} .q:hover{background:#f7faf8} .q .plus{color:#9aa3ad;font-weight:800;margin-left:12px} .a{padding:0 14px 11px 14px;color:#374151;font-size:13px;display:none} .a.show{display:block} .note{padding:8px 14px 12px;color:var(--muted);font-size:12px} eSIM 兼容设备列表 快速查看哪些手机支持 eSIM 功能(可保存多张 eSIM 的数量因机型而异) 生产商 型号 最大 eSIM 数量 关于 eSIM 兼容手机的常见问题 以上信息仅供参考,实际支持情况可能因地区/固件版本不同而有所差异。 const DATA_URL = "https://cdn.shopify.com/s/files/1/0693/2326/0102/files/esim_devices.json?v=1756789390"; const LOCALES = { "zh-TW": {title:"eSIM 兼容設備列表",subtitle:"快速查看哪些手機支援 eSIM 功能(可保存多張 eSIM 的數量依機型而異)",brand:"生產商",model:"型號",max:"最大 eSIM 數量", faqTitle:"關於 eSIM 兼容手機的常見問題",faqNote:"以上資訊僅供參考,實際支援情況可能隨地區/韌體版本而不同。", newTag:"新機種", esim8plus:"8+", faqs:[ {q:"如何知道我的設備是否兼容 eSIM?",a:'查看我們的列表或執行:前往「設定」>「行動服務 / SIM」。若裝置支援 eSIM,會看到「加入/啟用 eSIM」。'}, {q:"三星 Galaxy S10 兼容 eSIM 嗎?",a:"遺憾的是,Samsung Galaxy S10 不支援 eSIM。"}, {q:"iPhone 10 支援 eSIM 嗎?",a:"不支援。最早支援 eSIM 的 iPhone 為 2018 年的 iPhone XR / iPhone XS。"}, {q:"華為 P40 Pro+ 兼容 eSIM 嗎?",a:"不。僅 P40 與 P40 Pro 兼容;Pro+(陶瓷外殼)不兼容。"}, {q:"中國大陸與香港的 iPhone 兼容 eSIM 嗎?",a:"多為雙實體 SIM、無 eSIM。部分機型(如 iPhone 13 mini、12 mini、SE 2020、XS)在港澳為單實體卡版本。"}, {q:"iPhone 可否同時使用 eSIM 與實體 SIM?",a:"可以。所有支援 eSIM 的 iPhone 支援雙卡,自 iPhone 13 起甚至可同時啟用 2 個 eSIM。"}, {q:"iPhone 15 系列支援 eSIM 嗎?",a:"是的,iPhone 15 全系列均支援。"}, {q:"支援 eSIM 的裝置可隨時切換電信商嗎?",a:"可以。可新增、變更或刪除 eSIM 設定檔,無需更換實體卡。"} ]}, "ja": {title:"eSIM 対応端末一覧",subtitle:"どの端末が eSIM に対応しているかを素早く確認できます",brand:"メーカー",model:"モデル",max:"最大 eSIM 数", faqTitle:"eSIM 対応端末に関するFAQ",faqNote:"本情報は参考です。地域やファームによって異なる場合があります。", newTag:"新モデル", esim8plus:"8+", faqs:[ {q:"自分の端末が eSIM に対応しているか確認するには?",a:'本リストか、設定 > モバイル通信 / SIM を開き、「eSIM を追加/有効化」があれば対応しています。'}, {q:"Samsung Galaxy S10 は eSIM に対応していますか?",a:"残念ながら、Galaxy S10 は eSIM 非対応です。"}, {q:"iPhone 10 は eSIM に対応していますか?",a:"非対応です。最初に eSIM に対応したのは 2018 年の iPhone XR / XS シリーズです。"}, {q:"HUAWEI P40 Pro+ は eSIM に対応しますか?",a:"いいえ。対応するのは P40 と P40 Pro のみです(Pro+ は非対応)。"}, {q:"中国本土や香港の iPhone は eSIM に対応しますか?",a:"多くは物理SIMのみ。一部機種のみ香港/マカオで対応。"}, {q:"iPhone で eSIM と物理 SIM を同時使用できますか?",a:"可能です。iPhone 13 以降は 2つの eSIM 同時有効化も可。"}, {q:"iPhone 15 シリーズは eSIM に対応していますか?",a:"はい。iPhone 15 全モデルが eSIM に対応しています。"}, {q:"eSIM 対応端末はキャリアを自由に切替可能ですか?",a:"可能です。eSIM プロファイルの追加・変更・削除ができ、物理 SIM を差し替える必要はありません。"} ]}, "en": {title:"eSIM Compatible Devices",subtitle:"Quickly see which phones support eSIM",brand:"Brand",model:"Model",max:"Max eSIMs", faqTitle:"FAQs about eSIM-Compatible Phones",faqNote:"Information here is for general guidance; actual support may vary by region/firmware.", newTag:"NEW", esim8plus:"8+", faqs:[ {q:"How do I know if my device is compatible with eSIM?",a:'Check our list or go to Settings > Mobile/Cellular > SIM. If you see an option to Add/Activate an eSIM, your device supports it.'}, {q:"Is Samsung Galaxy S10 compatible with eSIM?",a:"Unfortunately, the Galaxy S10 does not support eSIM."}, {q:"Does iPhone 10 support eSIM?",a:"No. The earliest iPhones with eSIM support are the 2018 iPhone XR and iPhone XS."}, {q:"Is Huawei P40 Pro+ compatible with eSIM?",a:"No. Only P40 and P40 Pro are compatible; the P40 Pro+ (ceramic) variant is not."}, {q:"Are Mainland China and Hong Kong iPhones compatible with eSIM?",a:"Most Mainland China/Hong Kong models have dual physical SIM and no eSIM. Some models (iPhone 13 mini, 12 mini, SE 2020, XS) have single physical-SIM versions in HK/Macau."}, {q:"Can I use both eSIM and a physical SIM on iPhone?",a:"Yes. All eSIM-capable iPhones support Dual SIM. From iPhone 13 onward, two eSIMs can even be active simultaneously."}, {q:"Do all iPhone 15 models support eSIM?",a:"Yes, the entire iPhone 15 lineup supports eSIM."}, {q:"Can an eSIM-enabled device switch operators at any time?",a:"Yes. You can add, switch, or delete eSIM profiles without swapping a physical SIM."} ]} }; /* === 语言判断:跟随 或 Shopify.locale === */ function getCurrentLang(){ const htmlLang = (document.documentElement.getAttribute('lang') || '').toLowerCase(); const shopifyLocale = (window.Shopify && Shopify.locale ? String(Shopify.locale) : '').toLowerCase(); const lang = htmlLang || shopifyLocale || 'en'; if (lang.startsWith('zh')) return 'zh-TW'; if (lang.startsWith('ja')) return 'ja'; return 'en'; } function applyI18n(dict){ document.querySelectorAll("[data-i18n]").forEach(el=>{ const k = el.getAttribute("data-i18n"); if (dict[k]) el.textContent = dict[k]; }); } function renderFAQ(dict){ const wrap=document.getElementById("faqWrap"); if (!wrap) return; wrap.innerHTML=""; (dict.faqs || []).forEach((item,i)=>{ const qa=document.createElement("div"); qa.className="qa"; qa.innerHTML=` ${i+1}. ${item.q} + ${item.a} `; wrap.appendChild(qa); }); wrap.querySelectorAll(".q").forEach(q=>{ q.addEventListener("click",()=>{ const i=q.getAttribute("data-qa"); const ans=document.getElementById("ans-"+i); if(ans) ans.classList.toggle("show"); }); }); } /* ---- 品牌 & 型号本地化(只改显示,不改原始数据)---- */ function localizeBrand(brand, lang){ const map = { "三星": { "zh-TW":"三星", "en":"Samsung", "ja":"サムスン" }, "華為": { "zh-TW":"華為", "en":"HUAWEI", "ja":"ファーウェイ" }, "小米": { "zh-TW":"小米", "en":"Xiaomi", "ja":"シャオミ" } }; return (map[brand] && map[brand][lang]) ? map[brand][lang] : brand; } function localizeModel(name, lang){ let s = String(name || ""); if (lang === "en"){ s = s.replace(/(日版)|\(日版\)/g," (Japan model)") .replace(/(韓版)|\(韓版\)/g," (Korea model)") .replace(/((國際版|国际版))|\((國際版|国际版)\)/g," (Global)") .replace(/,/g,", "); } else if (lang === "ja"){ s = s.replace(/(日版)|\(日版\)/g,"(日本版)") .replace(/(韓版)|\(韓版\)/g,"(韓国版)") .replace(/((國際版|国际版))|\((國際版|国际版)\)/g,"(グローバル版)") .replace(/,/g,"、"); } return s; } /* 表格渲染:先插入 3 行新机型(8+,带 NEW 标签),再渲染 JSON 原始数据 */ async function renderTable(){ const tbody=document.querySelector("#deviceTable tbody"); if(!tbody) return; tbody.innerHTML=""; const lang = getCurrentLang(); const dict = LOCALES[lang] || LOCALES.en; // 置顶三款新机(徽章显示 8+) ["iPhone 17","iPhone 17 Pro","iPhone Air"].forEach(name=>{ const tr=document.createElement("tr"); tr.innerHTML = ` Apple ${name} ${dict.newTag} ${dict.esim8plus} `; tbody.appendChild(tr); }); // 其余机型(应用本地化) try{ const res=await fetch(DATA_URL,{cache:"no-store"}); const data=await res.json(); (data||[]).forEach(group=>{ (group.models||[]).forEach(m=>{ const tr=document.createElement("tr"); tr.innerHTML=` ${localizeBrand(group.brand || "", lang)} ${localizeModel(m.name || "", lang)} ${(m.max!=null && m.max!=="") ? ' '+m.max+' ' : ''} `; tbody.appendChild(tr); }); }); }catch(e){ console.warn("设备 JSON 读取失败:",e); } } function refreshLocale(){ const dict = LOCALES[getCurrentLang()] || LOCALES.en; applyI18n(dict); renderFAQ(dict); // 让 NEW 和 8+ 徽章在语言切换后也同步 document.querySelectorAll('.new-tag').forEach(el=>{ el.textContent = dict.newTag; }); document.querySelectorAll('[data-i18n="esim8plus"]').forEach(el=>{ el.textContent = dict.esim8plus; }); } (async function init(){ await renderTable(); refreshLocale(); // 监听 html[lang] 变化(Shopify 切语言时会改它) const langObserver = new MutationObserver(refreshLocale); langObserver.observe(document.documentElement, { attributes:true, attributeFilter:["lang"] }); // section 重新注入时刷新 document.addEventListener('shopify:section:load', refreshLocale); document.addEventListener('shopify:section:select', refreshLocale); document.addEventListener('shopify:section:deselect', refreshLocale); document.addEventListener('shopify:block:select', refreshLocale); document.addEventListener('shopify:block:deselect', refreshLocale); })();