Commit 2fb0cbbe by 前端

ui

1 parent f39c5a77
@import './normalize.scss'; @import "./normalize.scss";
@font-face { @font-face {
font-family: 'PingFangSC-Regular'; font-family: "PingFangSC-Regular";
src: url('../font/PingFang-Regular.ttf'); src: url("../font/PingFang-Regular.ttf");
} }
html, html,
body .app { body .app {
color: #333333; color: #333333;
font-family: 'PingFangSC-Regular', Arial, Helvetica, 'STHeiti STXihei', 'Microsoft YaHei', Tohoma, sans-serif; font-family: "PingFangSC-Regular", Arial, Helvetica, "STHeiti STXihei", "Microsoft YaHei", Tohoma, sans-serif;
background-color: #fff; background-color: #fff;
-webkit-overflow-scrolling: touch; -webkit-overflow-scrolling: touch;
height: 100%; height: 100%;
...@@ -101,7 +101,7 @@ img { ...@@ -101,7 +101,7 @@ img {
} }
.icon-title { .icon-title {
display: inline-block; display: inline-block;
width:0.94vw; width: 0.94vw;
height: 0.93vh; height: 0.93vh;
background: url(../images/operation//icon-title.png) no-repeat; background: url(../images/operation//icon-title.png) no-repeat;
background-size: 100%; background-size: 100%;
...@@ -131,8 +131,8 @@ img { ...@@ -131,8 +131,8 @@ img {
height: 8.54vh; height: 8.54vh;
margin: 8px 6px 8px 8px; margin: 8px 6px 8px 8px;
} }
.user-container{ .user-container {
height:6.1vh; height: 6.1vh;
margin: 5px 6px 5px 6px; margin: 5px 6px 5px 6px;
} }
.empty { .empty {
...@@ -149,14 +149,14 @@ img { ...@@ -149,14 +149,14 @@ img {
} }
.text-linear { .text-linear {
display: inline-block; display: inline-block;
color: #5894FF; color: #5894ff;
background-image:-webkit-linear-gradient(left,#24D8FF,#7787FF); background-image: -webkit-linear-gradient(left, #24d8ff, #7787ff);
-webkit-background-clip:text; -webkit-background-clip: text;
-webkit-text-fill-color:transparent; -webkit-text-fill-color: transparent;
} }
.user-box { .user-box {
height: 9.63vh; height: 9.23vh;
width:13.26vw; width: 13.26vw;
background: #071735; background: #071735;
} }
.patch-title { .patch-title {
...@@ -168,18 +168,18 @@ img { ...@@ -168,18 +168,18 @@ img {
font-size: 14px; font-size: 14px;
z-index: 1; z-index: 1;
&::before { &::before {
content: ''; content: "";
position: absolute; position: absolute;
left: 0; left: 0;
width: 7.5vw; width: 7.5vw;
height: 2.22vh; height: 2.22vh;
background-image: linear-gradient(269deg, #5663ff00 10%, #6578ffd4 49%, #079FF1 100%); background-image: linear-gradient(269deg, #5663ff00 10%, #6578ffd4 49%, #079ff1 100%);
z-index: -1; z-index: -1;
} }
} }
.linear-gradient-text { .linear-gradient-text {
color: #5894FF; color: #5894ff;
background-image: -webkit-linear-gradient(left, #0185F9, #53FAFF); background-image: -webkit-linear-gradient(left, #0185f9, #53faff);
-webkit-background-clip: text; -webkit-background-clip: text;
-webkit-text-fill-color: transparent; -webkit-text-fill-color: transparent;
} }
...@@ -350,7 +350,7 @@ export default { ...@@ -350,7 +350,7 @@ export default {
.footer { .footer {
position: relative; position: relative;
width: 1280px; width: 1280px;
height: 723px; height: 705px;
.swiper { .swiper {
li { li {
display: flex; display: flex;
......
...@@ -67,19 +67,19 @@ export default { ...@@ -67,19 +67,19 @@ export default {
overflow: hidden; overflow: hidden;
.top { .top {
height: 52.4vh; height: 544px;
width: 100%; width: 100%;
// padding: 0 16px; // padding: 0 16px;
box-sizing: border-box; box-sizing: border-box;
background: url(../../assets/images/operation/bg-1.png) no-repeat; background: url(../../assets/images/operation/bg-1.png) no-repeat;
background-size: 100% 52.4vh; background-size: 100% 544px;
} }
.bottom { .bottom {
height: 34.15vh; height: 338px;
margin-top: 1.95vh; margin-top: 20px;
box-sizing: content-box; box-sizing: content-box;
background: url(../../assets/images/operation/bg-3.png) no-repeat; background: url(../../assets/images/operation/bg-3.png) no-repeat;
background-size: 100% 34.15vh; background-size: 100% 100%;
} }
} }
</style> </style>
...@@ -87,14 +87,14 @@ export default { ...@@ -87,14 +87,14 @@ export default {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
.top { .top {
height: 34.15vh; height: 338px;
box-sizing: border-box; box-sizing: border-box;
background: url(../../assets/images/operation/bg-2.png) no-repeat; background: url(../../assets/images/operation/bg-2.png) no-repeat;
background-size: 100% 100%; background-size: 100% 100%;
} }
.bottom { .bottom {
height: 53.66vh; height: 544px;
margin-top: 0.95vh; margin-top: 20px;
box-sizing: border-box; box-sizing: border-box;
background: url(../../assets/images/operation/bg-4.png) no-repeat; background: url(../../assets/images/operation/bg-4.png) no-repeat;
background-size: 100% 100%; background-size: 100% 100%;
......
...@@ -68,12 +68,13 @@ export default { ...@@ -68,12 +68,13 @@ export default {
} }
.icon { .icon {
display: inline-block; display: inline-block;
width:0.94vw; width: 0.94vw;
height: 0.93vh; height: 0.93vh;
transform: rotate(90deg); transform: rotate(90deg);
background: url(../../../assets/images/operation//icon-title.png) no-repeat; background: url(../../../assets/images/operation//icon-title.png) no-repeat;
background-size: 100%; background-size: 100%;
margin-top: 7px; margin-top: 7px;
margin-left: 14px;
} }
.title { .title {
display: block; display: block;
...@@ -83,13 +84,13 @@ export default { ...@@ -83,13 +84,13 @@ export default {
// margin: 4px 4px; // margin: 4px 4px;
// height:10.98vh; // height:10.98vh;
font-size: 10px; font-size: 10px;
margin-left: 5px; margin-left: 20px;
// transform: rotate(90deg); // transform: rotate(90deg);
} }
.go { .go {
width: 0.65vw; width: 0.65vw;
height: 0.65vw; height: 0.65vw;
margin: 3px 5px; margin: 3px 17px;
cursor: pointer; cursor: pointer;
} }
} }
......
...@@ -10,8 +10,8 @@ ...@@ -10,8 +10,8 @@
<div class="business-wrap flex"> <div class="business-wrap flex">
<div class="business-data"> <div class="business-data">
<!-- <business-view :businessNum="businessNum"></business-view> --> <!-- <business-view :businessNum="businessNum"></business-view> -->
<StatisticsBox class="business-box" :list="list.slice(0,2)"></StatisticsBox> <StatisticsBox class="business-box" :list="list.slice(0, 2)"></StatisticsBox>
<StatisticsBox class="business-box second-box" :list="list.slice(2,4)"></StatisticsBox> <StatisticsBox class="business-box second-box" :list="list.slice(2, 4)"></StatisticsBox>
</div> </div>
<div class="business-category"> <div class="business-category">
<Category :categoryData="categoryData"></Category> <Category :categoryData="categoryData"></Category>
...@@ -48,7 +48,7 @@ export default { ...@@ -48,7 +48,7 @@ export default {
{ {
name: '2.3新车延保', name: '2.3新车延保',
value: 4441921 value: 4441921
}, }
], ],
list: [ list: [
{ {
...@@ -116,7 +116,7 @@ export default { ...@@ -116,7 +116,7 @@ export default {
<style lang="scss" scoped> <style lang="scss" scoped>
.business-wrap { .business-wrap {
height: 14.15vh; height: 13.15vh;
margin: 1.98vh 0.83vw 0.98vh; margin: 1.98vh 0.83vw 0.98vh;
// margin-bottom: 0.98vh; // margin-bottom: 0.98vh;
// margin-top: 0.98vh; // margin-top: 0.98vh;
...@@ -126,9 +126,9 @@ export default { ...@@ -126,9 +126,9 @@ export default {
// margin-top: 0.98vh; // margin-top: 0.98vh;
width: 38.06vw; width: 38.06vw;
height: 100%; height: 100%;
/deep/{ /deep/ {
.business-box.statistics { .business-box.statistics {
height: 6.83vh; height: 6.33vh;
box-sizing: border-box; box-sizing: border-box;
.statistics-item { .statistics-item {
margin-right: 0.28vw; margin-right: 0.28vw;
......
...@@ -46,7 +46,7 @@ export default { ...@@ -46,7 +46,7 @@ export default {
<style lang="scss" scoped> <style lang="scss" scoped>
.category-box { .category-box {
overflow: hidden; overflow: hidden;
height: 13.9vh; height: 13.2vh;
background-color: rgba(11, 44, 142, 0.28); background-color: rgba(11, 44, 142, 0.28);
.title-icon { .title-icon {
font-weight: 500; font-weight: 500;
...@@ -58,7 +58,7 @@ export default { ...@@ -58,7 +58,7 @@ export default {
// } // }
} }
.category-container { .category-container {
height: 11.34vh; height: 10.54vh;
// margin: 1.59vh 1.67vw 1.46vh 1.11vw; // margin: 1.59vh 1.67vw 1.46vh 1.11vw;
.category-legend { .category-legend {
width: 4.2vw; width: 4.2vw;
......
...@@ -108,7 +108,7 @@ export default { ...@@ -108,7 +108,7 @@ export default {
}, },
methods: { methods: {
toFixNum(val) { toFixNum(val) {
if(!val){ if (!val) {
return '0.0%' return '0.0%'
} }
return (val * 100).toFixed(1) + '%' return (val * 100).toFixed(1) + '%'
...@@ -155,8 +155,8 @@ export default { ...@@ -155,8 +155,8 @@ export default {
height: 29.27vh; height: 29.27vh;
} }
.headline { .headline {
height: 5.61vh; height: 5.01vh;
background: #092A46; background: #092a46;
font-weight: 600; font-weight: 600;
font-size: 12px; font-size: 12px;
color: #e8e8e8; color: #e8e8e8;
...@@ -204,7 +204,7 @@ export default { ...@@ -204,7 +204,7 @@ export default {
width: 4.29vw; width: 4.29vw;
} }
.pd26 { .pd26 {
height: 9.51vh; height: 9.01vh;
padding: 3.17vh 0; padding: 3.17vh 0;
} }
} }
...@@ -221,9 +221,9 @@ export default { ...@@ -221,9 +221,9 @@ export default {
font-weight: 400; font-weight: 400;
font-size: 12px; font-size: 12px;
color: #fff; color: #fff;
border-bottom: 1px solid #0E2949; border-bottom: 1px solid #0e2949;
box-sizing: border-box; box-sizing: border-box;
height: 3.17vh; height: 2.97vh;
.clew-num { .clew-num {
font-weight: 700; font-weight: 700;
font-size: 12px; font-size: 12px;
......
...@@ -126,7 +126,7 @@ export default { ...@@ -126,7 +126,7 @@ export default {
const selectIndex = TEXT_VIEW.findIndex(item => item.name === name) const selectIndex = TEXT_VIEW.findIndex(item => item.name === name)
if (selectIndex > 2) return if (selectIndex > 2) return
this.selectIndex = selectIndex this.selectIndex = selectIndex
const params = { req: { queryItem }} const params = { req: { queryItem } }
this.api.operational.getTrend(params).then(res => { this.api.operational.getTrend(params).then(res => {
if (res.code === '0') { if (res.code === '0') {
const dataList = res.data.dataList const dataList = res.data.dataList
...@@ -165,7 +165,7 @@ export default { ...@@ -165,7 +165,7 @@ export default {
.statistics { .statistics {
display: flex; display: flex;
color: #fff; color: #fff;
height: 9.51vh; height: 9.01vh;
&-item { &-item {
padding: 0.49vh 0.53vw; padding: 0.49vh 0.53vw;
margin-right: 0.56vw; margin-right: 0.56vw;
...@@ -193,7 +193,7 @@ export default { ...@@ -193,7 +193,7 @@ export default {
font-weight: 500; font-weight: 500;
font-size: 12px; font-size: 12px;
margin-bottom: 0.4vh; margin-bottom: 0.4vh;
height: 2.22vh; height: 1.82vh;
} }
&-unit { &-unit {
padding-right: 0.56vw; padding-right: 0.56vw;
...@@ -204,7 +204,7 @@ export default { ...@@ -204,7 +204,7 @@ export default {
color: #25d6ff; color: #25d6ff;
font-weight: 600; font-weight: 600;
font-size: 14px; font-size: 14px;
height: 3.11vh; height: 2.81vh;
&-number { &-number {
padding-right: 0.56vw; padding-right: 0.56vw;
font-size: 24px; font-size: 24px;
......
...@@ -56,7 +56,7 @@ export default { ...@@ -56,7 +56,7 @@ export default {
<style scoped lang="scss"> <style scoped lang="scss">
.view-chart { .view-chart {
height: 19.39vh; height: 18.5vh;
margin: 0.98vh 0; margin: 0.98vh 0;
.line-chart { .line-chart {
width: 25.14vw; width: 25.14vw;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!