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 e4bd3831
authored
Nov 27, 2023
by
前端
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
添加注释
1 parent
18caa65a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
6 deletions
html/merchant/edit.html
html/merchant/edit.html
View file @
e4bd383
...
@@ -783,8 +783,8 @@ var mySelect = layui.xmSelect.render({
...
@@ -783,8 +783,8 @@ var mySelect = layui.xmSelect.render({
if
(
val
)
{
if
(
val
)
{
_searchValue
=
val
_searchValue
=
val
loadSuperiorMerchants
(
currentPage
=
1
,
val
).
then
(
function
(
res
){
loadSuperiorMerchants
(
currentPage
=
1
,
val
).
then
(
function
(
res
){
cb
([])
cb
([])
// 清空之前的结果
cb
(
res
)
cb
(
res
)
// 加载新结果
});
});
}
}
else
{
else
{
...
@@ -792,15 +792,14 @@ var mySelect = layui.xmSelect.render({
...
@@ -792,15 +792,14 @@ var mySelect = layui.xmSelect.render({
_searchValue
=
''
_searchValue
=
''
if
(
_merchantModel
!==
undefined
){
if
(
_merchantModel
!==
undefined
){
loadSuperiorMerchants
(
currentPage
=
1
).
then
(
function
(
list
)
{
loadSuperiorMerchants
(
currentPage
=
1
).
then
(
function
(
list
)
{
console
.
log
(
list
)
cb
([])
// 错误处理
cb
([])
cb
(
list
)
cb
(
list
)
});
});
}
}
}
}
},
},
on
:
function
(
data
)
{
on
:
function
(
data
)
{
console
.
log
(
'上级商户选择的数据'
,
data
)
//
console.log('上级商户选择的数据',data)
_superMerchantInfo
=
data
?.
arr
[
0
]
_superMerchantInfo
=
data
?.
arr
[
0
]
var
handleAccountTypeToArray
=
data
?.
arr
[
0
]?.
accountType
?.
split
(
','
)
var
handleAccountTypeToArray
=
data
?.
arr
[
0
]?.
accountType
?.
split
(
','
)
renderAccountTypes
(
handleAccountTypeToArray
,
merchantForm
.
accountType
,
merchantForm
.
subAccountTypeList
,
_currentMerchantLevel
)
renderAccountTypes
(
handleAccountTypeToArray
,
merchantForm
.
accountType
,
merchantForm
.
subAccountTypeList
,
_currentMerchantLevel
)
...
@@ -810,6 +809,7 @@ var mySelect = layui.xmSelect.render({
...
@@ -810,6 +809,7 @@ var mySelect = layui.xmSelect.render({
});
});
var
isXmSelectOpen
=
false
;
var
isXmSelectOpen
=
false
;
$
(
'#superiorMerchantSelect'
).
on
(
'focusin'
,
function
()
{
$
(
'#superiorMerchantSelect'
).
on
(
'focusin'
,
function
()
{
isXmSelectOpen
=
!
isXmSelectOpen
;
isXmSelectOpen
=
!
isXmSelectOpen
;
...
@@ -852,7 +852,6 @@ function loadMoreData() {
...
@@ -852,7 +852,6 @@ function loadMoreData() {
currentPage
++
;
currentPage
++
;
loadSuperiorMerchants
(
currentPage
).
then
(
function
(
list
)
{
loadSuperiorMerchants
(
currentPage
).
then
(
function
(
list
)
{
_xmSelectData
=
_xmSelectData
.
concat
(
list
);
_xmSelectData
=
_xmSelectData
.
concat
(
list
);
console
.
log
(
_xmSelectData
)
mySelect
.
update
({
data
:
_xmSelectData
});
mySelect
.
update
({
data
:
_xmSelectData
});
setTimeout
(
attachScrollListener
,
500
);
setTimeout
(
attachScrollListener
,
500
);
});
});
...
...
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