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 9b6487d9
authored
Dec 05, 2023
by
前端
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'v3.22.2' into 'master'
V3.22.2 See merge request
!65
2 parents
f89d627b
59855f3c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
10 deletions
html/merchant/edit.html
html/merchant/index.html
html/merchant/edit.html
View file @
9b6487d
...
...
@@ -956,8 +956,7 @@ if (!$(data.elem).closest('[id^=project]').length) {
function
prepareExecuteFindMenuFun
(){
// 修改check_arr
if
(
_currentMerchantLevel
!=
'1'
&&
!
_superMerchantInfo
)
return
if
(
_currentMerchantLevel
!=
'1'
&&
!
_superMerchantInfo
?.
parentId
)
return
var
rolePageParams
=
{}
if
(
_currentMerchantLevel
!=
'1'
){
rolePageParams
=
{
...
...
@@ -2806,9 +2805,9 @@ loadSuperiorMerchants(currentPage).then(function(list) {
// init()
// })
$
(
'#confirm'
).
on
(
'click'
,
function
()
{
submitAuth
()
}
)
$
(
'#confirm'
).
on
(
'click'
,
debounce
(
function
()
{
submitAuth
();
}
,
2000
));
util
.
event
(
'lay-active'
,
{
checkAll
:
function
(
othis
)
{
...
...
@@ -2826,7 +2825,6 @@ loadSuperiorMerchants(currentPage).then(function(list) {
functionFlag
=
true
}
})
function
submitAuth
()
{
var
loadingSubmitIndex
=
layer
.
load
(
1
,
{
shade
:
[
0.5
,
'#fff'
]});
// shade属性是可选的
var
accountLevel
=
$
(
'#accountLevelElTab'
).
val
();
...
...
@@ -2853,7 +2851,6 @@ loadSuperiorMerchants(currentPage).then(function(list) {
return
;
}
if
(
!
accountInfo
&&
merchantAccountLevel
==
4
&&
qs
(
'status'
)
==
1
&&
!
merchantForm
.
effectiveStarttime
)
{
layer
.
msg
(
'请去“修改基本信息”填写账户有效期'
,
{
icon
:
2
...
...
@@ -2879,6 +2876,8 @@ loadSuperiorMerchants(currentPage).then(function(list) {
}
else
{
params
.
status
=
merchantForm
.
status
}
request
(
params
,
function
(
res
)
{
layer
.
close
(
loadingSubmitIndex
);
if
(
res
.
code
==
'0'
)
{
...
...
@@ -2892,6 +2891,7 @@ loadSuperiorMerchants(currentPage).then(function(list) {
})
layer
.
close
(
loadingSubmitIndex
);
}
else
{
layer
.
close
(
loadingSubmitIndex
);
layer
.
msg
(
'请选择产品'
,
{
icon
:
5
})
...
...
html/merchant/index.html
View file @
9b6487d
...
...
@@ -724,6 +724,7 @@
//批量创建商户
var
_uploadMerchantUrl
var
isRequestInProgress
=
false
;
$
(
'#batchCreate'
).
on
(
'click'
,
function
(
e
){
e
.
preventDefault
();
// 阻止按钮默认行为
...
...
@@ -745,6 +746,7 @@
// 在每次打开文件选择器之前重置 _uploadMerchantUrl
_uploadMerchantUrl
=
null
;
$
(
layero
).
find
(
'#selectFileBtn'
).
on
(
'click'
,
function
(){
isRequestInProgress
=
false
;
//重置允许确定发送请求
var
fileInput
=
$
(
layero
).
find
(
'#fileInput'
);
fileInput
.
val
(
''
);
// 重置文件输入元素
fileInput
.
click
();
...
...
@@ -784,6 +786,10 @@
});
},
yes
:
function
(
index
,
layero
){
if
(
isRequestInProgress
)
{
return
;
}
isRequestInProgress
=
true
;
var
fileInput
=
$
(
layero
).
find
(
'#fileInput'
)[
0
];
if
(
!
fileInput
.
files
.
length
&&
!
_uploadMerchantUrl
)
{
layer
.
msg
(
'请选择文件'
);
...
...
@@ -802,7 +808,7 @@
request
(
params
,
function
(
res
)
{
console
.
log
(
res
)
// 请求完成后,将标志变量设置回 false
// 关闭loading效果
layer
.
close
(
loadingIndex
);
if
(
res
.
code
==
0
){
...
...
@@ -816,9 +822,11 @@
updateTemplateLink
(
res
.
data
,
'下载失败模版'
,
true
);
}
}
}
}
,
)
layer
.
close
(
loadingIndex
);
setTimeout
(
function
(){
layer
.
close
(
loadingIndex
);
},
3000
)
$
(
layero
).
find
(
'#fileInput'
).
on
(
'change'
,
function
(){
var
originalTemplateUrl
=
'https://img01.glsx.com.cn/weapp/resource/saas/scrm/xlsx/批量创建商户导入模版.xlsx'
;
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