Merge branch 'main' of git.zdool.com:xs/ggfwjsc

This commit is contained in:
姚宇浩 2024-04-15 14:11:49 +08:00
commit 385a455612
5 changed files with 167 additions and 81 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

@ -94,10 +94,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">
@ -194,11 +199,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>
@ -240,16 +241,19 @@ const change = (name, index) => {
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;
} }
@ -262,6 +266,7 @@ const change = (name, index) => {
width: 90%; width: 90%;
height: 36px; height: 36px;
position: relative; position: relative;
.text { .text {
display: flex; display: flex;
position: absolute; position: absolute;
@ -274,15 +279,19 @@ const change = (name, index) => {
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;
@ -291,13 +300,16 @@ const change = (name, index) => {
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;
@ -305,6 +317,7 @@ const change = (name, index) => {
.medicalServiceTop { .medicalServiceTop {
position: relative; position: relative;
span { span {
position: absolute; position: absolute;
left: 38px; left: 38px;
@ -321,11 +334,13 @@ const change = (name, index) => {
} }
} }
} }
.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;
@ -338,16 +353,25 @@ const change = (name, index) => {
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%;
}
.left_bg { .left_bg {
width:642px; width:642px;
box-sizing: border-box; box-sizing: border-box;
@ -357,11 +381,13 @@ const change = (name, index) => {
background-repeat: no-repeat; background-repeat: no-repeat;
background-size: 100% 100%; background-size: 100% 100%;
} }
.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;
@ -370,10 +396,12 @@ const change = (name, index) => {
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;
@ -383,6 +411,7 @@ const change = (name, index) => {
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;
@ -391,6 +420,7 @@ const change = (name, index) => {
margin-left: 2px; margin-left: 2px;
} }
} }
p { p {
font-size: 16px; font-size: 16px;
font-weight: bold; font-weight: bold;
@ -410,12 +440,15 @@ const change = (name, index) => {
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;
@ -423,6 +456,7 @@ const change = (name, index) => {
color: #0096ff; color: #0096ff;
margin-bottom: 2px; margin-bottom: 2px;
} }
p { p {
font-size: 12px; font-size: 12px;
font-family: SourceHanSansCN; font-family: SourceHanSansCN;
@ -431,6 +465,7 @@ const change = (name, index) => {
margin-top: 6px; margin-top: 6px;
} }
} }
.check { .check {
font-size: 12px; font-size: 12px;
font-family: SourceHanSansCN; font-family: SourceHanSansCN;
@ -444,6 +479,7 @@ const change = (name, index) => {
.history { .history {
padding-top: 12px; padding-top: 12px;
display: flex; display: flex;
.history1 { .history1 {
font-size: 26px; font-size: 26px;
color: #ffffff; color: #ffffff;
@ -456,6 +492,7 @@ const change = (name, index) => {
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;
@ -465,15 +502,18 @@ const change = (name, index) => {
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;
@ -489,6 +529,7 @@ const change = (name, index) => {
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);
@ -502,9 +543,11 @@ const change = (name, index) => {
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%;
@ -513,12 +556,14 @@ const change = (name, index) => {
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;
@ -526,6 +571,7 @@ const change = (name, index) => {
} }
} }
} }
.activity { .activity {
h5 { h5 {
font-size: 14px; font-size: 14px;
@ -535,9 +581,11 @@ const change = (name, index) => {
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;
@ -545,6 +593,7 @@ const change = (name, index) => {
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;
@ -555,26 +604,31 @@ const change = (name, index) => {
} }
} }
} }
.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;
@ -584,4 +638,71 @@ const change = (name, index) => {
} }
} }
} }
.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>