Commit a0431127 by limin

样式修改

1 parent 7805d66b
/*-------------------------------------
layui 样式自定义
-------------------------------------*/
.layui-input:focus, .layui-textarea:focus {
border-color: #1989FA!important;
}
\ No newline at end of file
@import url(https://www.layuicdn.com/layui/css/layui.css);
@import url('./layui.css');
html, body {
height: 100%;
}
......
@import url(https://www.layuicdn.com/layui/css/layui.css);
@import url('./ztree.css');
@import url('./layui.css');
html, body {
height: 100%;
}
......@@ -94,10 +95,17 @@ main {
footer {
height: 30px;
background-color: red;
flex-shrink: 0;
}
.footer {
height: 100%;
display: flex;
justify-content: center;
align-items: center;
color: #37383A;
}
.pr-parent-ul {
display: flex;
}
......
<div class="footer">
<div>glsx</div>
</div>
<div class="footer">glsx</div>
<script></script>
......@@ -14,8 +14,7 @@
</a>
<dl class="layui-nav-child">
<dd><a href="javascript:;">修改信息</a></dd>
<dd><a href="javascript:;">安全管理</a></dd>
<dd><a href="javascript:;">退了</a></dd>
<dd><a href="javascript:;" id="logout">退了</a></dd>
</dl>
</li>
</ul>
......@@ -24,12 +23,14 @@
<div class="bread-crumb"></div>
</div>
<script>
layui.use('element', function () {
highlight(layui.$)
layui.use(['element', 'request'], function () {
var element = layui.element
element.init()
highlight()
bindEvents()
})
function highlight($) {
function highlight() {
var $ = layui.$
var _path = getPath()[0]
var _href = '/html/' + _path
$('.header-nav-item').each(function (i, e) {
......@@ -41,6 +42,19 @@
})
}
function bindEvents() {
$ = layui.$
request = layui.request
$('#logout').click(function () {
var sessionId = layui.store.get('token')
request({ sessionId: sessionId, method: 'org.ore.api.example.logout' }, function (result) {
layui.store.remove('external')
layui.store.remove('token')
goLogin()
})
})
}
function getPath() {
var _href = location.href.split('/')
var _path = _href.slice(_href.length - 2, _href.length)
......
......@@ -4,7 +4,7 @@
* @Author: limin
* @Date: 2021-07-19 16:37:36
* @LastEditors: limin
* @LastEditTime: 2021-07-23 14:02:28
* @LastEditTime: 2021-07-23 14:49:25
* @FilePath: \account\js\gtree.js
*/
layui.define(['ztree'], function (exports) {
......@@ -17,8 +17,8 @@ layui.define(['ztree'], function (exports) {
if (!$parentUl.hasClass('pr-parent-ul')) {
$parentUl.addClass('pr-parent-ul')
var $switchs = $parentUl.find('li >span.switch')
$switchs.addClass('op0')
$switchs.eq(0).removeClass('center_docu').addClass('bottom_docu op1')
$switchs.eq(0).removeClass('center_docu').addClass('bottom_docu')
$switchs.not(':eq(0)').addClass('op0')
}
}
}
......
......@@ -4,7 +4,7 @@
* @Author: limin
* @Date: 2021-07-15 15:46:53
* @LastEditors: limin
* @LastEditTime: 2021-07-22 18:08:14
* @LastEditTime: 2021-07-23 15:23:54
* @FilePath: \account\js\load.js
*/
;(function load() {
......@@ -20,6 +20,9 @@ function go(module, page, params) {
var href = '/html/' + module + '/' + page + '.html'
window.location.href = _p ? href + '?' + _p : href
}
function goLogin() {
window.location.href = '/login.html'
}
function loadLayConfig() {
layui.config({
base: '/js/'
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!