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 287e6af3
authored
Dec 04, 2023
by
前端
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
修改功能权限添加防抖
1 parent
5866eca2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
4 deletions
html/merchant/edit.html
html/merchant/index.html
html/merchant/edit.html
View file @
287e6af
...
@@ -2827,6 +2827,7 @@ loadSuperiorMerchants(currentPage).then(function(list) {
...
@@ -2827,6 +2827,7 @@ loadSuperiorMerchants(currentPage).then(function(list) {
}
}
})
})
var
isRequestInProgress
=
false
;
function
submitAuth
()
{
function
submitAuth
()
{
var
loadingSubmitIndex
=
layer
.
load
(
1
,
{
shade
:
[
0.5
,
'#fff'
]});
// shade属性是可选的
var
loadingSubmitIndex
=
layer
.
load
(
1
,
{
shade
:
[
0.5
,
'#fff'
]});
// shade属性是可选的
var
accountLevel
=
$
(
'#accountLevelElTab'
).
val
();
var
accountLevel
=
$
(
'#accountLevelElTab'
).
val
();
...
@@ -2853,7 +2854,6 @@ loadSuperiorMerchants(currentPage).then(function(list) {
...
@@ -2853,7 +2854,6 @@ loadSuperiorMerchants(currentPage).then(function(list) {
return
;
return
;
}
}
if
(
!
accountInfo
&&
merchantAccountLevel
==
4
&&
qs
(
'status'
)
==
1
&&
!
merchantForm
.
effectiveStarttime
)
{
if
(
!
accountInfo
&&
merchantAccountLevel
==
4
&&
qs
(
'status'
)
==
1
&&
!
merchantForm
.
effectiveStarttime
)
{
layer
.
msg
(
'请去“修改基本信息”填写账户有效期'
,
{
layer
.
msg
(
'请去“修改基本信息”填写账户有效期'
,
{
icon
:
2
icon
:
2
...
@@ -2861,6 +2861,10 @@ loadSuperiorMerchants(currentPage).then(function(list) {
...
@@ -2861,6 +2861,10 @@ loadSuperiorMerchants(currentPage).then(function(list) {
return
return
}
}
getAuthList
()
getAuthList
()
if
(
isRequestInProgress
)
{
return
;
}
isRequestInProgress
=
true
;
if
(
requestList
.
length
!=
0
)
{
if
(
requestList
.
length
!=
0
)
{
var
params
=
{
var
params
=
{
merchantId
:
merchantId
,
merchantId
:
merchantId
,
...
@@ -2879,7 +2883,11 @@ loadSuperiorMerchants(currentPage).then(function(list) {
...
@@ -2879,7 +2883,11 @@ loadSuperiorMerchants(currentPage).then(function(list) {
}
else
{
}
else
{
params
.
status
=
merchantForm
.
status
params
.
status
=
merchantForm
.
status
}
}
request
(
params
,
function
(
res
)
{
request
(
params
,
function
(
res
)
{
// 请求完成后,将标志变量设置回 false
isRequestInProgress
=
false
;
layer
.
close
(
loadingSubmitIndex
);
layer
.
close
(
loadingSubmitIndex
);
if
(
res
.
code
==
'0'
)
{
if
(
res
.
code
==
'0'
)
{
layer
.
msg
(
'操作成功'
,
{
layer
.
msg
(
'操作成功'
,
{
...
...
html/merchant/index.html
View file @
287e6af
...
@@ -809,7 +809,6 @@
...
@@ -809,7 +809,6 @@
params
,
params
,
function
(
res
)
{
function
(
res
)
{
// 请求完成后,将标志变量设置回 false
// 请求完成后,将标志变量设置回 false
isRequestInProgress
=
false
;
// 关闭loading效果
// 关闭loading效果
layer
.
close
(
loadingIndex
);
layer
.
close
(
loadingIndex
);
if
(
res
.
code
==
0
){
if
(
res
.
code
==
0
){
...
@@ -823,9 +822,11 @@
...
@@ -823,9 +822,11 @@
updateTemplateLink
(
res
.
data
,
'下载失败模版'
,
true
);
updateTemplateLink
(
res
.
data
,
'下载失败模版'
,
true
);
}
}
}
}
}
}
,
)
)
layer
.
close
(
loadingIndex
);
setTimeout
(
function
(){
layer
.
close
(
loadingIndex
);
},
3000
)
$
(
layero
).
find
(
'#fileInput'
).
on
(
'change'
,
function
(){
$
(
layero
).
find
(
'#fileInput'
).
on
(
'change'
,
function
(){
var
originalTemplateUrl
=
'https://img01.glsx.com.cn/weapp/resource/saas/scrm/xlsx/批量创建商户导入模版.xlsx'
;
var
originalTemplateUrl
=
'https://img01.glsx.com.cn/weapp/resource/saas/scrm/xlsx/批量创建商户导入模版.xlsx'
;
updateTemplateLink
(
originalTemplateUrl
,
'下载模板'
,
false
);
updateTemplateLink
(
originalTemplateUrl
,
'下载模板'
,
false
);
...
...
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