151 lines
5.5 KiB
HTML
151 lines
5.5 KiB
HTML
<!DOCTYPE html>
|
||
<html>
|
||
|
||
<head>
|
||
<meta http-equiv="Content-type" content="text/html; charset=utf-8">
|
||
<meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1">
|
||
<meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1">
|
||
<link href="/jscss/style.css" rel="stylesheet" type="text/css" />
|
||
<script type="text/javascript" charset="utf-8" src="/jscss/theme.js"></script>
|
||
<style type="text/css">
|
||
body {
|
||
background: linear-gradient(318deg, var(--bg6), var(--bg1));
|
||
height: 100vh;
|
||
color: var(--txt7);
|
||
}
|
||
|
||
#id_work {
|
||
padding-left: 4em;
|
||
margin-bottom: 1em;
|
||
}
|
||
|
||
#id_work>div {
|
||
padding: 0.5em 0;
|
||
}
|
||
|
||
.cline {
|
||
background-image: linear-gradient(90deg, var(--bg9) 0%, transparent 50%);
|
||
height: 1px;
|
||
}
|
||
|
||
h1 {
|
||
font-size: 1.5em;
|
||
padding: 0.8em 1.8em;
|
||
letter-spacing: 3px;
|
||
display: inline-block;
|
||
background: linear-gradient(166deg, var(--txt9), var(--bg1));
|
||
background-clip: text;
|
||
-webkit-background-clip: text;
|
||
color: transparent;
|
||
font-weight: bolder;
|
||
}
|
||
|
||
.mt {
|
||
padding: 1em 0 1em 2em;
|
||
line-height: 1.5em;
|
||
}
|
||
|
||
.m1 {
|
||
padding-left: 4em;
|
||
margin-bottom: 1em;
|
||
}
|
||
|
||
.bmimg {
|
||
pointer-events: none;
|
||
}
|
||
|
||
.bmimg>div {
|
||
position: fixed;
|
||
right: 0;
|
||
bottom: 0;
|
||
}
|
||
|
||
.bmimg>div>img {
|
||
max-height: 35em;
|
||
max-width: 100%;
|
||
}
|
||
</style>
|
||
</head>
|
||
|
||
<body>
|
||
<div class="col-24 stl">
|
||
<h1 class="lang">众产 <sup>®</sup></h1>
|
||
<div class="cline"></div>
|
||
<div class="mt"><span class="lang">您好</span>,<span id="id_name" style="font-size:1.3em;" class="lang"></span></div>
|
||
<div class="m1"><span class="lang">登录账号</span> <span id="id_loginuser"></span></div>
|
||
<div class="m1"><span class="lang">所属组织</span> <span id="id_depart" class="lang"></span></div>
|
||
<div class="m1"><span class="lang">加入日期</span> <span id="id_addtimes"></span></div>
|
||
<div class="m1"><span class="lang">权限范围</span> <span id="id_power"></span></div>
|
||
<div class="cline"></div>
|
||
<div class="mt lang">待办工作</div>
|
||
<div id="id_work"></div>
|
||
</div>
|
||
<div class="bmimg">
|
||
<div>
|
||
<img src="/ud/img/welcome.png" />
|
||
</div>
|
||
</div>
|
||
<script type="text/javascript" src="/jscss/ciy.js"></script>
|
||
<script type="text/javascript" src="./common.js"></script>
|
||
<script type="text/javascript">
|
||
//众产区块链前端框架。源码透明可审计,建立无条件信任秩序。
|
||
'use strict';
|
||
ciyfn.pageload(function () {
|
||
ciyfn.callfunc("init", {}, function (json) {
|
||
var me = ciyfn.getstorage(ciy_vars.tokenfield);
|
||
$5('#id_name').html(ciyfn.lang(me.name));
|
||
$5('#id_loginuser').html(ciyfn.lang(me.mobile));
|
||
$5('#id_depart').html(ciyfn.lang(me.depart));
|
||
$5('#id_addtimes').html(ciyfn.todatetime(me.addtimes, 'Y年m月d日'));
|
||
var powerhtml = '';
|
||
if (me.power == '.*.')
|
||
powerhtml = '<kbd style="text-shadow:none;">' + ciyfn.lang('超级管理员') + '</kbd>';
|
||
else {
|
||
var ds = me.power.split('.');
|
||
var p1 = 0;
|
||
var p2 = 0;
|
||
for (var d in ds) {
|
||
if (ds[d] == '')
|
||
continue;
|
||
if (isNaN(parseInt(ds[d].charAt(ds[d].length - 1))))
|
||
p2++;
|
||
else
|
||
p1++;
|
||
}
|
||
if (p1 > 0)
|
||
powerhtml += '<code>' + ciyfn.lang('主权限') + p1 + ciyfn.lang('项') + '</code>';
|
||
if (p2 > 0)
|
||
powerhtml += '<code>' + ciyfn.lang('子权限') + p2 + ciyfn.lang('项') + '</code>';
|
||
}
|
||
$5('#id_power').html(powerhtml);
|
||
|
||
var html = '';
|
||
for (var i in json.works) {
|
||
if(json.works[i].url)
|
||
html += '<div><a onclick="ciyfn.sendsignal(window.top, \'manage_ifropen\', {url: \'' + json.works[i].url + '\', name: \'' + (json.works[i].tab ? json.works[i].tab : '待办任务') + '\'});">' + ciyfn.lang(json.works[i].title) + '</a></div>';
|
||
else
|
||
html += '<div>' + ciyfn.lang(json.works[i].title) + '</div>';
|
||
}
|
||
if (html == '')
|
||
html = ciyfn.lang('暂无');
|
||
$5('#id_work').html(html);
|
||
ciyfn.domlang();
|
||
if (me.needpass) {
|
||
ciyfn.alert({
|
||
content: '请先修改密码'
|
||
, btns: ["确定"]
|
||
, cb: function (opn) {
|
||
opn.close();
|
||
ciyfn.sendsignal(window.top, 'manage_ifropen', {
|
||
url: 'rigger/chgpass.html'
|
||
, name: '修改默认密码'
|
||
});
|
||
}
|
||
});
|
||
}
|
||
});
|
||
});
|
||
</script>
|
||
</body>
|
||
|
||
</html> |