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 b47a93e0
authored
Nov 28, 2023
by
前端
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
loading优化
1 parent
86201862
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
4 deletions
html/merchant/edit.html
html/merchant/edit.html
View file @
b47a93e
...
@@ -716,6 +716,10 @@
...
@@ -716,6 +716,10 @@
var
provinceInfoList
=
[]
var
provinceInfoList
=
[]
var
cityInfo
=
[]
var
cityInfo
=
[]
var
addressData
=
{}
var
addressData
=
{}
// 页面空白时间太长,将loading放置这里
var
loadingDetailIndex
=
layer
.
load
(
1
,
{
shade
:
[
0.5
,
'#fff'
]});
// shade属性是可选的
// 省市区
// 省市区
getProvinceList
()
getProvinceList
()
...
@@ -1927,10 +1931,11 @@ function uniqueNodes(nodes) {
...
@@ -1927,10 +1931,11 @@ function uniqueNodes(nodes) {
}
}
// 获取商户信息
// 获取商户信息
function
getMerchantInfo
()
{
function
getMerchantInfo
()
{
var
loadingDetailIndex
=
layer
.
load
(
1
,
{
shade
:
[
0.5
,
'#fff'
]});
// shade属性是可选的
//
loadingDetailIndex = layer.load(1, {shade: [0.5, '#fff']}); // shade属性是可选的
getMerchantApi
(
merchantId
,
function
(
res
)
{
getMerchantApi
(
merchantId
,
function
(
res
)
{
layer
.
close
(
loadingDetailIndex
);
form
.
val
(
'merchantForm'
,
res
.
data
)
form
.
val
(
'merchantForm'
,
res
.
data
)
merchantForm
=
res
.
data
merchantForm
=
res
.
data
if
(
!
isFactory
)
{
if
(
!
isFactory
)
{
...
@@ -2587,7 +2592,7 @@ loadSuperiorMerchants(currentPage).then(function(list) {
...
@@ -2587,7 +2592,7 @@ 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
(
loading
Index
);
layer
.
close
(
loading
DetailIndex
)
||
layer
.
close
(
loadingIndex
)
if
(
res
.
code
==
'0'
)
{
if
(
res
.
code
==
'0'
)
{
menuFunTreeData
=
res
.
data
menuFunTreeData
=
res
.
data
// 插个眼
// 插个眼
...
@@ -2816,7 +2821,7 @@ loadSuperiorMerchants(currentPage).then(function(list) {
...
@@ -2816,7 +2821,7 @@ loadSuperiorMerchants(currentPage).then(function(list) {
})
})
function
submitAuth
()
{
function
submitAuth
()
{
var
loadingSubmitIndex
=
layer
.
load
(
1
,
{
shade
:
[
0.5
,
'#fff'
]});
// shade属性是可选的
var
accountLevel
=
$
(
'#accountLevelElTab'
).
val
();
var
accountLevel
=
$
(
'#accountLevelElTab'
).
val
();
var
superiorMerchant
=
layui
.
xmSelect
.
get
(
'#superiorMerchantSelect'
,
true
)?.
getValue
();
var
superiorMerchant
=
layui
.
xmSelect
.
get
(
'#superiorMerchantSelect'
,
true
)?.
getValue
();
var
accountTypeElements
=
$
(
'#accountTypeElRole input[type="checkbox"]:checked'
);
var
accountTypeElements
=
$
(
'#accountTypeElRole input[type="checkbox"]:checked'
);
...
@@ -2864,6 +2869,7 @@ loadSuperiorMerchants(currentPage).then(function(list) {
...
@@ -2864,6 +2869,7 @@ loadSuperiorMerchants(currentPage).then(function(list) {
params
.
status
=
merchantForm
.
status
params
.
status
=
merchantForm
.
status
}
}
request
(
params
,
function
(
res
)
{
request
(
params
,
function
(
res
)
{
layer
.
close
(
loadingSubmitIndex
);
if
(
res
.
code
==
'0'
)
{
if
(
res
.
code
==
'0'
)
{
layer
.
msg
(
'操作成功'
,
{
layer
.
msg
(
'操作成功'
,
{
icon
:
1
icon
:
1
...
...
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