Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
h5
/
account
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 98b19f18
authored
Nov 29, 2023
by
前端
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
处理loading和高度
1 parent
040dfcb3
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
28 additions
and
3 deletions
html/employee/add.html
html/merchant/edit.html
html/employee/add.html
View file @
98b19f1
...
@@ -152,7 +152,7 @@
...
@@ -152,7 +152,7 @@
autocomplete=
"off"
autocomplete=
"off"
class=
"layui-input"
class=
"layui-input"
/>
/>
<div>
<div
style=
"height:22px"
>
<input
id=
"mesVerifyFlag"
type=
"checkbox"
name=
"mesVerifyFlag"
lay-filter=
"encrypt"
lay-skin=
"primary"
title=
"开启短信验证登录"
/>
<input
id=
"mesVerifyFlag"
type=
"checkbox"
name=
"mesVerifyFlag"
lay-filter=
"encrypt"
lay-skin=
"primary"
title=
"开启短信验证登录"
/>
</div>
</div>
</div>
</div>
...
...
html/merchant/edit.html
View file @
98b19f1
...
@@ -718,7 +718,25 @@
...
@@ -718,7 +718,25 @@
var
addressData
=
{}
var
addressData
=
{}
// 页面空白时间太长,将loading放置这里
// 页面空白时间太长,将loading放置这里
var
loadingDetailIndex
=
layer
.
load
(
1
,
{
shade
:
[
0.5
,
'#fff'
]});
// shade属性是可选的
// var loadingDetailIndex = layer.load(1, {shade: [0.5, '#fff']}); // shade属性是可选的
function
showLoading
(){
$
(
'body'
).
append
(
'<div id="overlay"></div>'
);
$
(
'#overlay'
).
css
({
'position'
:
'fixed'
,
'width'
:
'100%'
,
'height'
:
'100%'
,
'top'
:
'0'
,
'left'
:
'0'
,
'right'
:
'0'
,
'bottom'
:
'0'
,
'background-color'
:
'rgba(0,0,0,0.5)'
,
'z-index'
:
'2'
,
'cursor'
:
'wait'
})
layer
.
load
(
1
,
{
shade
:
[
0.5
,
'#fff'
],
shadeClose
:
false
});
// shade属性是可选的
}
showLoading
()
// 省市区
// 省市区
getProvinceList
()
getProvinceList
()
...
@@ -2547,6 +2565,12 @@ loadSuperiorMerchants(currentPage).then(function(list) {
...
@@ -2547,6 +2565,12 @@ loadSuperiorMerchants(currentPage).then(function(list) {
}
}
})
})
// 隐藏加载中,并移除遮罩层
function
hideLoading
(){
layer
.
closeAll
(
'loading'
)
$
(
'#overlay'
).
remove
()
}
// 查询商户的菜单权限树
// 查询商户的菜单权限树
function
findMenuFunTreeByMerId
(
rolePageParams
)
{
function
findMenuFunTreeByMerId
(
rolePageParams
)
{
var
params
=
{}
var
params
=
{}
...
@@ -2573,7 +2597,8 @@ loadSuperiorMerchants(currentPage).then(function(list) {
...
@@ -2573,7 +2597,8 @@ loadSuperiorMerchants(currentPage).then(function(list) {
var
loadingIndex
=
layer
.
load
(
1
,
{
shade
:
[
0.5
,
'#fff'
]});
// shade属性是可选的
var
loadingIndex
=
layer
.
load
(
1
,
{
shade
:
[
0.5
,
'#fff'
]});
// shade属性是可选的
request
(
params
,
function
(
res
)
{
request
(
params
,
function
(
res
)
{
// 关闭加载层
// 关闭加载层
layer
.
close
(
loadingDetailIndex
)
||
layer
.
close
(
loadingIndex
)
// layer.close(loadingDetailIndex) || layer.close(loadingIndex)
hideLoading
()
if
(
res
.
code
==
'0'
)
{
if
(
res
.
code
==
'0'
)
{
menuFunTreeData
=
res
.
data
menuFunTreeData
=
res
.
data
// 插个眼
// 插个眼
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment