function renderCloudPage(c, accounts){ accounts = accounts || []; var h = ''; // Render icon: URL → , emoji/text → plain text function iconHtml(icon, size){ if(!icon) return ''; if(icon.indexOf('/')===0 || icon.indexOf('http')===0){ return ''; } return ''+icon+''; } // Toggle grid h += '
⚡ 搜索网盘类型控制
'+ '

控制搜索引擎检索哪些网盘类型的资源

'+ '
'; CLOUD_TYPES.forEach(function(ct){ var on = __cloudToggles[ct.type]; h += '
'+ ''+iconHtml(ct.icon,20)+' '+ct.label+''+ ''+ '
'; }); h += '
'; // Account list — table style if(accounts.length > 0){ h += '
📋 已有账号 ('+accounts.length+')
'; h += '
'; h += ''+ ''+ ''+ ''+''+ ''+ ''+ ''+ ''+ ''; accounts.forEach(function(cfg){ var label = CLOUD_TYPES.find(function(ct){ return ct.type===cfg.cloud_type; }); var icon = (label||{}).icon||'⬜'; var active = cfg.is_active===1||cfg.is_active===true; var ck = cfg.verification_status==='valid'?'✅':(cfg.verification_status==='invalid'?'❌':'⏳'); h += ''+ ''+ ''+ ''+ ''+ ''+ ''+ ''+ ''+ ''; }); h += '
📱推广平台推广平台账号网盘昵称网盘UID验证空间转存操作
'+iconHtml(icon,18)+(label||{}).label+''+(cfg.promotion_account||'—')+''+(cfg.nickname||cfg.cloud_type)+''+(cfg.cookie_uid||cfg.cloud_type)+''+ck+''+(cfg.storage_used||cfg.storage_total?'💾 '+(cfg.storage_used||'?')+'/'+(cfg.storage_total||'?'):'—')+''+(cfg.total_saves?'转存'+cfg.total_saves+'次':'—')+''+ ''+ ''+ '
'; } // No accounts yet — show add button if(accounts.length === 0){ h += '
📋 已有账号 (0)

还没有添加任何网盘账号

'; } // Modal dialog h += ''; c.innerHTML = h; }