Browse Source

优化侧边栏样式、首页字体适配

pull/103/head
zq 4 weeks ago
parent
commit
4162f98f62
  1. 2
      src/assets/menu/orderList.svg
  2. 11
      src/components/SliderMenu.vue
  3. 380
      src/style/theme/common.scss
  4. 6
      src/style/theme/index.css
  5. 33
      src/views/agent/home.vue

2
src/assets/menu/orderList.svg

@ -1 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" fill="none" version="1.1" width="16" height="16" viewBox="0 0 16 16"><g><g></g><g><path d="M6.32635,2.7327339999999998Q6.38859,2.719143,6.44764,2.695249Q6.5067,2.671355,6.56088,2.637843Q6.61506,2.604331,6.66281,2.562161Q6.71056,2.519991,6.75051,2.470371Q6.79046,2.420751,6.82148,2.365103Q6.85249,2.309455,6.87367,2.249374Q6.89485,2.189292,6.9056,2.126499Q6.91634,2.063706,6.91634,2Q6.91634,1.9261314999999999,6.90193,1.853682Q6.88752,1.781233,6.85925,1.712987Q6.83098,1.644742,6.78995,1.583322Q6.74891,1.521903,6.69667,1.46967Q6.64444,1.417437,6.58302,1.376398Q6.5216,1.335359,6.45336,1.30709Q6.38511,1.278822,6.31266,1.264411Q6.24021,1.25,6.16634,1.25Q6.08541,1.25,6.00634,1.267267Q3.5139,1.811539,1.8938359999999999,3.79988Q0.25,5.817410000000001,0.25,8.42431Q0.25,11.45871,2.39565,13.6044Q4.54129,15.75,7.57569,15.75Q10.18259,15.75,12.2001,14.1062Q14.1875,12.4869,14.7322,9.99616L14.7326,9.99411L14.7327,9.99366L13.2673,9.67365L6.32635,2.7327339999999998Z" fill-rule="evenodd" fill="#626573" fill-opacity="1"/></g><g><path d="M7.25,1L7.25,8Q7.25,8.07387,7.264411,8.14632Q7.278822,8.21877,7.30709,8.28701Q7.335359,8.355260000000001,7.376398,8.41668Q7.417437,8.478100000000001,7.46967,8.53033Q7.521903,8.58256,7.583322,8.6236Q7.644742,8.66464,7.712987,8.692910000000001Q7.781233,8.72118,7.853682,8.73559Q7.9261315,8.75,8,8.75L15,8.75Q15.07387,8.75,15.14632,8.73559Q15.21877,8.72118,15.28701,8.692910000000001Q15.355260000000001,8.66464,15.41668,8.6236Q15.478100000000001,8.58256,15.53033,8.53033Q15.58256,8.478100000000001,15.6236,8.41668Q15.66464,8.355260000000001,15.692910000000001,8.28701Q15.72118,8.21877,15.73559,8.14632Q15.75,8.07387,15.75,8Q15.75,4.7898499999999995,13.480080000000001,2.51992Q11.21016,0.25,8,0.25Q7.9261315,0.25,7.853682,0.26441099999999995Q7.781233,0.278822,7.712987,0.30709Q7.644742,0.33535899999999996,7.583322,0.376398Q7.521903,0.41743699999999995,7.46967,0.46967000000000003Q7.417437,0.521903,7.376398,0.583322Q7.335359,0.6447419999999999,7.30709,0.712987Q7.278822,0.7812330000000001,7.264411,0.853682Q7.25,0.9261315,7.25,1ZM8.75,7.25L14.209869999999999,7.25Q13.97896,5.14012,12.419419999999999,3.58058Q10.85988,2.02104,8.75,1.7901310000000001L8.75,7.25Z" fill-rule="evenodd" fill="#626573" fill-opacity="1"/></g></g></svg> <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" fill="none" version="1.1" width="16" height="16" viewBox="0 0 16 16"><g><g></g><g><path d="M7.25,1L7.25,8Q7.25,8.07387,7.264411,8.14632Q7.278822,8.21877,7.30709,8.28701Q7.335359,8.355260000000001,7.376398,8.41668Q7.417437,8.478100000000001,7.46967,8.53033Q7.521903,8.58256,7.583322,8.6236Q7.644742,8.66464,7.712987,8.692910000000001Q7.781233,8.72118,7.853682,8.73559Q7.9261315,8.75,8,8.75L15,8.75Q15.07387,8.75,15.14632,8.73559Q15.21877,8.72118,15.28701,8.692910000000001Q15.355260000000001,8.66464,15.41668,8.6236Q15.478100000000001,8.58256,15.53033,8.53033Q15.58256,8.478100000000001,15.6236,8.41668Q15.66464,8.355260000000001,15.692910000000001,8.28701Q15.72118,8.21877,15.73559,8.14632Q15.75,8.07387,15.75,8Q15.75,4.7898499999999995,13.480080000000001,2.51992Q11.21016,0.25,8,0.25Q7.9261315,0.25,7.853682,0.26441099999999995Q7.781233,0.278822,7.712987,0.30709Q7.644742,0.33535899999999996,7.583322,0.376398Q7.521903,0.41743699999999995,7.46967,0.46967000000000003Q7.417437,0.521903,7.376398,0.583322Q7.335359,0.6447419999999999,7.30709,0.712987Q7.278822,0.7812330000000001,7.264411,0.853682Q7.25,0.9261315,7.25,1ZM8.75,7.25L14.209869999999999,7.25Q13.97896,5.14012,12.419419999999999,3.58058Q10.85988,2.02104,8.75,1.7901310000000001L8.75,7.25Z" fill-rule="evenodd" fill="#626573" fill-opacity="1"/></g><g><path d="M6.22446,1.725338Q6.28415,1.709641,6.34047,1.684399Q6.39678,1.6591580000000001,6.44822,1.625049Q6.49965,1.590941,6.54482,1.548883Q6.58998,1.506826,6.62767,1.457951Q6.66535,1.409076,6.69454,1.354698Q6.72373,1.300321,6.74363,1.241904Q6.76354,1.183486,6.77362,1.122601Q6.78371,1.0617155,6.78371,1Q6.78371,0.9261315,6.7693,0.853682Q6.75489,0.7812330000000001,6.72662,0.712987Q6.69835,0.6447419999999999,6.65731,0.583322Q6.61628,0.521903,6.56404,0.46967000000000003Q6.51181,0.41743699999999995,6.45039,0.376398Q6.38897,0.33535899999999996,6.32072,0.30709Q6.25248,0.278822,6.18003,0.26441099999999995Q6.10758,0.25,6.03371,0.25Q5.93674,0.25,5.84296,0.27466199999999996Q3.87371,0.792539,2.42971,2.26807Q0.25,4.49538,0.25,7.64199Q0.25,10.7886,2.42971,13.0159Q4.6160499999999995,15.25,7.71144,15.25Q10.08563,15.25,12.0174,13.856Q13.9002,12.4974,14.7037,10.30259L14.7043,10.30087Q14.75,10.17607,14.75,10.04319Q14.75,9.96932,14.7356,9.89687Q14.7212,9.82442,14.6929,9.75618Q14.6646,9.68793,14.6236,9.62651Q14.5826,9.56509,14.5303,9.51286Q14.4781,9.46063,14.4167,9.41959Q14.3553,9.37855,14.287,9.35028Q14.2188,9.32201,14.1463,9.3076Q14.0739,9.29319,14,9.29319Q13.8847,9.29319,13.7748,9.32781Q13.6648,9.36243,13.5703,9.42847Q13.4758,9.49451,13.4056,9.58588Q13.3353,9.67725,13.2957,9.7855Q12.6503,11.5496,11.1397,12.6396Q9.60093,13.75,7.71144,13.75Q5.24689,13.75,3.50176,11.9668Q1.75,10.17675,1.75,7.64199Q1.75,5.10723,3.50176,3.31721Q4.65594,2.13783,6.22446,1.725338Z" fill-rule="evenodd" fill="#626573" fill-opacity="1" style="mix-blend-mode:passthrough"/></g></g></svg>

Before

Width:  |  Height:  |  Size: 2.3 KiB

After

Width:  |  Height:  |  Size: 2.9 KiB

11
src/components/SliderMenu.vue

@ -1,7 +1,7 @@
<template> <template>
<transition :name="customize ? '' : 'menu-collapse'"> <transition :name="customize ? '' : 'menu-collapse'">
<el-menu v-if="!customize" class="el-menu-vertical-demo custom-menu" @open="handleOpen" <el-menu v-if="!customize" class="el-menu-vertical-demo custom-menu" @open="handleOpen"
:default-active="currentMenuItem?.index" :default-active="currentMenuItem?.index" :default-openeds="defaultOpeneds"
@close="handleClose" @select="handleSelect" :collapse="isCollapse" :collapse-transition="true" @close="handleClose" @select="handleSelect" :collapse="isCollapse" :collapse-transition="true"
> >
<div style="height: 100%;padding: 0 0 20px;box-sizing: border-box;"> <div style="height: 100%;padding: 0 0 20px;box-sizing: border-box;">
@ -86,6 +86,12 @@ export default {
this.updateCurrentMenu(); this.updateCurrentMenu();
}, },
}, },
computed: {
defaultOpeneds() {
if(this.customize)return
return this.menuData.map(item => item.index);
}
},
methods: { methods: {
// //
getSiteNo() { getSiteNo() {
@ -231,7 +237,7 @@ export default {
display: none; display: none;
} }
.el-menu--collapse ::v-deep .el-submenu__icon-arrow { ::v-deep .el-submenu__icon-arrow {
display: none; display: none;
} }
@ -239,6 +245,7 @@ export default {
width: 158px; width: 158px;
min-width: 158px; min-width: 158px;
min-height: calc(100vh - 62px); min-height: calc(100vh - 62px);
box-shadow: 0px 0px 11px 2px rgba(147, 147, 147, 0.11);
overflow-y: auto; overflow-y: auto;
} }

380
src/style/theme/common.scss

@ -1,6 +1,8 @@
html { html {
scroll-behavior: smooth; /* 使整个页面的滚动平滑 */ scroll-behavior: smooth;
} /* 使整个页面的滚动平滑 */
}
body { body {
font-family: Microsoft YaHei UI; font-family: Microsoft YaHei UI;
font-size: 14px; font-size: 14px;
@ -13,14 +15,21 @@ body {
padding: 0; padding: 0;
} }
} }
.homeFont {
font-size: 14px;
}
.short-width { .short-width {
width: calc((100% - 12px) / 2); width: calc((100% - 12px) / 2);
} }
.pagePadding{
.pagePadding {
padding: 12px; padding: 12px;
box-sizing: border-box; box-sizing: border-box;
} }
.pageTitle{
.pageTitle {
font-family: Microsoft YaHei UI; font-family: Microsoft YaHei UI;
font-size: 16px; font-size: 16px;
font-weight: bold; font-weight: bold;
@ -30,7 +39,8 @@ body {
text-align: left; text-align: left;
// padding: 24px 0; // padding: 24px 0;
} }
.littleTitle{
.littleTitle {
font-family: Microsoft YaHei UI; font-family: Microsoft YaHei UI;
font-size: 14px; font-size: 14px;
font-weight: bold; font-weight: bold;
@ -39,79 +49,98 @@ body {
color: #1E2226; color: #1E2226;
text-align: left; text-align: left;
} }
.common_title{ .common_title {
font-weight: bold; font-weight: bold;
letter-spacing: 0.08em; letter-spacing: 0.08em;
color: #1E2226; color: #1E2226;
font-size: 14px; font-size: 14px;
} }
.common_text{
.common_text {
font-size: 14px; font-size: 14px;
color: #6B7280; color: #6B7280;
font-weight: normal; font-weight: normal;
letter-spacing: 0.08em; letter-spacing: 0.08em;
} }
.main-content12{
.main-content12 {
padding: 12px; padding: 12px;
} }
// 变小手 // 变小手
.point{ .point {
cursor: pointer; cursor: pointer;
} }
// 文字滑过变色 // 文字滑过变色
.hoverCommon { .hoverCommon {
cursor: pointer; cursor: pointer;
transition: all .3s; transition: all .3s;
&:hover { &:hover {
transition: all .3s; transition: all .3s;
color: #006AFF !important; color: #006AFF !important;
} }
} }
.gap10{
.gap10 {
display: flex; display: flex;
gap: 10px; gap: 10px;
} }
.gap8{
.gap8 {
display: flex; display: flex;
gap: 8px; gap: 8px;
} }
.gap12{
.gap12 {
display: flex; display: flex;
gap: 12px; gap: 12px;
} }
.mt16{
.mt16 {
margin-top: 16px; margin-top: 16px;
} }
.mt32{
.mt32 {
margin-top: 32px; margin-top: 32px;
} }
.mb32{
.mb32 {
margin-bottom: 32px; margin-bottom: 32px;
} }
.hide{
.hide {
display: none !important; display: none !important;
} }
.column{
.column {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
} }
.mb24{
.mb24 {
margin-bottom: 24px !important; margin-bottom: 24px !important;
} }
.mb12{
.mb12 {
margin-bottom: 12px !important; margin-bottom: 12px !important;
} }
.mt24{
.mt24 {
margin-top: 24px; margin-top: 24px;
} }
.mt12{
.mt12 {
margin-top: 12px; margin-top: 12px;
} }
.mt10{
.mt10 {
margin-top: 10px; margin-top: 10px;
} }
.ceshi{
.ceshi {
transition: all .5s; transition: all .5s;
box-sizing: border-box; box-sizing: border-box;
/* main/main_stardard */ /* main/main_stardard */
@ -119,14 +148,15 @@ body {
/* 蓝色阴影_常规 */ /* 蓝色阴影_常规 */
box-shadow: 0px 4px 16px 0px rgba(17, 55, 143, 0.12); box-shadow: 0px 4px 16px 0px rgba(17, 55, 143, 0.12);
} }
::v-deep .el-radio__original { ::v-deep .el-radio__original {
display: none !important; display: none !important;
} }
.el-radio:focus:not(.is-focus):not(:active):not(.is-disabled) .el-radio:focus:not(.is-focus):not(:active):not(.is-disabled) .el-radio__inner {
.el-radio__inner { box-shadow: none !important;
box-shadow: none !important;
} }
.el-tabs__item.is-active { .el-tabs__item.is-active {
letter-spacing: 0.08em; letter-spacing: 0.08em;
/* main/main_stardard */ /* main/main_stardard */
@ -148,6 +178,7 @@ body {
color: #626573; color: #626573;
justify-content: center; justify-content: center;
transition: all .3s; transition: all .3s;
// img{ // img{
// margin-right: 12px; // margin-right: 12px;
// } // }
@ -164,6 +195,7 @@ body {
&:hover { &:hover {
transition: all .3s; transition: all .3s;
div { div {
background-image: url(../../assets/addIcon_light.svg); background-image: url(../../assets/addIcon_light.svg);
} }
@ -172,22 +204,23 @@ body {
color: #006AFF; color: #006AFF;
} }
} }
@keyframes fadeInOut { @keyframes fadeInOut {
0% { 0% {
opacity: 0; opacity: 0;
} }
50% { 50% {
opacity: 1; opacity: 1;
} }
100% { 100% {
opacity: 0; opacity: 0;
} }
}
.ellipsis{
} }
.ellipsis {}
.el-container { .el-container {
height: 100%; height: 100%;
@ -212,18 +245,22 @@ body {
width: 84.75%; width: 84.75%;
margin: 0 auto; margin: 0 auto;
} }
.min-flex-right { .min-flex-right {
min-width: 1020px; min-width: 1020px;
// max-width: 1556px; // max-width: 1556px;
width: 84.75%; width: 84.75%;
margin: 0 auto; margin: 0 auto;
.flex-common{
.flex-common {
.flex-left, .flex-left,
.flex-right { .flex-right {
// min-width: 440px; // min-width: 440px;
max-width: 590px; max-width: 590px;
flex: 1; flex: 1;
} }
.flex-line { .flex-line {
margin: 0 33px; margin: 0 33px;
} }
@ -240,33 +277,41 @@ body {
/* text/text_4 */ /* text/text_4 */
color: #8A9099; color: #8A9099;
} }
// 颜色选择器 // 颜色选择器
.el-color-picker__trigger{ .el-color-picker__trigger {
padding: 0; padding: 0;
border: none; border: none;
// border: 1px solid #DFE2E6; // border: 1px solid #DFE2E6;
.el-color-picker__color{ .el-color-picker__color {
border-color: #DFE2E6; border-color: #DFE2E6;
border-radius: 4px; border-radius: 4px;
} }
.el-color-picker__icon{
.el-color-picker__icon {
display: none !important; display: none !important;
} }
.el-color-picker__color-inner{
.el-color-picker__color-inner {
border-radius: 4px; border-radius: 4px;
} }
} }
.borderNone{
.borderNone {
border: none !important; border: none !important;
} }
.flex-common { .flex-common {
padding: 32px 36px; padding: 32px 36px;
background-color: #fff; background-color: #fff;
border-radius: 4px; border-radius: 4px;
h3 { h3 {
text-align: left; text-align: left;
margin: 0 0 32px 0; margin: 0 0 32px 0;
span{
span {
margin-left: 12px; margin-left: 12px;
font-size: 14px; font-size: 14px;
font-weight: normal; font-weight: normal;
@ -292,14 +337,15 @@ body {
max-width: 590px; max-width: 590px;
flex: 1; flex: 1;
} }
.flex-left-desc{
.flex-left-desc {
/* body/body 2_regular */ /* body/body 2_regular */
font-family: Microsoft YaHei UI; font-family: Microsoft YaHei UI;
font-size: 14px; font-size: 14px;
font-weight: normal; font-weight: normal;
line-height: normal; line-height: normal;
letter-spacing: 0.08em; letter-spacing: 0.08em;
font-variation-settings: "opsz" auto; font-variation-settings: "opsz"auto;
/* text/text_1 */ /* text/text_1 */
color: #1E2226; color: #1E2226;
text-align: left; text-align: left;
@ -345,43 +391,53 @@ body {
background: #006AFF; background: #006AFF;
color: #fff; color: #fff;
transition: all .3s; transition: all .3s;
span{
span {
display: flex; display: flex;
align-items: center; align-items: center;
} }
img{
img {
margin-right: 6px; margin-right: 6px;
} }
&:active{
&:active {
opacity: 0.7; opacity: 0.7;
} }
} }
.el-button--superBig{
.el-button--superBig {
width: 388px; width: 388px;
height: 46px; height: 46px;
border-radius: 4px; border-radius: 4px;
} }
.el-button--big{
.el-button--big {
width: 247px; width: 247px;
height: 46px; height: 46px;
border-radius: 4px; border-radius: 4px;
} }
.el-button--page{
.el-button--page {
width: 144px; width: 144px;
height: 46px; height: 46px;
border-radius: 2px; border-radius: 2px;
} }
.el-button--table{
.el-button--table {
width: 90px; width: 90px;
height: 32px; height: 32px;
border-radius: 2px; border-radius: 2px;
} }
.el-button--form{
.el-button--form {
width: 88px; width: 88px;
height: 33px; height: 33px;
border-radius: 2px; border-radius: 2px;
} }
.el-button--primary,.el-button--normal{
.el-button--primary,
.el-button--normal {
background: #006AFF; background: #006AFF;
border: 1px solid #006AFF; border: 1px solid #006AFF;
} }
@ -390,43 +446,51 @@ body {
color: #006AFF; color: #006AFF;
background: #FFFFFF; background: #FFFFFF;
border: 1px solid #006AFF; border: 1px solid #006AFF;
&:hover{
&:hover {
color: #006AFF; color: #006AFF;
background: #F2F7FF; background: #F2F7FF;
border: 1px solid #006AFF; border: 1px solid #006AFF;
} }
} }
.el-button--text,.el-button--grey { .el-button--text,
.el-button--grey {
padding: 0; padding: 0;
color: #006AFF; color: #006AFF;
width: auto !important; width: auto !important;
height: auto !important; height: auto !important;
border: none !important; border: none !important;
background: transparent !important; background: transparent !important;
&:hover{
&:hover {
color: #3388FF; color: #3388FF;
} }
} }
.el-button--grey { .el-button--grey {
color: #8A9099; color: #8A9099;
&:hover{
&:hover {
color: #006AFF; color: #006AFF;
opacity: 1; opacity: 1;
} }
} }
.el-button--ignore{
.el-button--ignore {
color: #626573; color: #626573;
background: #FFFFFF; background: #FFFFFF;
border: 1px solid #DFE2E6; border: 1px solid #DFE2E6;
&:hover{
&:hover {
background: #FFFFFF; background: #FFFFFF;
color: #006AFF; color: #006AFF;
border: 1px solid #006AFF; border: 1px solid #006AFF;
} }
} }
.el-button--medium.is-disabled .el-button--ignore.is-disabled{
background: #F2F3F5 ; .el-button--medium.is-disabled .el-button--ignore.is-disabled {
background: #F2F3F5;
border: 1px solid #F2F3F5; border: 1px solid #F2F3F5;
color: #626573; color: #626573;
} }
@ -603,8 +667,9 @@ body {
width: 100%; width: 100%;
transition: all .5s; transition: all .5s;
} }
// 应用在表格表头上的下拉开框 统一类名修改 字体效果 // 应用在表格表头上的下拉开框 统一类名修改 字体效果
.tableHeaderSelect ::v-deep .el-input__inner{ .tableHeaderSelect ::v-deep .el-input__inner {
font-weight: normal; font-weight: normal;
font-family: Microsoft YaHei UI; font-family: Microsoft YaHei UI;
} }
@ -779,86 +844,122 @@ body {
color: #1E2226; color: #1E2226;
} }
} }
.nowrap{
.nowrap {
white-space: nowrap !important; white-space: nowrap !important;
overflow: hidden !important; overflow: hidden !important;
text-overflow: ellipsis !important; text-overflow: ellipsis !important;
} }
.tableHeaderSelect{
.tableHeaderSelect {
height: 18px !important; height: 18px !important;
} }
/* 小屏幕下调整 */ /* 小屏幕下调整 */
@media screen and (max-width: 1440px) { @media screen and (min-width: 1281px) and (max-width: 1620px) {
.el-table th.el-table__cell > .cell{ .homeFont {
white-space: nowrap !important;
}
.cell-content {
display: inline-block;
max-width:60%;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.el-table .svg-icon-wrapper{
width: 12px !important;
height: 12px !important;
}
}
@media screen and (min-width: 1321px) and (max-width: 1440px){
.el-table{
th,td{
font-size: 13px !important; font-size: 13px !important;
} }
} }
// body{
// font-size: 13px !important; @media screen and (max-width: 1280px) {
// } .homeFont {
.tableHeaderSelect .el-input__inner{ font-size: 12px !important;
font-size: 13px !important; }
} }
.el-link{
font-size: 13px !important;
@media screen and (max-width: 1440px) {
.el-table th.el-table__cell>.cell {
white-space: nowrap !important;
}
.cell-content {
display: inline-block;
max-width: 60%;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.el-table .svg-icon-wrapper {
width: 12px !important;
height: 12px !important;
}
} }
@media screen and (min-width: 1321px) and (max-width: 1440px) {
.el-table {
th,
td {
font-size: 13px !important;
}
}
// body{
// font-size: 13px !important;
// }
.tableHeaderSelect .el-input__inner {
font-size: 13px !important;
}
.el-link {
font-size: 13px !important;
}
} }
@media screen and (max-width: 1320px){
// body{ @media screen and (max-width: 1320px) {
// font-size: 12px !important;
// } // body{
.el-table{ // font-size: 12px !important;
th,td{ // }
.el-table {
th,
td {
font-size: 12px !important;
}
}
.tableHeaderSelect .el-input__inner {
font-size: 12px !important; font-size: 12px !important;
} }
}
.tableHeaderSelect .el-input__inner{ .el-link {
font-size: 12px !important; font-size: 13px !important;
} }
.el-link{
font-size: 13px !important;
}
} }
@media screen and (min-width: 1440px) { @media screen and (min-width: 1440px) {
.el-table{ .el-table {
th,td{
font-size: 14px !important; th,
td {
font-size: 14px !important;
}
}
.cell-content {
white-space: normal;
max-width: none;
}
.svg-icon-wrapper {
// width: 12px !important;
// height: 12px !important;
} }
}
.cell-content {
white-space: normal;
max-width: none;
}
.svg-icon-wrapper{
// width: 12px !important;
// height: 12px !important;
}
} }
// table start // table start
.el-table{ .el-table {
min-height: 218px; min-height: 218px;
th,td{
th,
td {
font-size: 14px; font-size: 14px;
font-weight: normal; font-weight: normal;
letter-spacing: 0.08em; letter-spacing: 0.08em;
@ -867,14 +968,16 @@ body {
padding: 8px 10px !important; padding: 8px 10px !important;
box-sizing: border-box !important; box-sizing: border-box !important;
} }
td{
} td {}
.tableColumn{
.tableColumn {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
justify-content: flex-start; justify-content: flex-start;
} }
} }
.el-table--enable-row-hover .el-table__body tr:hover>td.el-table__cell { .el-table--enable-row-hover .el-table__body tr:hover>td.el-table__cell {
background-color: #F6F7FA; background-color: #F6F7FA;
} }
@ -893,12 +996,13 @@ body {
// height: auto !important; // height: auto !important;
// background: transparent !important; // background: transparent !important;
// } // }
.el-table th.el-table__cell > .cell{ .el-table th.el-table__cell>.cell {
padding-left: 0 !important; padding-left: 0 !important;
padding-right: 0 !important; padding-right: 0 !important;
display: flex; display: flex;
align-items: center; align-items: center;
} }
.el-table th.el-table__cell { .el-table th.el-table__cell {
background: #F6F7FA; background: #F6F7FA;
padding: 10px 0; padding: 10px 0;
@ -917,22 +1021,25 @@ body {
padding-left: 0px; padding-left: 0px;
padding-right: 0px; padding-right: 0px;
} }
.el-table .el-form-item { .el-table .el-form-item {
margin-bottom: 0; margin-bottom: 0;
} }
// 表格行内小图标 默认隐藏 // 表格行内小图标 默认隐藏
.el-table .svg-icon-wrapper{ .el-table .svg-icon-wrapper {
display: none !important; display: none !important;
margin-left: 8px; margin-left: 8px;
} }
//划过时 显示
.el-table__row:hover{ //划过时 显示
.svg-icon-wrapper{ .el-table__row:hover {
.svg-icon-wrapper {
margin-left: 8px; margin-left: 8px;
display: block !important; display: block !important;
} }
} }
// table end // table end
.el-pagination { .el-pagination {
@ -975,25 +1082,30 @@ body {
.dialog-footer-center { .dialog-footer-center {
width: 100%; width: 100%;
justify-content: space-between; justify-content: space-between;
button { button {
width: 247px; width: 247px;
height: 44px; height: 44px;
} }
} }
.dialog-footer-normal { .dialog-footer-normal {
width: 100%; width: 100%;
justify-content: flex-end !important; justify-content: flex-end !important;
button { button {
width: auto; width: auto;
height: 38px; height: 38px;
} }
} }
} }
.center { .center {
.el-dialog .el-dialog__header{ .el-dialog .el-dialog__header {
text-align: center; text-align: center;
}
} }
}
// dialog--end // dialog--end
// switch --start // switch --start
@ -1009,6 +1121,7 @@ body {
.el-popover { .el-popover {
padding: 32px; padding: 32px;
} }
::v-deep .custom-popover { ::v-deep .custom-popover {
position: fixed !important; position: fixed !important;
// max-height: 290px; // max-height: 290px;
@ -1017,6 +1130,7 @@ body {
margin-left: 0 !important; margin-left: 0 !important;
transform: none !important; transform: none !important;
} }
::v-deep .custom-popover1 { ::v-deep .custom-popover1 {
position: fixed !important; position: fixed !important;
max-height: 290px; max-height: 290px;
@ -1035,11 +1149,13 @@ body {
display: flex; display: flex;
align-items: center; align-items: center;
} }
.flex-end{
.flex-end {
align-items: flex-end !important; align-items: flex-end !important;
} }
// 公共圆角类名 // 公共圆角类名
.br4{ .br4 {
border-radius: 4px; border-radius: 4px;
} }

6
src/style/theme/index.css

@ -4120,7 +4120,7 @@ border-color:#006AFF !important;
} }
.el-menu { .el-menu {
border-right: solid 1px #e6e6e6; border-right: none;
list-style: none; list-style: none;
position: relative; position: relative;
margin: 0; margin: 0;
@ -4363,8 +4363,8 @@ border-color:#006AFF !important;
} }
.el-submenu__title { .el-submenu__title {
height: 56px; height: 40px;
line-height: 56px; line-height: 40px;
font-size: 14px; font-size: 14px;
color: #1e2226; color: #1e2226;
padding: 0 20px; padding: 0 20px;

33
src/views/agent/home.vue

@ -15,7 +15,7 @@
{{ item.title }} {{ item.title }}
<!-- <img class="systemIcon" src="@/assets/home/systemIcon.svg" alt="">--> <!-- <img class="systemIcon" src="@/assets/home/systemIcon.svg" alt="">-->
</b> </b>
<p class="html-container" v-html="item.content">{{ item.content }}</p> <p class="html-container homeFont" v-html="item.content">{{ item.content }}</p>
</div> </div>
</div> </div>
</div> </div>
@ -30,28 +30,28 @@
<img :src="require(`@/assets/home/sales1.png`)" alt=""> <img :src="require(`@/assets/home/sales1.png`)" alt="">
<div class="column"> <div class="column">
<p class="flex"><span class="number">{{ saleStats.income }}</span> <span class="unit"></span></p> <p class="flex"><span class="number">{{ saleStats.income }}</span> <span class="unit"></span></p>
<span class="label">销售金额</span> <span class="label homeFont">销售金额</span>
</div> </div>
</div> </div>
<div class="sales-item flex"> <div class="sales-item flex">
<img :src="require(`@/assets/home/sales2.png`)" alt=""> <img :src="require(`@/assets/home/sales2.png`)" alt="">
<div class="column"> <div class="column">
<p class="flex"><span class="number">{{ saleStats.cost }}</span> <span class="unit"></span></p> <p class="flex"><span class="number">{{ saleStats.cost }}</span> <span class="unit"></span></p>
<span class="label">成本支出</span> <span class="label homeFont">成本支出</span>
</div> </div>
</div> </div>
<div class="sales-item flex"> <div class="sales-item flex">
<img :src="require(`@/assets/home/sales3.png`)" alt=""> <img :src="require(`@/assets/home/sales3.png`)" alt="">
<div class="column"> <div class="column">
<p class="flex"><span class="number">{{ saleStats.check_num }}</span></p> <p class="flex"><span class="number">{{ saleStats.check_num }}</span></p>
<span class="label">查重订单量</span> <span class="label homeFont">查重订单量</span>
</div> </div>
</div> </div>
<div class="sales-item flex"> <div class="sales-item flex">
<img :src="require(`@/assets/home/sales4.png`)" alt=""> <img :src="require(`@/assets/home/sales4.png`)" alt="">
<div class="column"> <div class="column">
<p class="flex"><span class="number">{{ saleStats.ai_num }}</span></p> <p class="flex"><span class="number">{{ saleStats.ai_num }}</span></p>
<span class="label">AIGC订单量</span> <span class="label homeFont">AIGC订单量</span>
</div> </div>
</div> </div>
</div> </div>
@ -62,13 +62,13 @@
<div :class="['supplyPric-item', 'supplyPric-item' + classify_id]" v-for="(vers, classify_id) in classifyId2Vers" :key="classify_id"> <div :class="['supplyPric-item', 'supplyPric-item' + classify_id]" v-for="(vers, classify_id) in classifyId2Vers" :key="classify_id">
<div class="item-top flex-between"> <div class="item-top flex-between">
<div class="flex"> <div class="flex">
<img :src="require(`@/assets/home/service_classification_${classify_id}.png`)" alt=""> <img :src="require(`@/assets/home/service_classification_${classify_id + 1}.png`)" alt="">
<b>{{ classifyId2Name[classify_id] }}</b> <b>{{ classifyId2Name[classify_id] }}</b>
</div> </div>
<a href="/agent/supplyList" target="_blank"><span>详情</span></a> <a href="/agent/supplyList" class="supplyPric-item-detail" target="_blank">详情</a>
</div> </div>
<div class="list-wrap" style="overflow: auto;height:410px"> <div class="list-wrap" style="overflow: auto;height:410px">
<div v-for="verid in vers" :key="verid" class="item-list"> <div v-for="verid in vers" :key="verid" class="item-list homeFont">
<p class="item-list-name mt-16" v-if="ver2types[verid] && ver2types[verid].length>1">{{ ver2info[verid].name }}</p> <p class="item-list-name mt-16" v-if="ver2types[verid] && ver2types[verid].length>1">{{ ver2info[verid].name }}</p>
<p v-else></p> <p v-else></p>
<p class="flex-between" v-for="type in ver2types[verid]" :key="type"> <p class="flex-between" v-for="type in ver2types[verid]" :key="type">
@ -81,7 +81,6 @@
</div> </div>
</div> </div>
<Footer></Footer> <Footer></Footer>
</div> </div>
<div class="home-main-right"> <div class="home-main-right">
<div class="accountBalance common-area"> <div class="accountBalance common-area">
@ -132,9 +131,9 @@
<b>使用指南</b> <b>使用指南</b>
<span class="hoverCommon"><a class="faq" href="https://zhic.yuque.com/staff-chwecz/xhk8nt" target="_blank">查看全部</a></span> <span class="hoverCommon"><a class="faq" href="https://zhic.yuque.com/staff-chwecz/xhk8nt" target="_blank">查看全部</a></span>
</h2> </h2>
<p class="hoverCommon"><a class="faq" href="https://zhic.yuque.com/staff-chwecz/xhk8nt/ggkqm3" target="_blank">微信支付在平台使用的常见问题</a></p> <p class="hoverCommon homeFont"><a class="faq" href="https://zhic.yuque.com/staff-chwecz/xhk8nt/ggkqm3" target="_blank">微信支付在平台使用的常见问题</a></p>
<p class="hoverCommon"><a class="faq" href="https://zhic.yuque.com/staff-chwecz/xhk8nt/izn0gm" target="_blank">自定义域名设置步骤说明</a></p> <p class="hoverCommon homeFont"><a class="faq" href="https://zhic.yuque.com/staff-chwecz/xhk8nt/izn0gm" target="_blank">自定义域名设置步骤说明</a></p>
<p class="hoverCommon"><a class="faq" href="https://zhic.yuque.com/staff-chwecz/xhk8nt/nocf04" target="_blank">3级分销</a></p> <p class="hoverCommon homeFont"><a class="faq" href="https://zhic.yuque.com/staff-chwecz/xhk8nt/nocf04" target="_blank">3级分销</a></p>
</div> </div>
<div class="customWrap common-area"> <div class="customWrap common-area">
<h2>联系客服</h2> <h2>联系客服</h2>
@ -539,6 +538,12 @@ a {
border-radius: 4px; border-radius: 4px;
transition: all .5s; transition: all .5s;
cursor: pointer; cursor: pointer;
.supplyPric-item-detail{
color: #8A9099;
&:hover{
color: #006AFF;
}
}
.list-wrap{ .list-wrap{
flex: 1; flex: 1;
width: 100%; width: 100%;
@ -548,11 +553,11 @@ a {
} }
.item-top { .item-top {
border-bottom: 1px solid #EAECF0; border-bottom: 1px solid #EAECF0;
padding-bottom: 20px; padding-bottom: 20px;
width: calc(100% - 14px); width: calc(100% - 14px);
box-sizing: border-box; box-sizing: border-box;
margin-right: 14px; margin-right: 14px;
padding-right: 14px; // padding-right: 14px;
b { b {
color: #1E2226; color: #1E2226;
} }

Loading…
Cancel
Save