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
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
9 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) {
...
@@ -956,8 +956,7 @@ if (!$(data.elem).closest('[id^=project]').length) {
function
prepareExecuteFindMenuFun
(){
function
prepareExecuteFindMenuFun
(){
// 修改check_arr
// 修改check_arr
if
(
_currentMerchantLevel
!=
'1'
&&
!
_superMerchantInfo
?.
parentId
)
return
if
(
_currentMerchantLevel
!=
'1'
&&
!
_superMerchantInfo
)
return
var
rolePageParams
=
{}
var
rolePageParams
=
{}
if
(
_currentMerchantLevel
!=
'1'
){
if
(
_currentMerchantLevel
!=
'1'
){
rolePageParams
=
{
rolePageParams
=
{
...
@@ -2806,9 +2805,9 @@ loadSuperiorMerchants(currentPage).then(function(list) {
...
@@ -2806,9 +2805,9 @@ loadSuperiorMerchants(currentPage).then(function(list) {
// init()
// init()
// })
// })
$
(
'#confirm'
).
on
(
'click'
,
function
()
{
$
(
'#confirm'
).
on
(
'click'
,
debounce
(
function
()
{
submitAuth
()
submitAuth
();
}
)
}
,
2000
));
util
.
event
(
'lay-active'
,
{
util
.
event
(
'lay-active'
,
{
checkAll
:
function
(
othis
)
{
checkAll
:
function
(
othis
)
{
...
@@ -2826,7 +2825,6 @@ loadSuperiorMerchants(currentPage).then(function(list) {
...
@@ -2826,7 +2825,6 @@ loadSuperiorMerchants(currentPage).then(function(list) {
functionFlag
=
true
functionFlag
=
true
}
}
})
})
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 +2851,6 @@ loadSuperiorMerchants(currentPage).then(function(list) {
...
@@ -2853,7 +2851,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
...
@@ -2879,6 +2876,8 @@ loadSuperiorMerchants(currentPage).then(function(list) {
...
@@ -2879,6 +2876,8 @@ loadSuperiorMerchants(currentPage).then(function(list) {
}
else
{
}
else
{
params
.
status
=
merchantForm
.
status
params
.
status
=
merchantForm
.
status
}
}
request
(
params
,
function
(
res
)
{
request
(
params
,
function
(
res
)
{
layer
.
close
(
loadingSubmitIndex
);
layer
.
close
(
loadingSubmitIndex
);
if
(
res
.
code
==
'0'
)
{
if
(
res
.
code
==
'0'
)
{
...
@@ -2892,6 +2891,7 @@ loadSuperiorMerchants(currentPage).then(function(list) {
...
@@ -2892,6 +2891,7 @@ loadSuperiorMerchants(currentPage).then(function(list) {
})
})
layer
.
close
(
loadingSubmitIndex
);
layer
.
close
(
loadingSubmitIndex
);
}
else
{
}
else
{
layer
.
close
(
loadingSubmitIndex
);
layer
.
msg
(
'请选择产品'
,
{
layer
.
msg
(
'请选择产品'
,
{
icon
:
5
icon
:
5
})
})
...
...
html/merchant/index.html
View file @
9b6487d
...
@@ -724,6 +724,7 @@
...
@@ -724,6 +724,7 @@
//批量创建商户
//批量创建商户
var
_uploadMerchantUrl
var
_uploadMerchantUrl
var
isRequestInProgress
=
false
;
$
(
'#batchCreate'
).
on
(
'click'
,
function
(
e
){
$
(
'#batchCreate'
).
on
(
'click'
,
function
(
e
){
e
.
preventDefault
();
// 阻止按钮默认行为
e
.
preventDefault
();
// 阻止按钮默认行为
...
@@ -745,6 +746,7 @@
...
@@ -745,6 +746,7 @@
// 在每次打开文件选择器之前重置 _uploadMerchantUrl
// 在每次打开文件选择器之前重置 _uploadMerchantUrl
_uploadMerchantUrl
=
null
;
_uploadMerchantUrl
=
null
;
$
(
layero
).
find
(
'#selectFileBtn'
).
on
(
'click'
,
function
(){
$
(
layero
).
find
(
'#selectFileBtn'
).
on
(
'click'
,
function
(){
isRequestInProgress
=
false
;
//重置允许确定发送请求
var
fileInput
=
$
(
layero
).
find
(
'#fileInput'
);
var
fileInput
=
$
(
layero
).
find
(
'#fileInput'
);
fileInput
.
val
(
''
);
// 重置文件输入元素
fileInput
.
val
(
''
);
// 重置文件输入元素
fileInput
.
click
();
fileInput
.
click
();
...
@@ -784,6 +786,10 @@
...
@@ -784,6 +786,10 @@
});
});
},
},
yes
:
function
(
index
,
layero
){
yes
:
function
(
index
,
layero
){
if
(
isRequestInProgress
)
{
return
;
}
isRequestInProgress
=
true
;
var
fileInput
=
$
(
layero
).
find
(
'#fileInput'
)[
0
];
var
fileInput
=
$
(
layero
).
find
(
'#fileInput'
)[
0
];
if
(
!
fileInput
.
files
.
length
&&
!
_uploadMerchantUrl
)
{
if
(
!
fileInput
.
files
.
length
&&
!
_uploadMerchantUrl
)
{
layer
.
msg
(
'请选择文件'
);
layer
.
msg
(
'请选择文件'
);
...
@@ -802,7 +808,7 @@
...
@@ -802,7 +808,7 @@
request
(
request
(
params
,
params
,
function
(
res
)
{
function
(
res
)
{
console
.
log
(
res
)
// 请求完成后,将标志变量设置回 false
// 关闭loading效果
// 关闭loading效果
layer
.
close
(
loadingIndex
);
layer
.
close
(
loadingIndex
);
if
(
res
.
code
==
0
){
if
(
res
.
code
==
0
){
...
@@ -816,9 +822,11 @@
...
@@ -816,9 +822,11 @@
updateTemplateLink
(
res
.
data
,
'下载失败模版'
,
true
);
updateTemplateLink
(
res
.
data
,
'下载失败模版'
,
true
);
}
}
}
}
}
}
,
)
)
setTimeout
(
function
(){
layer
.
close
(
loadingIndex
);
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