diff --git a/src/assets/images/icon/account.png b/src/assets/images/icon/account.png index 05bb620..5b701d2 100644 Binary files a/src/assets/images/icon/account.png and b/src/assets/images/icon/account.png differ diff --git a/src/assets/images/icon/password.png b/src/assets/images/icon/password.png index 351cc92..7ea4cc5 100644 Binary files a/src/assets/images/icon/password.png and b/src/assets/images/icon/password.png differ diff --git a/src/assets/images/text-bg.png b/src/assets/images/text-bg.png deleted file mode 100644 index 56614d6..0000000 Binary files a/src/assets/images/text-bg.png and /dev/null differ diff --git a/src/assets/less/common.less b/src/assets/less/common.less index 05ff022..2d5c017 100644 --- a/src/assets/less/common.less +++ b/src/assets/less/common.less @@ -302,48 +302,46 @@ button.ant-btn { border: 1px solid #8FC7FF; } } + // 禁用 + &.ant-btn-primary-disabled, + &.ant-btn-primary.disabled, + &.ant-btn-primary[disabled], + &.ant-btn-primary-disabled:hover, + &.ant-btn-primary.disabled:hover, + &.ant-btn-primary[disabled]:hover, + &.ant-btn-primary-disabled:focus, + &.ant-btn-primary.disabled:focus, + &.ant-btn-primary[disabled]:focus, + &.ant-btn-primary-disabled:active, + &.ant-btn-primary.disabled:active, + &.ant-btn-primary[disabled]:active, + &.ant-btn-primary-disabled.active, + &.ant-btn-primary.disabled.active, + &.ant-btn-primary[disabled].active { + color: @text-color-secondary; + background-color: @background-color-base; + } } // 移动端rem .mobile-html { button.ant-btn { - font-family: Alibaba PuHuiTi, Alibaba PuHuiTi, sans-serif; - font-size: 14px; - line-height: 20px; - border-radius: 2px; + font-size: 0.14rem; + line-height: 0.2rem; + border-radius: 0.02rem; + height: 0.36rem; .btn-icon { - margin-right: 4px; - margin-bottom: 2px; - width: 14px; - height: 14px; + margin-right: 0.04rem; + margin-bottom: 0.02rem; + width: 0.14rem; + height: 0.14rem; } &.ant-btn-primary { - background: #8FC7FF; - color: @text-black; - - // 透明状态(ghost) &.ant-btn-background-ghost { - color: @primary-color; - background: transparent; - border: 1px solid #8FC7FF; + border-width: 0.01rem; } } } - .custom-btns-box { - button.ant-btn { - .btn-icon { - margin-right: 0.04rem; - margin-bottom: 0.02rem; - width: 0.14rem; - height: 0.14rem; - } - } - button.ant-btn.ant-btn-primary { - border-radius: 0.02rem; - font-size: 0.14rem; - line-height: 0.2rem; - } - } } /* 部分组件end */ @@ -483,8 +481,7 @@ button.ant-btn { font-size: 24px; line-height: 32px; margin-right: 8px; - background: linear-gradient(90deg, #FFFFFF 0%, #96D0F9 100%); - -webkit-background-clip: text; + color: @primary-color; } .mobile-html .big-number { font-size: 0.22rem; @@ -526,15 +523,14 @@ button.ant-btn { line-height: 0.16rem; &::before { - top: 0.04rem; + top: 0.06rem; + left: 0; + width: calc(100% + 4px); height: 0.15rem; - width: calc(100% + 0.08rem); - background: linear-gradient( 90deg, rgba(0,116,202,0.1) 0%, #0074CA 50%, rgba(0,116,202,0) 100%); } .title-background-text { - margin-left: 0.04rem; - position: relative; + padding-left: 0.04rem; height: 0.21rem; } } @@ -549,7 +545,7 @@ button.ant-btn { .operation-btns { .primary, .primary:hover { - color: @custom-cyan; + color: @primary-color; } .danger, .danger:hover { diff --git a/src/assets/less/modifyLessVars.less b/src/assets/less/modifyLessVars.less index 4df4d90..9f194c8 100644 --- a/src/assets/less/modifyLessVars.less +++ b/src/assets/less/modifyLessVars.less @@ -1,7 +1,7 @@ @primary-color: #8FC7FF; /* 背景色 */ -@component-background: #001B36; -@background-color-base: #001B36AA; +@component-background: #001125; +@background-color-base: #001125AA; @background-color-light: rgba(143,199,255,0.1); /* 边框色 */ diff --git a/src/assets/login-bg.png b/src/assets/login-bg.png new file mode 100644 index 0000000..a3bf784 Binary files /dev/null and b/src/assets/login-bg.png differ diff --git a/src/assets/mobile-login-bg.png b/src/assets/mobile-login-bg.png index 53ae0be..a907450 100644 Binary files a/src/assets/mobile-login-bg.png and b/src/assets/mobile-login-bg.png differ diff --git a/src/components/CommonCard.vue b/src/components/CommonCard.vue index 64e3041..3e9b0ef 100644 --- a/src/components/CommonCard.vue +++ b/src/components/CommonCard.vue @@ -56,6 +56,7 @@ export default { line-height: 36px; } /deep/ .ant-card-head-title::before { + vertical-align: middle; content: ''; display: inline-block; width: 12px; @@ -97,28 +98,13 @@ export default { // 如果是移动端设置为rem单位 .mobile-html { .common-card { - border: .01rem solid rgba(0,148,255,0.24); - border-bottom: .01rem @primary-color solid; - - // 左下右下高亮边框 - &::before, &::after { - min-width: 0.16rem; - height: 0.01rem; - bottom: -0.01rem; - } - &::before { - left: 0; - } - &::after { - right: 0; - } + border-width: 0.01rem; /deep/ .ant-card-head { - background-size: 0.01rem 100%, calc(100% - 0.02rem) 100%, 0.01rem 100%; - border: none; - min-height: 0.42rem; - height: 0.42rem; + min-height: 0.36rem; + height: 0.36rem; padding: 0 0.16rem; + border-bottom-width: 0.01rem; } /deep/ .ant-card-head-title { font-size: 0.14rem; @@ -129,9 +115,13 @@ export default { height: 0.12rem; } /deep/ .ant-card-body { - padding: 0.08rem 0.12rem 0.12rem !important; - height: calc(100% - 0.42rem); - min-height: 1.6rem; + padding: 0.12rem !important; + height: calc(100% - 0.36rem); + } + &.empty-card { + /deep/ .ant-card-body { + min-height: 1.6rem; + } } } .card-title { diff --git a/src/components/lazy_vant.js b/src/components/lazy_vant.js index 61f6603..dc073e9 100644 --- a/src/components/lazy_vant.js +++ b/src/components/lazy_vant.js @@ -8,9 +8,7 @@ import { Popup, Dialog } from 'vant' -import 'vant/lib/picker/index.less' -import 'vant/lib/popup/index.less' -import 'vant/lib/dialog/index.less' +import 'vant/lib/index.less' Vue.use(Picker) Vue.use(Popup) Vue.prototype.$vantDialog = Dialog diff --git a/src/components/menu/MobileMenu.vue b/src/components/menu/MobileMenu.vue index ab13eb0..00752bd 100644 --- a/src/components/menu/MobileMenu.vue +++ b/src/components/menu/MobileMenu.vue @@ -115,6 +115,7 @@ export default { diff --git a/src/views/mobile/manage/Manage.vue b/src/views/mobile/manage/Manage.vue index 78370cd..45260f6 100644 --- a/src/views/mobile/manage/Manage.vue +++ b/src/views/mobile/manage/Manage.vue @@ -53,25 +53,25 @@
{{ item.wellheadId_dictText }}