diff --git a/design/prototype/screens/ui-desktop.html b/design/prototype/screens/ui-desktop.html index cce4729..aff0835 100644 --- a/design/prototype/screens/ui-desktop.html +++ b/design/prototype/screens/ui-desktop.html @@ -687,7 +687,7 @@
分流规则
自定义直连 / 走隧道 / 拒绝
- 智能分流 + 智能分流
断连保护 Kill Switch
断线时阻断网络,防止数据泄露
@@ -2058,6 +2058,8 @@ var _rtBack=document.getElementById('rtBack'); if(_rtBack) _rtBack.addEventListe window.renderRouting=function(){ var mode=S.routeMode||'smart', smart=mode==='smart'; document.querySelectorAll('#rtModeSeg button').forEach(function(b){ b.classList.toggle('is-active', b.dataset.mode===mode); }); + var mp=document.getElementById('routeModePill'); + if(mp){ var mk=mode==='global'?'rr.modeGlobal':mode==='direct'?'rr.modeDirect':'rr.modeSmart'; mp.setAttribute('data-i18n',mk); mp.textContent=_ri(mk); } ['rtCnRow','rtMyRules'].forEach(function(id){ var el=document.getElementById(id); if(!el) return; el.style.opacity=smart?'':'.4'; el.style.pointerEvents=smart?'':'none'; }); var fp=document.getElementById('rtFinalPill'); if(fp){ if(mode==='direct'){ fp.textContent=_ri('rr.actDirect'); fp.className='pill is-success'; } else { fp.textContent=_ri('rr.actProxy'); fp.className='pill is-warning'; } } diff --git a/design/prototype/screens/ui-mobile.html b/design/prototype/screens/ui-mobile.html index babdf4c..c68e402 100644 --- a/design/prototype/screens/ui-mobile.html +++ b/design/prototype/screens/ui-mobile.html @@ -869,7 +869,7 @@
分流规则
-
智能分流
+
智能分流
@@ -2497,6 +2497,8 @@ $('#rowRouting').addEventListener('click', ()=>{ subOpen('routing'); renderRouti window.renderRouting=function(){ const mode=state.routeMode||'smart', smart=mode==='smart'; document.querySelectorAll('#rtModeSeg button').forEach(b=>b.classList.toggle('is-active', b.dataset.mode===mode)); + const mp=document.getElementById('routeModePill'); + if(mp){ const mk=mode==='global'?'rr.modeGlobal':mode==='direct'?'rr.modeDirect':'rr.modeSmart'; mp.setAttribute('data-i18n',mk); mp.textContent=_ri(mk); } ['rtCnRow','rtMyRules'].forEach(id=>{ const el=document.getElementById(id); if(!el) return; el.style.opacity=smart?'':'.4'; el.style.pointerEvents=smart?'':'none'; }); const fp=document.getElementById('rtFinalPill'); if(fp){ if(mode==='direct'){ fp.textContent=_ri('rr.actDirect'); fp.className='pill is-success'; } else { fp.textContent=_ri('rr.actProxy'); fp.className='pill is-warning'; } }