Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
bigdatainterservice
Overview
Overview
Details
Activity
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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
曹鹏
bigdatainterservice
Commits
dc000a55
Commit
dc000a55
authored
Jun 21, 2019
by
吴善钰
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
区域碰撞、时空伴随、时空回溯,调用地图手机号归属地接口,显示手机归属地
parent
2377913a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
37 additions
and
1 deletions
+37
-1
src/main/resources/static/js/sksjzcCommon.js
+37
-1
No files found.
src/main/resources/static/js/sksjzcCommon.js
View file @
dc000a55
...
...
@@ -53,7 +53,8 @@ function getSfzhYchy(obj){
if
(
zjhm
.
length
==
18
)
{
url
+=
"<img src=
\"
/images/asjxx_ychy.png
\"
width=20 height=20 onclick='sksjzcYchy(this,
\"
"
+
obj
.
objectValue
+
"
\"
,
\"
"
+
zjhm
+
"
\"
,
\"
"
+
obj
.
objectType
+
"
\"
,
\"
1
\"
)'/>"
;
}
else
{
url
+=
"<img src=
\"
/images/asjxx_ychy.png
\"
width=20 height=20 onclick='sksjzcYchy(this,
\"
"
+
obj
.
objectValue
+
"
\"
,
\"
"
+
zjhm
+
"
\"
,
\"
"
+
obj
.
objectType
+
"
\"
,
\"
3
\"
)'/>"
;
getPhoneCity
(
zjhm
);
url
+=
"<span style='color: rgb(255, 255, 255);padding: 0 3px;font-size: 8px;border-radius: 3px;background: #228b22;height: 14px;display: none;' id='"
+
zjhm
+
"'></span><img src=
\"
/images/asjxx_ychy.png
\"
width=20 height=20 onclick='sksjzcYchy(this,
\"
"
+
obj
.
objectValue
+
"
\"
,
\"
"
+
zjhm
+
"
\"
,
\"
"
+
obj
.
objectType
+
"
\"
,
\"
3
\"
)'/>"
;
}
}
return
url
;
...
...
@@ -128,6 +129,41 @@ function getXbmc(rows){
return
sexStr
;
}
/*
调用脑图手机号码归属地接口,获取号码归属地
mapPath在ychy.js里定义的
*/
function
getPhoneCity
(
phoneNo
){
var
data
=
JSON
.
stringify
({
"phoneNo"
:
phoneNo
});
$
.
ajax
({
url
:
mapPath
+
"/selectCityByPhoneNo"
,
//请求的url地址
dataType
:
"json"
,
//返回格式为json
contentType
:
'application/json;charset=UTF-8'
,
async
:
true
,
//请求是否异步,默认为异步,这也是ajax重要特性
data
:
data
,
//参数值,键值对
type
:
"POST"
,
//请求方式
success
:
function
(
req
){
console
.
log
(
req
);
var
data
=
req
.
data
;
console
.
log
(
data
);
if
(
data
.
length
>
0
)
{
var
city
=
data
[
0
].
CITY
;
if
(
city
!=
null
&&
city
!=
""
&&
city
!=
undefined
)
{
$
(
'#'
+
phoneNo
).
append
(
city
);
$
(
'#'
+
phoneNo
).
css
(
'display'
,
'inline'
);
}
console
.
log
(
city
);
}
},
error
:
function
(){
console
.
log
(
"调用地图手机号码归属地接口出错!"
);
}
});
}
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