Commit a0431127 by limin

样式修改

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