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 0f7b7e1f
authored
May 22, 2024
by
胡悦
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
修复地图选择地址问题
1 parent
25ba82e1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
18 deletions
html/merchant/add.html
html/merchant/addSubMerchant.html
html/merchant/add.html
View file @
0f7b7e1
...
...
@@ -1178,15 +1178,15 @@
}
}
// 判断省市是否匹配
if
(
merchantForm
.
provinceName
)
{
if
(
merchantForm
.
provinceName
!==
provinceIdx
||
merchantForm
.
cityName
!==
cityIdx
)
{
layer
.
open
({
title
:
'提示'
,
content
:
'您选择的地址错误,请重新选择'
})
return
}
}
//
if (merchantForm.provinceName) {
//
if (merchantForm.provinceName !== provinceIdx || merchantForm.cityName !== cityIdx) {
//
layer.open({
//
title: '提示',
//
content: '您选择的地址错误,请重新选择'
//
})
//
return
//
}
//
}
$
(
'#addrEl'
).
val
(
merchantForm
.
merchantAddress
)
var
province
=
provinceInfoList
.
find
(
item
=>
item
.
name
==
provinceIdx
)
$
(
'#startp'
).
val
(
province
.
name
)
...
...
html/merchant/addSubMerchant.html
View file @
0f7b7e1
...
...
@@ -1181,15 +1181,15 @@
}
}
// 判断省市是否匹配
if
(
merchantForm
.
provinceName
)
{
if
(
merchantForm
.
provinceName
!==
provinceIdx
||
merchantForm
.
cityName
!==
cityIdx
)
{
layer
.
open
({
title
:
'提示'
,
content
:
'您选择的地址错误,请重新选择'
})
return
}
}
//
if (merchantForm.provinceName) {
//
if (merchantForm.provinceName !== provinceIdx || merchantForm.cityName !== cityIdx) {
//
layer.open({
//
title: '提示',
//
content: '您选择的地址错误,请重新选择'
//
})
//
return
//
}
//
}
$
(
'#addrEl'
).
val
(
merchantForm
.
merchantAddress
)
var
province
=
provinceInfoList
.
find
(
item
=>
item
.
name
==
provinceIdx
)
$
(
'#startp'
).
val
(
province
.
name
)
...
...
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