Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
梁建民
/
activity
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
b1ac7697
authored
Sep 27, 2021
by
liangjianmin
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
css
parent
c43b5ff2
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
183 additions
and
189 deletions
css/home/index.less
css/home/index.min.css
css/home/index.min.css.map
js/index.js
css/home/index.less
View file @
b1ac7697
...
...
@@ -301,7 +301,7 @@ body {
top: 0;
width: 100%;
height: 100%;
background: url("../../images/home/bg.jpg") no-repeat center;
background: url("../../images/home/bg.jpg")
#000c28
no-repeat center;
background-size: contain;
}
}
\ No newline at end of file
css/home/index.min.css
View file @
b1ac7697
...
...
@@ -456,7 +456,7 @@ body {
top
:
0
;
width
:
100%
;
height
:
100%
;
background
:
url("../../images/home/bg.jpg")
no-repeat
center
;
background
:
url("../../images/home/bg.jpg")
#000c28
no-repeat
center
;
background-size
:
contain
;
}
/*# sourceMappingURL=index.min.css.map */
\ No newline at end of file
css/home/index.min.css.map
View file @
b1ac7697
{"version":3,"sources":["E:/activity/css/common/base.less","index.less"],"names":[],"mappings":"AAAA;EACE,8BAAA;EACA,0BAAA;;AAGF,IAAK;EACH,UAAA;EACA,8BAAA;EACA,6CAAA;;AAGF;AAAM;EACJ,aAAa,sBAAsB,6BAAnC;;AAGF;AAAM;AAAK;AAAI;AAAI;AAAI;AAAI;AAAI;AAAI;AAAI;AAAI;AAAI;AAAI;AAAI;AAAI;AAAK;AAAM;AAAM;AAAU;AAAQ;AAAO;AAAU;AAAG;AAAY;AAAI;AAAI;AAAI;AAAQ;AAAS;AAAO;AAAS;AAAY;AAAQ;AAAQ;AAAQ;AAAM;AAAK;EACxN,SA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AAA;;AAGF,IAtER,SAOE,KAwCE,SAGE,GAoBG;EACC,gBAAA;;AA9NZ,IAuJE,SAOE,KAwCE,SAGE,GAwBE;EACE,kBAAA;EACA,WAAA;;AAnOZ,IAuJE,SAOE,KAwCE,SAGE,GA6BE;EACE,YAAA;;AAvOZ,IAuJE,SAOE,KAwCE,SAGE,GAiCE;EACE,eAAA;EACA,cAAA;;AA5OZ,IAuJE,SAOE,KAmFE;EAEE,gBAAA;EACA,aAAA;;AApPR,IAuJE,SAOE,KAmFE,WAKE;EACE,kBAAA;;AAvPV,IAuJE,SAOE,KAmFE,WAKE,MAGE;EACE,YAAA;;AA1PZ,IAuJE,SAOE,KAmFE,WAKE,MAGE,GAGE;EACE,eAAA;EACA,cAAA;;AA9Pd,IAuJE,SAOE,KAmFE,WAKE,MAGE,GAQE;EACE,kBAAA;EACA,WAAA;;AAnQd,IAuJE,SAOE,KAmFE,WAKE,MAGE,GAaE;EACE,YAAA;EACA,gBAAA;EACA,uBAAA;EACA,mBAAA;;AA1Qd,IAmRE;EACE,kBAAA;EACA,aAAA;EACA,OAAA;EACA,QAAA;EACA,YAAA;EACA,YAAA;EACA,gBAAgB,qCAAhB;EACA,eAAA;EACA,cAAA;EACA,cAAA;;AA7RJ,IAgSE;EACE,kBAAA;EACA,OAAA;EACA,QAAA;EACA,MAAA;EACA,WAAA;EACA,YAAA;EACA,gBAAgB,4CAAhB;EACA,wBAAA","file":"index.min.css"}
\ No newline at end of file
{"version":3,"sources":["E:/activity/css/common/base.less","index.less"],"names":[],"mappings":"AAAA;EACE,8BAAA;EACA,0BAAA;;AAGF,IAAK;EACH,UAAA;EACA,8BAAA;EACA,6CAAA;;AAGF;AAAM;EACJ,aAAa,sBAAsB,6BAAnC;;AAGF;AAAM;AAAK;AAAI;AAAI;AAAI;AAAI;AAAI;AAAI;AAAI;AAAI;AAAI;AAAI;AAAI;AAAI;AAAK;AAAM;AAAM;AAAU;AAAQ;AAAO;AAAU;AAAG;AAAY;AAAI;AA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hB;EACA,wBAAA;;AAGF,IAjER,SAOE,KAwCE,SAGE,GAeG;EACC,gBAAgB,4CAAhB;EACA,wBAAA;;AAGF,IAtER,SAOE,KAwCE,SAGE,GAoBG;EACC,gBAAA;;AA9NZ,IAuJE,SAOE,KAwCE,SAGE,GAwBE;EACE,kBAAA;EACA,WAAA;;AAnOZ,IAuJE,SAOE,KAwCE,SAGE,GA6BE;EACE,YAAA;;AAvOZ,IAuJE,SAOE,KAwCE,SAGE,GAiCE;EACE,eAAA;EACA,cAAA;;AA5OZ,IAuJE,SAOE,KAmFE;EAEE,gBAAA;EACA,aAAA;;AApPR,IAuJE,SAOE,KAmFE,WAKE;EACE,kBAAA;;AAvPV,IAuJE,SAOE,KAmFE,WAKE,MAGE;EACE,YAAA;;AA1PZ,IAuJE,SAOE,KAmFE,WAKE,MAGE,GAGE;EACE,eAAA;EACA,cAAA;;AA9Pd,IAuJE,SAOE,KAmFE,WAKE,MAGE,GAQE;EACE,kBAAA;EACA,WAAA;;AAnQd,IAuJE,SAOE,KAmFE,WAKE,MAGE,GAaE;EACE,YAAA;EACA,gBAAA;EACA,uBAAA;EACA,mBAAA;;AA1Qd,IAmRE;EACE,kBAAA;EACA,aAAA;EACA,OAAA;EACA,QAAA;EACA,YAAA;EACA,YAAA;EACA,gBAAgB,qCAAhB;EACA,eAAA;EACA,cAAA;EACA,cAAA;;AA7RJ,IAgSE;EACE,kBAAA;EACA,OAAA;EACA,QAAA;EACA,MAAA;EACA,WAAA;EACA,YAAA;EACA,gBAAgB,oDAAhB;EACA,wBAAA","file":"index.min.css"}
\ No newline at end of file
js/index.js
View file @
b1ac7697
...
...
@@ -23,203 +23,195 @@
map
:
function
()
{
var
myChart
=
echarts
.
init
(
document
.
getElementById
(
'map'
));
var
planePath
=
'path://M250 150 L150 350 L350 350 Z'
;
var
geoCoordMap
=
{
深圳
:
[
120.061103
,
16.550859
],
位置
1
:
[
-
73.865402
,
40.845
],
位置
2
:
[
-
90.24311
,
11.052713
],
};
var
BJData
=
[
[
{
name
:
"位置1"
,
value
:
2370
},
{
name
:
"深圳"
}
],
[
{
name
:
"位置2"
,
value
:
2371
},
{
name
:
"深圳"
}
]
];
var
convertData
=
function
(
data
)
{
var
res
=
[];
for
(
var
i
=
0
;
i
<
data
.
length
;
i
++
)
{
var
dataItem
=
data
[
i
];
var
fromCoord
=
geoCoordMap
[
dataItem
[
0
].
name
];
var
toCoord
=
geoCoordMap
[
dataItem
[
1
].
name
];
if
(
fromCoord
&&
toCoord
)
{
res
.
push
({
fromName
:
dataItem
[
0
].
name
,
toName
:
dataItem
[
1
].
name
,
coords
:
[
fromCoord
,
toCoord
],
value
:
dataItem
[
0
].
value
});
}
}
return
res
;
};
var
series
=
[];
[[
"深圳"
,
BJData
]].
forEach
(
function
(
item
,
i
)
{
series
.
push
({
name
:
item
[
2
],
type
:
"lines"
,
zlevel
:
2
,
effect
:
{
show
:
true
,
// //飞机的速度 这里是s单位
period
:
6
,
trailLength
:
0
,
symbol
:
planePath
,
// 飞机大小
symbolSize
:
12
},
lineStyle
:
{
normal
:
{
color
:
"#ffb43f"
,
// 线条宽度
type
:
'dotted'
,
width
:
2
,
opacity
:
1
,
curveness
:
0.2
$
.
ajax
({
type
:
"GET"
,
url
:
IndexController
.
apiUrl
+
"/bigtv/api/cityCoordinate"
,
data
:
{},
dataType
:
'json'
,
success
:
function
(
res
)
{
debugger
var
geoCoordMap
=
res
.
geoCoordMap
;
var
BJData
=
res
.
BJData
;
var
convertData
=
function
(
data
)
{
var
res
=
[];
for
(
var
i
=
0
;
i
<
data
.
length
;
i
++
)
{
var
dataItem
=
data
[
i
];
var
fromCoord
=
geoCoordMap
[
dataItem
[
0
].
name
];
var
toCoord
=
geoCoordMap
[
dataItem
[
1
].
name
];
if
(
fromCoord
&&
toCoord
)
{
res
.
push
({
fromName
:
dataItem
[
0
].
name
,
toName
:
dataItem
[
1
].
name
,
coords
:
[
fromCoord
,
toCoord
],
value
:
dataItem
[
0
].
value
});
}
},
label
:
{
normal
:
{
show
:
false
,
position
:
'middle'
,
formatter
:
'{b}'
}
return
res
;
};
var
series
=
[];
[[
"深圳"
,
BJData
]].
forEach
(
function
(
item
,
i
)
{
series
.
push
({
name
:
item
[
2
],
type
:
"lines"
,
zlevel
:
2
,
effect
:
{
show
:
true
,
// //飞机的速度 这里是s单位
period
:
6
,
trailLength
:
0
,
symbol
:
planePath
,
// 飞机大小
symbolSize
:
12
},
lineStyle
:
{
normal
:
{
color
:
"#ffb43f"
,
// 线条宽度
type
:
'dotted'
,
width
:
2
,
opacity
:
1
,
curveness
:
0.2
}
},
label
:
{
normal
:
{
show
:
false
,
position
:
'middle'
,
formatter
:
'{b}'
}
},
data
:
convertData
(
item
[
1
])
},
{
type
:
"effectScatter"
,
coordinateSystem
:
"geo"
,
zlevel
:
2
,
rippleEffect
:
{
//涟漪特效
color
:
'#ffb43f'
,
//涟漪的颜色
period
:
4
,
//动画时间,值越小速度越快
brushType
:
"stroke"
,
//波纹绘制方式 stroke, fill
scale
:
4
//波纹圆环最大限制,值越大波纹越大
},
label
:
{
normal
:
{
show
:
false
,
position
:
"right"
,
//显示位置
offset
:
[
5
,
0
],
//偏移设置
formatter
:
"{b}"
,
//圆环显示文字
textStyle
:
{
color
:
"red"
}
},
emphasis
:
{
show
:
true
}
},
symbol
:
"circle"
,
symbolSize
:
function
(
val
)
{
return
4
+
val
[
2
]
/
1000
;
//圆环大小
},
itemStyle
:
{
normal
:
{
show
:
false
,
color
:
"#f4c509"
,
borderColor
:
"#f4c509"
}
},
data
:
item
[
1
].
map
(
function
(
dataItem
)
{
return
{
name
:
dataItem
[
0
].
name
,
value
:
geoCoordMap
[
dataItem
[
0
].
name
].
concat
([
dataItem
[
0
].
value
])
};
})
},
//被攻击点
{
type
:
"scatter"
,
coordinateSystem
:
"geo"
,
zlevel
:
2
,
rippleEffect
:
{
period
:
4
,
brushType
:
"stroke"
,
scale
:
4
},
label
:
{
normal
:
{
show
:
true
,
position
:
"right"
,
color
:
"#00ffff"
,
formatter
:
"{b}"
,
textStyle
:
{
color
:
"#0bc7f3"
}
},
emphasis
:
{
show
:
true
}
},
symbol
:
"circle"
,
symbolSize
:
15
,
itemStyle
:
{
normal
:
{
show
:
true
,
color
:
"#ff4301"
}
},
data
:
[{
name
:
item
[
0
],
value
:
geoCoordMap
[
item
[
0
]].
concat
([
10
])
}]
}
},
data
:
convertData
(
item
[
1
])
},
{
type
:
"effectScatter"
,
coordinateSystem
:
"geo"
,
zlevel
:
2
,
rippleEffect
:
{
//涟漪特效
color
:
'#ffb43f'
,
//涟漪的颜色
period
:
4
,
//动画时间,值越小速度越快
brushType
:
"stroke"
,
//波纹绘制方式 stroke, fill
scale
:
4
//波纹圆环最大限制,值越大波纹越大
},
label
:
{
normal
:
{
show
:
false
,
position
:
"right"
,
//显示位置
offset
:
[
5
,
0
],
//偏移设置
formatter
:
"{b}"
,
//圆环显示文字
textStyle
:
{
color
:
"red"
);
});
var
option
=
{
tooltip
:
{
trigger
:
"item"
,
formatter
:
function
(
params
,
ticket
,
callback
)
{
if
(
params
.
seriesType
==
"effectScatter"
)
{
return
params
.
marker
+
params
.
data
.
name
+
""
+
params
.
data
.
value
[
2
];
}
else
if
(
params
.
seriesType
==
"lines"
)
{
return
params
.
data
.
fromName
+
" -> "
+
params
.
data
.
toName
+
"<br />"
+
params
.
data
.
value
;
}
else
{
return
params
.
name
;
}
},
emphasis
:
{
show
:
true
}
},
symbol
:
"circle"
,
symbolSize
:
function
(
val
)
{
return
4
+
val
[
2
]
/
1000
;
//圆环大小
},
itemStyle
:
{
normal
:
{
show
:
false
,
color
:
"#f4c509"
,
borderColor
:
"#f4c509"
}
},
data
:
item
[
1
].
map
(
function
(
dataItem
)
{
return
{
name
:
dataItem
[
0
].
name
,
value
:
geoCoordMap
[
dataItem
[
0
].
name
].
concat
([
dataItem
[
0
].
value
])
};
})
},
//被攻击点
{
type
:
"scatter"
,
coordinateSystem
:
"geo"
,
zlevel
:
2
,
rippleEffect
:
{
period
:
4
,
brushType
:
"stroke"
,
scale
:
4
},
label
:
{
normal
:
{
show
:
true
,
position
:
"right"
,
color
:
"#00ffff"
,
formatter
:
"{b}"
,
textStyle
:
{
color
:
"#0bc7f3"
geo
:
{
map
:
"world"
,
label
:
{
emphasis
:
{
show
:
false
}
},
emphasis
:
{
show
:
true
}
},
symbol
:
"circle"
,
symbolSize
:
15
,
itemStyle
:
{
normal
:
{
show
:
true
,
color
:
"#ff4301"
zoom
:
1.2
,
roam
:
true
,
//是否允许缩放
layoutCenter
:
[
"47%"
,
"61%"
],
//地图位置
layoutSize
:
"100%"
,
itemStyle
:
{
normal
:
{
color
:
"rgba(48,97,186,0.3)"
,
//地图背景色
borderColor
:
"rgba(0, 0, 0, 0)"
//省市边界线
},
emphasis
:
{
color
:
"rgba(48,97,186,0.3)"
//悬浮背景
}
}
},
data
:
[{
name
:
item
[
0
],
value
:
geoCoordMap
[
item
[
0
]].
concat
([
10
])
}]
}
);
series
:
series
};
myChart
.
setOption
(
option
);
}
});
var
option
=
{
tooltip
:
{
trigger
:
"item"
,
formatter
:
function
(
params
,
ticket
,
callback
)
{
if
(
params
.
seriesType
==
"effectScatter"
)
{
return
params
.
marker
+
params
.
data
.
name
+
""
+
params
.
data
.
value
[
2
];
}
else
if
(
params
.
seriesType
==
"lines"
)
{
return
params
.
data
.
fromName
+
" -> "
+
params
.
data
.
toName
+
"<br />"
+
params
.
data
.
value
;
}
else
{
return
params
.
name
;
}
},
},
geo
:
{
map
:
"world"
,
label
:
{
emphasis
:
{
show
:
false
}
},
zoom
:
1.2
,
roam
:
true
,
//是否允许缩放
layoutCenter
:
[
"47%"
,
"61%"
],
//地图位置
layoutSize
:
"100%"
,
itemStyle
:
{
normal
:
{
color
:
"rgba(48,97,186,0.3)"
,
//地图背景色
borderColor
:
"rgba(0, 0, 0, 0)"
//省市边界线
},
emphasis
:
{
color
:
"rgba(48,97,186,0.3)"
//悬浮背景
}
}
},
series
:
series
};
myChart
.
setOption
(
option
);
return
this
;
},
timeFormat
:
function
()
{
...
...
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