提交 8222aec3 编写于 作者: Skyeye云's avatar Skyeye云

优化

上级 57f48c48
......@@ -85,9 +85,11 @@
a.user_code userCode,
a.pwd_num_enc pwdNum,
a.`password`,
a.user_lock userLock
a.user_lock userLock,
b.win_bg_pic_url winBgPicUrl
FROM
sys_eve_user a
LEFT JOIN sys_eve_user_install b ON a.id = b.user_id
WHERE
a.user_code = #{userCode}
</select>
......
......@@ -31,7 +31,12 @@
// content: '<p style="padding:20px;">半成品仅供参观,多数设置本地存储,清除浏览器缓存即失效。<br/><br/>慢工出细活,如有需要的朋友请耐心等待。<br/><br/>望社区案例多多点赞,谢谢各位!<br/><br/>特色很多,如:<span style="color:#FF5722">桌面助手,主题设置</span>,大家慢慢参观</p>',
// area: ['400px', '400px']
// });
initWinConfig();
if(isNull(json.bean.winBgPicUrl)){
json.bean.winBgPicUrl = fileBasePath + '/assets/winbgpic/default.jpg';
}else{
json.bean.winBgPicUrl = fileBasePath + json.bean.winBgPicUrl;
}
initWinConfig(json);
}else{
location.href = "login.html";
}
......@@ -40,7 +45,7 @@
});
//初始化配置信息
function initWinConfig(){
function initWinConfig(json){
//设置窗口点击事件
$("body").on("dblclick", ".sec-clsss-btn", function(e){
......@@ -53,7 +58,7 @@
color: 32,
taskbarMode: 'bottom',
startSize: 'sm',
bgSrc: '../../assets/images/bg_01.jpg',
bgSrc: json.bean.winBgPicUrl,
lockBgSrc: '../../assets/images/bg_04.jpg'
}, //如果本地配置为空则给默认值
desktop: {//桌面菜单栏
......
var rowId = "";
layui.config({
base: basePath,
......@@ -58,7 +57,6 @@ layui.config({
loadTable();
});
var uploadInst = upload.render({
elem: '#addBean', // 绑定元素
url: reqBasePath + 'common003', // 上传接口
......
......@@ -11,7 +11,7 @@
<link href="../../assets/lib/winui/css/lockscreen.css" rel="stylesheet" />
<style type="text/css">
.lock-body{
background-image: url("../../assets/images/bg_01.jpg");
background-image: url("../../assets/winbgpic/default.jpg");
}
</style>
<script>
......
......@@ -11,7 +11,7 @@
<div class="winui-toolbar">
<div class="winui-tool">
<button id="reloadTable" class="winui-toolbtn"><i class="fa fa-refresh" aria-hidden="true"></i>刷新数据</button>
<button id="addBean" class="winui-toolbtn"><i class="fa fa-plus" aria-hidden="true"></i>新增win系统桌面图片</button>
<button id="addBean" class="winui-toolbtn"><i class="fa fa-cloud-upload" aria-hidden="true"></i>新增win系统桌面图片</button>
</div>
</div>
<div style="margin:auto 10px;">
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册