function page_sys_password(c){
  c.innerHTML = '<div class="card"><div class="card-title">修改密码</div>'+
    '<div class="form-group"><label>当前密码</label><input id="oldPwd" class="form-control" type="password"></div>'+
    '<div class="form-group"><label>新密码</label><input id="newPwd" class="form-control" type="password"></div>'+
    '<button class="btn btn-pri" onclick="changePwd()">修改</button></div>';
}
function changePwd(){
  api('/api/admin/change-password', {method:'POST',headers:{'Content-Type':'application/json'},
    body:JSON.stringify({old:document.getElementById('oldPwd').value,new:document.getElementById('newPwd').value})})
    .then(function(d){ toast(d.error||'密码修改成功', d.error?'error':'success'); });
}
function page_sys_manage(c){ page_sys_services(c); }
function page_sys_strategy(c){ c.innerHTML = '<div class="card">性能配置页面</div>'; }
