This commit is contained in:
lnn19986213 2024-04-15 14:09:23 +08:00
parent 9c3fb010a9
commit 3582909fa2
5 changed files with 169 additions and 89 deletions

BIN
src/assets/minTop1.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.3 KiB

BIN
src/assets/minTop2.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.9 KiB

BIN
src/assets/minTop3.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.7 KiB

View File

@ -14,33 +14,25 @@ const colorList = ['#FFE35F','#0081FF','#8ABEDB','#25B9C8','#30EB92','rgba(69, 2
const pieData = [ const pieData = [
{ {
name: "A", // name: "60-70岁", //
value: 10, // value: 1012431431, //
}, },
{ {
name: "B", name: "70-80岁",
value: 8, value: 85425345,
}, },
{ {
name: "C", name: "80-90岁",
value: 2, value: 2543256,
}, },
{ {
name: "D", name: "90-100岁",
value: 6, value: 5432535,
}, },
{ {
name: "E", name: "100岁以上",
value: 5, value: 56,
}, }
{
name: "F",
value: 1,
},
{
name: "G",
value: 5
},
] ]
const serData = pieData.map((dItem, index) => { const serData = pieData.map((dItem, index) => {
@ -152,40 +144,7 @@ function getPie3D(pieData, internalDiameterRatio) {
// return ((Math.sin(v) * Math.cos(u) + Math.cos(u)) / Math.PI) ; // return ((Math.sin(v) * Math.cos(u) + Math.cos(u)) / Math.PI) ;
// }, // },
// z: function (u, v) { // z: function (u, v) {
// return Math.cos(v) > 0 ? -4 : -4; // return Math.cos(v) > 0 ? -6 : -7;
// },
// },
// });
// series.push({
// name: 'mouseoutSeries',
// type: 'surface',
// parametric: true,
// wireframe: {
// show: false,
// },
// itemStyle: {
// opacity: 0.5,
// color: '#fff',
// },
// parametricEquation: {
// u: {
// min: 0,
// max: Math.PI * 2,
// step: Math.PI / 20,
// },
// v: {
// min: 1.5,
// max: 3,
// step: Math.PI / 20,
// },
// x: function (u, v) {
// return ((Math.sin(v) * Math.sin(u) + Math.sin(u)) / Math.PI) *1;
// },
// y: function (u, v) {
// return ((Math.sin(v) * Math.cos(u) + Math.cos(u)) / Math.PI)*1;
// },
// z: function (u, v) {
// return Math.cos(v) > 0 ? -4 : -4;
// }, // },
// }, // },
// }); // });
@ -206,19 +165,19 @@ function getPie3D(pieData, internalDiameterRatio) {
"#F4BB29", "#F4BB29",
"#49C384", "#49C384",
], ],
width: '30%', width: '40%',
// //
// orient: "vertical", orient: "vertical",
right: 0, right: 20,
// bottom: 20, // bottom: 20,
top: 'center', top: 'center',
// left: '10px', // left: '10px',
// //
itemGap: 20, itemGap: 10,
show: true, show: true,
icon: "rect", icon: "rect",
itemHeight: 10, itemHeight: 10,
itemWidth: 10, itemWidth: 25,
textStyle: { textStyle: {
// //
fontSize: 14, fontSize: 14,
@ -227,15 +186,21 @@ function getPie3D(pieData, internalDiameterRatio) {
}, },
// //
// formatter: function (name) { formatter: function (name) {
// var target; var target;
// for (var i = 0, l = pieData.length; i < l; i++) { for (var i = 0, l = pieData.length; i < l; i++) {
// if (pieData[i].name == name) { if (pieData[i].name == name) {
// target = pieData[i].value; target = pieData[i].value;
// } }
// } }
// return `${name} ${target}`; if(name == '90-100岁'){
// }, return ` ${name} ${target}`;
}else if(name == '100岁以上'){
return ` ${name} ${target}`;
}else{
return ` ${name} ${target}`;
}
},
}, },
// //
tooltip: { tooltip: {
@ -256,7 +221,7 @@ function getPie3D(pieData, internalDiameterRatio) {
`<div style='color:rgba(214, 243, 255, 0.9);'>` + `<div style='color:rgba(214, 243, 255, 0.9);'>` +
`<span style="display:inline-block;margin-right:5px;border-radius:10px;width:10px;height:10px;background-color:${params.color};"></span>` + `<span style="display:inline-block;margin-right:5px;border-radius:10px;width:10px;height:10px;background-color:${params.color};"></span>` +
`${params.seriesName}<br/>` + `${params.seriesName}<br/>` +
`<span style='margin-right:20px'>${value}</span>` + `<span style='margin-right:20px'>${value}</span>` +
`<span >${bfb}%</span>` + `<span >${bfb}%</span>` +
`</div>` `</div>`
); );
@ -269,14 +234,14 @@ function getPie3D(pieData, internalDiameterRatio) {
grid3D: { grid3D: {
viewControl: { viewControl: {
autoRotate: true, autoRotate: true,
rotateSensitivity: 1, //0 rotateSensitivity: 0, //0
zoomSensitivity: 1, //0 zoomSensitivity: 0, //0
panSensitivity: 0, //0 panSensitivity: 0, //0
alpha: 25, //( ) alpha: 25, //( )
distance: 120, //zoom() distance: 90, //zoom()
}, },
top: '0', top: '-30',
left: '-100', left: '-120',
width: '100%', width: '100%',
show: false, show: false,
boxHeight: 20, boxHeight: 20,

View File

@ -4,14 +4,8 @@
<div class="flex1"> <div class="flex1">
<div class="yd_title left_1"> <div class="yd_title left_1">
<span class="text"> <span class="text">
<img <img src="@/assets/images/ylbx_1.png" style="width: 130px; height: 30px" />
src="@/assets/images/ylbx_1.png" <img src="@/assets/images/ylbx_2.png" style="width: 130px; height: 30px" />
style="width: 130px; height: 30px"
/>
<img
src="@/assets/images/ylbx_2.png"
style="width: 130px; height: 30px"
/>
</span> </span>
</div> </div>
<ePie></ePie> <ePie></ePie>
@ -31,10 +25,15 @@
</div> </div>
<div class="displayFlex"> <div class="displayFlex">
<div class="flex1"> <div class="flex1">
<div class="yd_title"> <div class="yd_title center_1">
<span class="text">活动数据分析</span> </div>
<div class="minTopPart">
<div class="mtpImg1"></div>
<div class="mtpImg2"></div>
<div class="mtpImg3"></div>
<div class="mtpText1">5888811</div>
<div class="mtpText2">18%</div>
</div> </div>
<waterBall></waterBall>
<ePie3d></ePie3d> <ePie3d></ePie3d>
</div> </div>
<div class="flex1"> <div class="flex1">
@ -131,11 +130,7 @@
</div> </div>
</div> </div>
<div class="mealAssistance"> <div class="mealAssistance">
<img <img class="mealAssistanceimg" src="@/assets/YLimg/ylimg7.png" alt="" />
class="mealAssistanceimg"
src="@/assets/YLimg/ylimg7.png"
alt=""
/>
<div style="width: 490px"> <div style="width: 490px">
<ylXZZC></ylXZZC> <ylXZZC></ylXZZC>
</div> </div>
@ -166,16 +161,19 @@ import ylXZZC from "./echarts/ylXZZC.vue";
flex-direction: column; flex-direction: column;
flex: 1; flex: 1;
} }
.flex1 { .flex1 {
flex: 1; flex: 1;
padding: 0 28px; padding: 0 28px;
box-sizing: border-box; box-sizing: border-box;
} }
.flex2 { .flex2 {
// flex: 1; // flex: 1;
padding: 0 38px; padding: 0 38px;
box-sizing: border-box; box-sizing: border-box;
} }
.module { .module {
display: flex; display: flex;
} }
@ -188,6 +186,7 @@ import ylXZZC from "./echarts/ylXZZC.vue";
width: 100%; width: 100%;
height: 36px; height: 36px;
position: relative; position: relative;
.text { .text {
display: flex; display: flex;
position: absolute; position: absolute;
@ -200,15 +199,19 @@ import ylXZZC from "./echarts/ylXZZC.vue";
top: 3px; top: 3px;
} }
} }
.familyPlanning { .familyPlanning {
background-image: url(@/assets/YLTitle/titleImg9.png); background-image: url(@/assets/YLTitle/titleImg9.png);
} }
.mechanism { .mechanism {
background-image: url(@/assets/YLTitle/titleImg10.png); background-image: url(@/assets/YLTitle/titleImg10.png);
} }
.service { .service {
background-image: url(@/assets/YLTitle/titleImg11.png); background-image: url(@/assets/YLTitle/titleImg11.png);
} }
.serviceBox { .serviceBox {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
@ -217,13 +220,16 @@ import ylXZZC from "./echarts/ylXZZC.vue";
width: 182px; width: 182px;
height: 35px; height: 35px;
} }
.serviceTop { .serviceTop {
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
.medicalService { .medicalService {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
align-items: center; align-items: center;
.ylimg { .ylimg {
width: 205px; width: 205px;
height: 239px; height: 239px;
@ -231,6 +237,7 @@ import ylXZZC from "./echarts/ylXZZC.vue";
.medicalServiceTop { .medicalServiceTop {
position: relative; position: relative;
span { span {
position: absolute; position: absolute;
left: 38px; left: 38px;
@ -247,11 +254,13 @@ import ylXZZC from "./echarts/ylXZZC.vue";
} }
} }
} }
.mealAssistance { .mealAssistance {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
justify-content: center; justify-content: center;
align-items: center; align-items: center;
.mealAssistanceimg { .mealAssistanceimg {
width: 495px; width: 495px;
height: 35px; height: 35px;
@ -264,16 +273,25 @@ import ylXZZC from "./echarts/ylXZZC.vue";
background-repeat: no-repeat; background-repeat: no-repeat;
background-size: 100% 100%; background-size: 100% 100%;
} }
.left_2 { .left_2 {
background-image: url(@/assets/images/gllrbt.png); background-image: url(@/assets/images/gllrbt.png);
background-repeat: no-repeat; background-repeat: no-repeat;
background-size: 100% 100%; background-size: 100% 100%;
} }
.left_3 { .left_3 {
background-image: url(@/assets/images/tkjz.png); background-image: url(@/assets/images/tkjz.png);
background-repeat: no-repeat; background-repeat: no-repeat;
background-size: 100% 100%; background-size: 100% 100%;
} }
.center_1 {
background-image: url(@/assets/YLTitle/titleImg8.png);
background-repeat: no-repeat;
background-size: 100% 100%;
}
.text_1_left { .text_1_left {
// background-image: url(@/assets/images/ylbx_1.png); // background-image: url(@/assets/images/ylbx_1.png);
// background-repeat: no-repeat; // background-repeat: no-repeat;
@ -281,11 +299,13 @@ import ylXZZC from "./echarts/ylXZZC.vue";
width: 100px; width: 100px;
height: 50px; height: 50px;
} }
.basicInformation { .basicInformation {
display: flex; display: flex;
flex-direction: row; flex-direction: row;
flex-wrap: wrap; flex-wrap: wrap;
padding-top: 22px; padding-top: 22px;
.basicInformation_item { .basicInformation_item {
flex: 0 0 50%; flex: 0 0 50%;
padding: 0 2px; padding: 0 2px;
@ -294,10 +314,12 @@ import ylXZZC from "./echarts/ylXZZC.vue";
box-sizing: border-box; box-sizing: border-box;
display: flex; display: flex;
align-items: center; align-items: center;
.icon { .icon {
width: 79px; width: 79px;
height: 47px; height: 47px;
} }
.right { .right {
margin-left: 4px; margin-left: 4px;
@ -307,6 +329,7 @@ import ylXZZC from "./echarts/ylXZZC.vue";
background-repeat: no-repeat; background-repeat: no-repeat;
background-position: bottom; background-position: bottom;
margin-bottom: 4px; margin-bottom: 4px;
span { span {
font-size: 12px; font-size: 12px;
font-weight: 400; font-weight: 400;
@ -315,6 +338,7 @@ import ylXZZC from "./echarts/ylXZZC.vue";
margin-left: 2px; margin-left: 2px;
} }
} }
p { p {
font-size: 16px; font-size: 16px;
font-weight: bold; font-weight: bold;
@ -334,12 +358,15 @@ import ylXZZC from "./echarts/ylXZZC.vue";
margin-top: 16px; margin-top: 16px;
padding: 15px 8px; padding: 15px 8px;
box-sizing: border-box; box-sizing: border-box;
img { img {
display: inline-block; display: inline-block;
margin-right: 10px; margin-right: 10px;
} }
.visitLog_item_box { .visitLog_item_box {
flex: auto; flex: auto;
h4 { h4 {
font-size: 18px; font-size: 18px;
font-family: MicrosoftYaHei; font-family: MicrosoftYaHei;
@ -347,6 +374,7 @@ import ylXZZC from "./echarts/ylXZZC.vue";
color: #0096ff; color: #0096ff;
margin-bottom: 2px; margin-bottom: 2px;
} }
p { p {
font-size: 12px; font-size: 12px;
font-family: SourceHanSansCN; font-family: SourceHanSansCN;
@ -355,6 +383,7 @@ import ylXZZC from "./echarts/ylXZZC.vue";
margin-top: 6px; margin-top: 6px;
} }
} }
.check { .check {
font-size: 12px; font-size: 12px;
font-family: SourceHanSansCN; font-family: SourceHanSansCN;
@ -368,6 +397,7 @@ import ylXZZC from "./echarts/ylXZZC.vue";
.history { .history {
padding-top: 12px; padding-top: 12px;
display: flex; display: flex;
.history1 { .history1 {
font-size: 26px; font-size: 26px;
color: #ffffff; color: #ffffff;
@ -380,6 +410,7 @@ import ylXZZC from "./echarts/ylXZZC.vue";
display: flex; display: flex;
flex-direction: column; flex-direction: column;
align-items: center; align-items: center;
.unit { .unit {
font-weight: 500; font-weight: 500;
font-size: 14px; font-size: 14px;
@ -389,15 +420,18 @@ import ylXZZC from "./echarts/ylXZZC.vue";
font-style: normal; font-style: normal;
font-family: PingFangSC, PingFang SC; font-family: PingFangSC, PingFang SC;
} }
.historyimg { .historyimg {
width: 182px; width: 182px;
height: 35px; height: 35px;
} }
} }
img { img {
width: 154px; width: 154px;
height: 136px; height: 136px;
} }
p { p {
margin-top: 12px; margin-top: 12px;
font-size: 12px; font-size: 12px;
@ -413,6 +447,7 @@ import ylXZZC from "./echarts/ylXZZC.vue";
align-items: center; align-items: center;
justify-content: center; justify-content: center;
margin: 12px 0 20px; margin: 12px 0 20px;
span { span {
text-align: center; text-align: center;
background: rgba(0, 89, 130, 0.73); background: rgba(0, 89, 130, 0.73);
@ -426,9 +461,11 @@ import ylXZZC from "./echarts/ylXZZC.vue";
margin: 0 10px; margin: 0 10px;
} }
} }
.property { .property {
display: flex; display: flex;
padding: 14px 0 10px; padding: 14px 0 10px;
.property_box { .property_box {
background-image: url(@/assets/img_05.png); background-image: url(@/assets/img_05.png);
background-size: 100% 100%; background-size: 100% 100%;
@ -437,12 +474,14 @@ import ylXZZC from "./echarts/ylXZZC.vue";
height: 91px; height: 91px;
margin: 0 12px; margin: 0 12px;
text-align: center; text-align: center;
h5 { h5 {
font-size: 14px; font-size: 14px;
font-weight: 400; font-weight: 400;
color: #ffffff; color: #ffffff;
margin: 9px 0 16px; margin: 9px 0 16px;
} }
p { p {
font-size: 21px; font-size: 21px;
font-weight: bold; font-weight: bold;
@ -450,6 +489,7 @@ import ylXZZC from "./echarts/ylXZZC.vue";
} }
} }
} }
.activity { .activity {
h5 { h5 {
font-size: 14px; font-size: 14px;
@ -459,9 +499,11 @@ import ylXZZC from "./echarts/ylXZZC.vue";
border-bottom: 2px solid rgba(0, 164, 250, 1); border-bottom: 2px solid rgba(0, 164, 250, 1);
margin-bottom: 17px; margin-bottom: 17px;
} }
.activity_content { .activity_content {
margin: 0 -6px 12px; margin: 0 -6px 12px;
display: flex; display: flex;
.activity_box { .activity_box {
width: 50%; width: 50%;
display: inline-block; display: inline-block;
@ -469,6 +511,7 @@ import ylXZZC from "./echarts/ylXZZC.vue";
box-sizing: border-box; box-sizing: border-box;
background-color: rgba(15, 28, 54, 1); background-color: rgba(15, 28, 54, 1);
padding: 12px 12px 19px; padding: 12px 12px 19px;
p { p {
font-size: 14px; font-size: 14px;
font-weight: 400; font-weight: 400;
@ -479,26 +522,31 @@ import ylXZZC from "./echarts/ylXZZC.vue";
} }
} }
} }
.monitor { .monitor {
.monitor_box { .monitor_box {
display: flex; display: flex;
padding: 8px 0; padding: 8px 0;
border-bottom: 2px solid rgba(255, 255, 255, 0.67); border-bottom: 2px solid rgba(255, 255, 255, 0.67);
img { img {
width: 115px; width: 115px;
height: 84px; height: 84px;
margin-right: 21px; margin-right: 21px;
} }
.monitor_box_text { .monitor_box_text {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
justify-content: space-between; justify-content: space-between;
h4 { h4 {
font-size: 14px; font-size: 14px;
font-weight: 400; font-weight: 400;
color: #ffffff; color: #ffffff;
line-height: 20px; line-height: 20px;
} }
p { p {
font-size: 14px; font-size: 14px;
font-weight: 400; font-weight: 400;
@ -508,4 +556,71 @@ import ylXZZC from "./echarts/ylXZZC.vue";
} }
} }
} }
.minTopPart {
width: 530px;
height: 174px;
background-image: url(@/assets/minTopBg.png);
background-repeat: no-repeat;
background-size: 100% 100%;
margin: 4px auto;
position: relative;
.mtpImg1 {
width: 140px;
height: 24px;
background-image: url(@/assets/minTop1.png);
background-repeat: no-repeat;
background-size: 100% 100%;
position: absolute;
top: 49px;
left: 23px;
}
.mtpImg2 {
width: 140px;
height: 24px;
background-image: url(@/assets/minTop2.png);
background-repeat: no-repeat;
background-size: 100% 100%;
position: absolute;
top: 49px;
right: 23px;
}
.mtpImg3 {
width: 125px;
height: 36px;
background-image: url(@/assets/minTop3.png);
background-repeat: no-repeat;
background-size: 100% 100%;
position: absolute;
top: 316px;
left: 84px;
}
.mtpText1 {
width: 140px;
height: 30px;
position: absolute;
top: 94px;
left: 23px;
text-align: center;
line-height: 30px;
font-weight: bold;
font-size: 26px;
color: #FFFFFF;
}
.mtpText2 {
width: 140px;
height: 30px;
position: absolute;
top: 94px;
right: 23px;
text-align: center;
line-height: 30px;
font-weight: bold;
font-size: 26px;
color: #FFFFFF;
}
}
</style> </style>