Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
ZhangJianFrontEnd
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
vue-project
ZhangJian
ZhangJianFrontEnd
Commits
09e5419f
Project 'vue-project/liangXing/frontEnd' was moved to 'vue-project/ZhangJian/ZhangJianFrontEnd'. Please update any links and bookmarks that may still have the old path.
Commit
09e5419f
authored
Aug 12, 2021
by
zsh
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch '20210819' of 123.207.147.179:vue-project/liangXing/frontEnd into 20210819
parents
6bbbd967
3678cf11
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
23 additions
and
14 deletions
+23
-14
Center.vue
src/pages/index/Center.vue
+15
-8
Right.vue
src/pages/index/Right.vue
+4
-3
index.vue
src/pages/index/index.vue
+1
-0
index.js
src/public/apis/index.js
+3
-3
No files found.
src/pages/index/Center.vue
View file @
09e5419f
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
<div
class=
"survey-content"
>
<div
class=
"survey-content"
>
<div
class=
"item"
v-for=
"(g, l) in survey"
:key=
"l"
>
<div
class=
"item"
v-for=
"(g, l) in survey"
:key=
"l"
>
<count-to
:endVal=
"g.value"
/>
<count-to
:endVal=
"g.value"
/>
<p>
{{
g
.
name
}}
</p>
<p>
{{
g
.
key
}}
</p>
</div>
</div>
</div>
</div>
<div
class=
"china-map-warp"
>
<div
class=
"china-map-warp"
>
...
@@ -34,14 +34,15 @@ export default {
...
@@ -34,14 +34,15 @@ export default {
TitleLine
,
TitleLine
,
ChinaMap
ChinaMap
},
},
props
:
{
centerData
:
{
default
:
{},
type
:
Object
}
},
data
()
{
data
()
{
return
{
return
{
survey
:
[
survey
:
[],
{
name
:
'学员数'
,
value
:
31721
},
{
name
:
'班级数'
,
value
:
105
},
{
name
:
'二级协会数'
,
value
:
15
}
],
chinaMapConfig
:
{
chinaMapConfig
:
{
base
:
{},
base
:
{},
seriesData
:
[]
seriesData
:
[]
...
@@ -53,9 +54,15 @@ export default {
...
@@ -53,9 +54,15 @@ export default {
mounted
()
{
mounted
()
{
this
.
getInitChinaMap
()
this
.
getInitChinaMap
()
this
.
initSurvey
()
},
},
methods
:
{
methods
:
{
initSurvey
()
{
if
(
this
.
centerData
&&
this
.
centerData
.
survey
&&
this
.
centerData
.
survey
.
list
)
{
this
.
survey
=
this
.
centerData
.
survey
.
list
||
[]
}
},
getInitChinaMap
()
{
getInitChinaMap
()
{
let
series
=
[]
let
series
=
[]
let
maps
=
[[
'南通'
,
this
.
chinaDatas
]]
let
maps
=
[[
'南通'
,
this
.
chinaDatas
]]
...
@@ -155,7 +162,7 @@ export default {
...
@@ -155,7 +162,7 @@ export default {
// 根据业务自己拓展要显示的内容
// 根据业务自己拓展要显示的内容
let
name
=
params
.
name
let
name
=
params
.
name
if
(
name
===
'南通'
)
{
if
(
name
===
'南通'
)
{
return
`<div style="width: 554px;height: 361px;background: url(
'../../../static/images/index/mapFloatBG.png'
) no-repeat;"></div>`
return
`<div style="width: 554px;height: 361px;background: url(
${
require
(
'../../../static/images/index/mapFloatBG.png'
)}
) no-repeat;"></div>`
}
else
{
}
else
{
return
''
return
''
}
}
...
...
src/pages/index/Right.vue
View file @
09e5419f
...
@@ -217,13 +217,13 @@ export default {
...
@@ -217,13 +217,13 @@ export default {
},
},
topicList
:
[
topicList
:
[
{
{
img
:
'../../../static/images/index/topic-bg1.png'
img
:
require
(
'../../../static/images/index/topic-bg1.png'
)
},
},
{
{
img
:
'../../../static/images/index/topic-bg1.png'
img
:
require
(
'../../../static/images/index/topic-bg1.png'
)
},
},
{
{
img
:
'../../../static/images/index/topic-bg1.png'
img
:
require
(
'../../../static/images/index/topic-bg1.png'
)
}
}
],
],
...
@@ -796,6 +796,7 @@ export default {
...
@@ -796,6 +796,7 @@ export default {
position
:
absolute
;
position
:
absolute
;
top
:
40%
;
top
:
40%
;
right
:
10px
;
right
:
10px
;
cursor
:
pointer
;
}
}
}
}
}
}
...
...
src/pages/index/index.vue
View file @
09e5419f
...
@@ -71,6 +71,7 @@ export default {
...
@@ -71,6 +71,7 @@ export default {
}
}
// 中间数据
// 中间数据
this
.
centerData
=
{
this
.
centerData
=
{
survey
:
data
.
p11
||
{}
// 中间概况数据
}
}
// 右侧数据
// 右侧数据
this
.
rightData
=
{
this
.
rightData
=
{
...
...
src/public/apis/index.js
View file @
09e5419f
...
@@ -4,12 +4,12 @@
...
@@ -4,12 +4,12 @@
;(
function
()
{
;(
function
()
{
// 接口请求域名
// 接口请求域名
window
.
domain
=
{
window
.
domain
=
{
stg
:
'http://192.168.0.121:9000
/
'
,
// 测试环境域名
stg
:
'http://192.168.0.121:9000'
,
// 测试环境域名
prd
:
'
http://192.168.0.121:9000/'
// 生产环境域名
prd
:
'
'
// 生产环境域名 http://192.168.0.121:9000/
}
}
// 接口请求路径
// 接口请求路径
window
.
apis
=
{
window
.
apis
=
{
managePlatform
:
'api/page1info'
managePlatform
:
'
/
api/page1info'
}
}
})()
})()
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