Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
Shanxi_CCB_Card
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
余成
Shanxi_CCB_Card
Commits
fd49cae6
Commit
fd49cae6
authored
Aug 26, 2022
by
余成
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
地区限制
parent
c8cef419
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
code.zip
code.zip
+0
-0
index.html
index.html
+3
-2
No files found.
code.zip
0 → 100644
View file @
fd49cae6
File added
index.html
View file @
fd49cae6
...
@@ -852,10 +852,11 @@
...
@@ -852,10 +852,11 @@
var
geoc
=
new
BMap
.
Geocoder
();
var
geoc
=
new
BMap
.
Geocoder
();
geoc
.
getLocation
(
point
,
function
(
rs
)
{
geoc
.
getLocation
(
point
,
function
(
rs
)
{
var
addComp
=
rs
.
addressComponents
;
var
addComp
=
rs
.
addressComponents
;
console
.
log
(
addComp
.
city
);
console
.
log
(
"addComp.city"
,
addComp
.
province
);
//条件满足
//条件满足
// ["太原市","大同市","阳泉市","长治市","晋城市","朔州市","晋中市","运城市","忻州市","临汾市","吕梁市"].includes(addComp.city)
if
(
[
"太原市"
,
"大同市"
,
"阳泉市"
,
"长治市"
,
"晋城市"
,
"朔州市"
,
"晋中市"
,
"运城市"
,
"忻州市"
,
"临汾市"
,
"吕梁市"
].
include
(
addComp
.
city
)
)
{
if
(
addComp
.
province
==
'山西省'
)
{
// 端内
// 端内
toLink
(
targetUrl
);
toLink
(
targetUrl
);
}
else
{
}
else
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment