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 16fc7807
authored
Jan 16, 2025
by
huyue
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
修复
1 parent
b6ff8d26
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
24 deletions
html/merchant/edit.html
html/merchant/edit.html
View file @
16fc780
...
@@ -740,7 +740,6 @@
...
@@ -740,7 +740,6 @@
const
external_data
=
helper
.
store
.
get
(
'external'
).
val
const
external_data
=
helper
.
store
.
get
(
'external'
).
val
// 省市区
// 省市区
getProvinceList
()
getProvinceList
()
var
_int
=
null
// 禁用所有input框的回车事件
// 禁用所有input框的回车事件
var
inputs
=
document
.
getElementsByTagName
(
'input'
)
var
inputs
=
document
.
getElementsByTagName
(
'input'
)
...
@@ -2008,25 +2007,7 @@ loadSuperiorMerchants(currentPage).then(function(list) {
...
@@ -2008,25 +2007,7 @@ loadSuperiorMerchants(currentPage).then(function(list) {
// 省市回显
// 省市回显
if
(
merchantForm
.
provinceName
)
{
if
(
merchantForm
.
provinceName
)
{
console
.
log
(
provinceInfoList
);
console
.
log
(
provinceInfoList
);
if
(
!
provinceInfoList
.
length
)
{
setTimeout
(()
=>
{
_int
=
setInterval
(
function
()
{
if
(
provinceInfoList
.
length
)
showProince
()
},
100
)
}
}
if
(
step
==
1
)
{
getBusiScope
()
getCarBrandTree
()
getAccountType
()
recoveryBusiScopeCus
()
recoveryFile
()
}
else
{
getById
()
}
})
}
function
showProince
()
{
var
province
=
provinceInfoList
.
find
(
item
=>
item
.
name
.
indexOf
(
merchantForm
.
provinceName
)
!=
-
1
)
var
province
=
provinceInfoList
.
find
(
item
=>
item
.
name
.
indexOf
(
merchantForm
.
provinceName
)
!=
-
1
)
merchantForm
.
provinceName
=
province
.
name
merchantForm
.
provinceName
=
province
.
name
cityInfo
=
province
.
districts
cityInfo
=
province
.
districts
...
@@ -2050,13 +2031,25 @@ loadSuperiorMerchants(currentPage).then(function(list) {
...
@@ -2050,13 +2031,25 @@ loadSuperiorMerchants(currentPage).then(function(list) {
}
}
})
})
if
(
merchantForm
.
cityName
)
{
if
(
merchantForm
.
cityName
)
{
console
.
log
(
merchantForm
.
cityName
);
var
city
=
cityInfo
.
find
(
item
=>
item
.
name
.
indexOf
(
merchantForm
.
cityName
)
!=
-
1
)
var
city
=
cityInfo
.
find
(
item
=>
item
.
name
.
indexOf
(
merchantForm
.
cityName
)
!=
-
1
)
merchantForm
.
cityName
=
city
.
name
merchantForm
.
cityName
=
city
.
name
// merchantForm.cityCode = city.cityId
// merchantForm.cityCode = city.cityId
$
(
'#startc'
).
val
(
city
.
name
)
$
(
'#startc'
).
val
(
city
.
name
)
}
}
form
.
render
(
'select'
)
form
.
render
(
'select'
)
clearInterval
(
_int
)
},
1000
)
}
if
(
step
==
1
)
{
getBusiScope
()
getCarBrandTree
()
getAccountType
()
recoveryBusiScopeCus
()
recoveryFile
()
}
else
{
getById
()
}
})
}
}
...
@@ -2311,7 +2304,6 @@ loadSuperiorMerchants(currentPage).then(function(list) {
...
@@ -2311,7 +2304,6 @@ loadSuperiorMerchants(currentPage).then(function(list) {
// 省市区
// 省市区
function
getProvinceList
()
{
function
getProvinceList
()
{
return
new
Promise
((
resolve
,
reject
)
=>
{
var
params
=
{
var
params
=
{
keyword
:
'中国'
,
keyword
:
'中国'
,
extensions_code
:
1
,
extensions_code
:
1
,
...
@@ -2330,7 +2322,6 @@ loadSuperiorMerchants(currentPage).then(function(list) {
...
@@ -2330,7 +2322,6 @@ loadSuperiorMerchants(currentPage).then(function(list) {
})
})
pro
.
then
(
r
=>
{
pro
.
then
(
r
=>
{
provinceInfoList
=
JSON
.
parse
(
r
.
data
).
districts
[
0
].
districts
provinceInfoList
=
JSON
.
parse
(
r
.
data
).
districts
[
0
].
districts
resolve
(
provinceInfoList
)
com
.
getSelect
({
com
.
getSelect
({
id
:
'startp'
,
id
:
'startp'
,
name
:
'provinceName'
,
name
:
'provinceName'
,
...
@@ -2381,7 +2372,6 @@ loadSuperiorMerchants(currentPage).then(function(list) {
...
@@ -2381,7 +2372,6 @@ loadSuperiorMerchants(currentPage).then(function(list) {
}
}
})
})
})
})
})
// var ajax = layui.$.ajax
// var ajax = layui.$.ajax
// ajax({
// ajax({
...
...
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