You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
861 lines
14 KiB
861 lines
14 KiB
$v-primary: #14c171;
|
|
$v-secondary: #ffa800;
|
|
$v-muted: #dddddd;
|
|
/* 字体引入 */
|
|
@font-face {
|
|
font-family: DIN Alternate;
|
|
src: url('/static/font/DIN Alternate Bold.ttf');
|
|
}
|
|
.number,
|
|
.number text,
|
|
.text {
|
|
font-family: DIN Alternate;
|
|
}
|
|
.fixed {
|
|
position: fixed;
|
|
}
|
|
.sticky {
|
|
position: sticky;
|
|
}
|
|
.fixedBottom {
|
|
left: 0;
|
|
bottom: 40rpx;
|
|
width: 100%;
|
|
z-index: 50;
|
|
}
|
|
.align-center {
|
|
align-items: center;
|
|
}
|
|
.text-primary {
|
|
color: $v-primary;
|
|
&:before {
|
|
color: $v-primary;
|
|
}
|
|
text {
|
|
color: $v-primary;
|
|
&:before {
|
|
color: $v-primary;
|
|
}
|
|
}
|
|
}
|
|
.text-secondary {
|
|
color: $v-secondary;
|
|
}
|
|
.text-muted {
|
|
color: $v-muted;
|
|
}
|
|
.not-show {
|
|
display: none;
|
|
}
|
|
.v-base-img {
|
|
width: 200rpx;
|
|
height: 200rpx;
|
|
}
|
|
.v-primary-btn {
|
|
font-size: 24rpx;
|
|
height: 40rpx;
|
|
padding: 0 20rpx;
|
|
color: #fff;
|
|
line-height: 40rpx;
|
|
text-align: center;
|
|
border-radius: 4rpx;
|
|
background-color: $v-primary;
|
|
border: 2rpx solid $v-primary;
|
|
}
|
|
.v-primary-btn.large {
|
|
font-size: 28rpx;
|
|
height: 80rpx;
|
|
padding: 0 20rpx;
|
|
color: #fff;
|
|
line-height: 80rpx;
|
|
border-radius: 80rpx;
|
|
background-color: $v-primary;
|
|
border: 2rpx solid $v-primary;
|
|
}
|
|
|
|
.v-secondary-btn {
|
|
display: inline-block;
|
|
padding: 0 20rpx;
|
|
color: $v-primary;
|
|
height: 60rpx;
|
|
font-size: 28rpx;
|
|
line-height: 60rpx;
|
|
text-align: center;
|
|
border-radius: 60rpx;
|
|
background-color: #fff;
|
|
border: 2rpx solid $v-primary;
|
|
}
|
|
|
|
.v-primary-btn.circle {
|
|
border-radius: 40rpx;
|
|
}
|
|
// 页面 容器
|
|
.v-pages {
|
|
background-color: #f5f5f5;
|
|
}
|
|
// 页面 容器
|
|
.v-container {
|
|
padding: 0 32rpx;
|
|
}
|
|
.no-label {
|
|
.uni-forms-item__label {
|
|
display: none;
|
|
}
|
|
}
|
|
.v-index-top {
|
|
position: relative;
|
|
.v-index-bg {
|
|
width: 100%;
|
|
height: 512rpx;
|
|
}
|
|
.v-index-top-base {
|
|
position: absolute;
|
|
right: 40rpx;
|
|
top: 120rpx;
|
|
padding: 10rpx;
|
|
background-color: rgba(255, 255, 255, 0.08);
|
|
border: 2rpx solid rgba(255, 255, 255, 0.2);
|
|
border-radius: 20rpx;
|
|
.text {
|
|
margin: 0 10rpx;
|
|
color: #fff;
|
|
font-size: 28rpx;
|
|
}
|
|
}
|
|
|
|
.v-index-top-nav {
|
|
position: absolute;
|
|
width: 100%;
|
|
left: 0;
|
|
bottom: 100rpx;
|
|
}
|
|
.v-index-top-nav-box {
|
|
padding: 20rpx;
|
|
background-color: rgba(255, 255, 255, 0.08);
|
|
border: 2rpx solid rgba(255, 255, 255, 0.2);
|
|
border-radius: 20rpx;
|
|
}
|
|
.v-index-top-nav-item {
|
|
.info {
|
|
text-align: center;
|
|
.number {
|
|
color: #fff;
|
|
font-size: 36rpx;
|
|
}
|
|
.unit {
|
|
margin-left: 10rpx;
|
|
color: #fff;
|
|
}
|
|
}
|
|
|
|
.title {
|
|
color: #fff;
|
|
text-align: center;
|
|
}
|
|
}
|
|
}
|
|
// 首页 数据
|
|
.v-index-data {
|
|
margin-top: 100rpx;
|
|
|
|
.v-list-item {
|
|
margin-bottom: 20rpx;
|
|
.name {
|
|
}
|
|
.number {
|
|
font-weight: 600;
|
|
}
|
|
.bar {
|
|
position: relative;
|
|
margin-top: 12rpx;
|
|
height: 16rpx;
|
|
background-color: rgba($v-primary, 0.1);
|
|
border-radius: 16rpx;
|
|
}
|
|
.bar-inner {
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
height: 16rpx;
|
|
width: 50%;
|
|
height: 100%;
|
|
border-radius: 16rpx;
|
|
background-image: linear-gradient(to right, #13c219, #14c171);
|
|
}
|
|
}
|
|
}
|
|
|
|
// 首页 导航
|
|
.v-index-nav {
|
|
.v-index-nav-item {
|
|
text-align: center;
|
|
margin-bottom: 32rpx;
|
|
.icon {
|
|
display: inline-block;
|
|
width: 80rpx;
|
|
height: 80rpx;
|
|
image {
|
|
width: 80rpx;
|
|
height: 80rpx;
|
|
}
|
|
}
|
|
.text {
|
|
text-align: center;
|
|
color: #333;
|
|
}
|
|
}
|
|
.v-index-nav-box {
|
|
position: relative;
|
|
padding: 20rpx 40rpx;
|
|
border-radius: 40rpx 0 0 0;
|
|
.text {
|
|
position: relative;
|
|
}
|
|
.text::after {
|
|
content: '';
|
|
position: absolute;
|
|
bottom: -16rpx;
|
|
left: 0;
|
|
width: 120rpx;
|
|
height: 8rpx;
|
|
border-radius: 8rpx;
|
|
}
|
|
.icon {
|
|
position: absolute;
|
|
right: 0;
|
|
bottom: 0;
|
|
image {
|
|
width: 90rpx;
|
|
height: 90rpx;
|
|
}
|
|
}
|
|
&.product {
|
|
height: 240rpx;
|
|
margin-right: 10rpx;
|
|
background-color: #fcf3e9;
|
|
.text {
|
|
color: #75520c;
|
|
}
|
|
.text::after {
|
|
background-image: linear-gradient(to right, rgba(#e0c082, 1), rgba(#e0c082, 0));
|
|
}
|
|
.icon {
|
|
image {
|
|
width: 260rpx;
|
|
height: 140rpx;
|
|
}
|
|
}
|
|
}
|
|
&.sales {
|
|
margin-left: 10rpx;
|
|
height: 110rpx;
|
|
background-color: #daf3ea;
|
|
.text {
|
|
color: #137949;
|
|
}
|
|
.text::after {
|
|
background-image: linear-gradient(to right, rgba(#77daae, 1), rgba(#77daae, 0));
|
|
}
|
|
}
|
|
&.inventory {
|
|
margin-top: 20rpx;
|
|
margin-left: 10rpx;
|
|
height: 110rpx;
|
|
background-color: #eaeef7;
|
|
.text {
|
|
color: #0c2b75;
|
|
}
|
|
.text::after {
|
|
background-image: linear-gradient(to right, rgba(#7f9bdd, 1), rgba(#7f9bdd, 0));
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
// 页面 筛选
|
|
.v-pages-filter {
|
|
position: sticky;
|
|
top: 0;
|
|
z-index: 99;
|
|
padding: 16rpx;
|
|
background-color: #fff;
|
|
|
|
.v-pages-select {
|
|
.v-select-item {
|
|
text-align: center;
|
|
font-size: 28rpx;
|
|
}
|
|
}
|
|
}
|
|
|
|
// 页面 列表
|
|
.v-pages-list {
|
|
padding-bottom: 80rpx;
|
|
.v-pages-list-item:not(:last-child) {
|
|
margin-bottom: 32rpx;
|
|
}
|
|
}
|
|
.v-materials-list-item {
|
|
margin-bottom: 20rpx;
|
|
.v-materials-list-box {
|
|
background-color: rgba(0, 0, 0, 0.02);
|
|
padding: 20rpx 20rpx 10rpx 20rpx;
|
|
text-align: left;
|
|
.v-materials-name {
|
|
font-size: 32rpx;
|
|
font-weight: 500;
|
|
text-align: left;
|
|
line-height: 40rpx;
|
|
}
|
|
|
|
.v-materials-info {
|
|
text-align: left;
|
|
line-height: 32rpx;
|
|
}
|
|
}
|
|
}
|
|
|
|
// 页面 卡片
|
|
.v-card {
|
|
position: relative;
|
|
padding: 32rpx 32rpx 20rpx 32rpx;
|
|
font-size: 28rpx;
|
|
background-color: #fff;
|
|
border-radius: 16rpx;
|
|
border-width: 2rpx;
|
|
border-style: solid;
|
|
border-color: transparent;
|
|
.v-card-title {
|
|
position: relative;
|
|
margin-bottom: 20rpx;
|
|
padding-left: 20rpx;
|
|
font-size: 32rpx;
|
|
font-weight: 600;
|
|
|
|
&:before {
|
|
content: '';
|
|
position: absolute;
|
|
top: 50%;
|
|
left: 0;
|
|
width: 8rpx;
|
|
height: 32rpx;
|
|
transform: translate(0, -50%);
|
|
border-radius: 8rpx;
|
|
background-color: $v-primary;
|
|
}
|
|
}
|
|
.v-card-select {
|
|
display: none;
|
|
position: absolute;
|
|
top: -2rpx;
|
|
right: -2rpx;
|
|
width: 32rpx;
|
|
height: 32rpx;
|
|
}
|
|
&.active {
|
|
box-shadow: 0 8rpx 20rpx 0 rgba(0, 0, 0, 0.05);
|
|
border-color: rgba(20, 193, 113, 1);
|
|
.v-card-select {
|
|
display: block;
|
|
}
|
|
}
|
|
|
|
.v-card-top {
|
|
padding-bottom: 8rpx;
|
|
|
|
.v-card-image {
|
|
width: 250rpx;
|
|
height: 250rpx;
|
|
border-radius: 10rpx;
|
|
}
|
|
.v-card-image.circle {
|
|
width: 100rpx;
|
|
height: 100rpx;
|
|
border-radius: 100rpx;
|
|
}
|
|
|
|
.v-card-info {
|
|
}
|
|
.v-card-code {
|
|
position: absolute;
|
|
right: -2rpx;
|
|
top: 30rpx;
|
|
padding: 12rpx 20rpx;
|
|
font-size: 25rpx;
|
|
font-weight: 300;
|
|
font-family: DIN Alternate;
|
|
color: $v-secondary;
|
|
background-color: rgba($v-secondary, 0.15);
|
|
border-radius: 20rpx 0 0 20rpx;
|
|
.iconfont::before {
|
|
font-size: 25rpx;
|
|
}
|
|
}
|
|
}
|
|
|
|
.v-card-bot {
|
|
position: relative;
|
|
margin-top: 16rpx;
|
|
padding-top: 20rpx;
|
|
|
|
&:before {
|
|
content: '';
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
width: 100%;
|
|
height: 2rpx;
|
|
background-color: rgba(0, 0, 0, 0.05);
|
|
}
|
|
}
|
|
|
|
.v-card-title {
|
|
align-items: center;
|
|
.name {
|
|
font-size: 32rpx;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.tip {
|
|
color: rgba(20, 193, 113, 1);
|
|
background-color: rgba(20, 193, 113, 0.1);
|
|
padding: 2rpx 32rpx;
|
|
border-radius: 60rpx;
|
|
}
|
|
}
|
|
|
|
.v-card-state {
|
|
align-items: center;
|
|
.state {
|
|
padding: 2rpx 20rpx;
|
|
font-size: 24rpx;
|
|
border-radius: 8rpx;
|
|
&.primary {
|
|
color: $v-primary;
|
|
background-color: rgba($v-primary, 0.1);
|
|
border: 2rpx solid rgba($v-primary, 0.1);
|
|
}
|
|
|
|
&.secondary {
|
|
color: $v-secondary;
|
|
background-color: rgba($v-secondary, 0.1);
|
|
border: 2rpx solid rgba($v-secondary, 0.1);
|
|
}
|
|
}
|
|
|
|
.state + .state {
|
|
margin-left: 16rpx;
|
|
}
|
|
}
|
|
}
|
|
.v-card-image {
|
|
width: 250rpx;
|
|
height: 250rpx;
|
|
border-radius: 10rpx;
|
|
}
|
|
|
|
.v-card-small-item {
|
|
&:not(:last-child) {
|
|
margin-bottom: 40rpx;
|
|
}
|
|
.v-card-small-box {
|
|
padding: 20rpx;
|
|
background-color: rgba(0, 0, 0, 0.03);
|
|
border-radius: 16rpx;
|
|
.time {
|
|
font-size: 25rpx;
|
|
text-align: center;
|
|
font-family: DIN Alternate;
|
|
}
|
|
.line {
|
|
text-align: center;
|
|
image {
|
|
width: 60rpx;
|
|
height: 30rpx;
|
|
}
|
|
}
|
|
.name {
|
|
font-size: 24rpx;
|
|
text-align: center;
|
|
|
|
&.delivery {
|
|
text:before {
|
|
content: '配';
|
|
padding: 4rpx;
|
|
margin-right: 10rpx;
|
|
background-color: rgba($v-primary, 0.05);
|
|
color: rgba($v-primary, 1);
|
|
}
|
|
}
|
|
&.received {
|
|
text:before {
|
|
content: '收';
|
|
padding: 4rpx;
|
|
margin-right: 10rpx;
|
|
background-color: rgba($v-secondary, 0.05);
|
|
color: rgba($v-secondary, 1);
|
|
}
|
|
}
|
|
}
|
|
.record {
|
|
font-size: 24rpx;
|
|
.btn {
|
|
padding: 4rpx 16rpx;
|
|
border: 2rpx solid rgba(0, 0, 0, 0.08);
|
|
border-radius: 40rpx;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
.uni-popup__wrapper {
|
|
max-height: 75%;
|
|
}
|
|
.popup-content {
|
|
border-radius: 20rpx;
|
|
margin: 0 40rpx;
|
|
background: #fff;
|
|
overflow: scroll;
|
|
height: 100%;
|
|
.v-popup-title {
|
|
text-align: center;
|
|
margin-bottom: 40rpx;
|
|
text {
|
|
margin-right: 20rpx;
|
|
font-size: 36rpx;
|
|
font-weight: 600;
|
|
}
|
|
color: $v-primary;
|
|
}
|
|
.close {
|
|
position: absolute;
|
|
right: 40rpx;
|
|
top: 10rpx;
|
|
z-index: 9;
|
|
:before {
|
|
color: rgba(0, 0, 0, 0.4);
|
|
}
|
|
}
|
|
.popup-content-list {
|
|
}
|
|
}
|
|
|
|
.v-form {
|
|
.v-form-item {
|
|
position: relative;
|
|
padding: 4rpx 40rpx 4rpx 40rpx;
|
|
margin: 20rpx 0;
|
|
background-color: #fff;
|
|
border-radius: 20rpx;
|
|
&.base {
|
|
padding: 8rpx 40rpx;
|
|
background-color: $v-primary;
|
|
color: #fff;
|
|
.uni-icons {
|
|
line-height: 40rpx;
|
|
}
|
|
}
|
|
}
|
|
.label-120 {
|
|
.uni-forms-item__label {
|
|
width: 240rpx;
|
|
}
|
|
}
|
|
.uni-forms-item__label {
|
|
font-size: 28rpx;
|
|
}
|
|
|
|
.uni-forms-item__content {
|
|
position: relative;
|
|
text-align: right;
|
|
padding-right: 36rpx;
|
|
line-height: 72rpx;
|
|
[class*='icon-'] {
|
|
position: absolute;
|
|
right: -20px;
|
|
top: -3px;
|
|
}
|
|
.uni-input {
|
|
font-size: 28rpx;
|
|
line-height: 72rpx;
|
|
}
|
|
|
|
text {
|
|
font-size: 28rpx;
|
|
color: #666;
|
|
line-height: 72rpx;
|
|
}
|
|
|
|
.uni-calendar-item--checked .uni-calendar-item--checked-text {
|
|
color: #fff;
|
|
}
|
|
|
|
input {
|
|
position: relative;
|
|
z-index: 9;
|
|
height: 72rpx;
|
|
line-height: 72rpx;
|
|
font-size: 28rpx;
|
|
&.boder {
|
|
border: 1px solid #ccc;
|
|
}
|
|
}
|
|
.uni-icons {
|
|
position: absolute;
|
|
right: 0;
|
|
top: 0;
|
|
&:before {
|
|
color: #80828c;
|
|
}
|
|
}
|
|
.placeholder {
|
|
font-size: 28rpx;
|
|
color: #80828c;
|
|
padding-right: 0;
|
|
}
|
|
}
|
|
|
|
.no-right {
|
|
.uni-forms-item__content {
|
|
padding-right: 0;
|
|
.total-input {
|
|
align-items: center;
|
|
padding: 0 10rpx;
|
|
border: 1px solid #ccc;
|
|
border-radius: 40rpx;
|
|
}
|
|
.unit{font-size: 24rpx;}
|
|
input {
|
|
margin-left: 10rpx;
|
|
|
|
height: 60rpx;
|
|
line-height: 54rpx !important;
|
|
}
|
|
}
|
|
}
|
|
|
|
.uni-forms-item__error {
|
|
width: 100%;
|
|
padding: 0 40rpx 0 0;
|
|
z-index: 0;
|
|
height: 28rpx;
|
|
&.msg--active {
|
|
transform: translateY(-50%);
|
|
}
|
|
text {
|
|
font-size: 24rpx;
|
|
color: #f56c6c;
|
|
line-height: 28rpx;
|
|
}
|
|
}
|
|
.v-form-tip {
|
|
display: inline-block;
|
|
height: 60rpx;
|
|
width: 60rpx;
|
|
text-align: center;
|
|
line-height: 60rpx;
|
|
border-radius: 60rpx;
|
|
color: #fff;
|
|
}
|
|
.v-form-tip.delivery {
|
|
background-color: #14c171;
|
|
}
|
|
.v-form-tip.received {
|
|
background-color: rgb(255, 102, 102);
|
|
}
|
|
|
|
.uni-date__x-input {
|
|
font-size: 28rpx;
|
|
}
|
|
.uni-forms-item {
|
|
position: relative;
|
|
margin: 0;
|
|
padding: 12rpx 0;
|
|
&:not(:last-child) {
|
|
border-bottom: 2rpx solid rgba(0, 0, 0, 0.05);
|
|
}
|
|
}
|
|
|
|
.uni-easyinput__placeholder-class {
|
|
font-size: 28rpx;
|
|
}
|
|
.is-input-border {
|
|
border: none;
|
|
}
|
|
.uni-list--border-top {
|
|
display: none;
|
|
}
|
|
.uni-list-item__content-title {
|
|
color: #666;
|
|
}
|
|
.uni-icon-wrapper {
|
|
padding: 0;
|
|
}
|
|
.uni-easyinput__content-input {
|
|
text-align: right;
|
|
}
|
|
.uni-easyinput__content-input + text {
|
|
color: #999;
|
|
font-size: 28rpx;
|
|
}
|
|
.is-textarea {
|
|
}
|
|
.uni-list-item__container {
|
|
padding-left: 0;
|
|
padding-right: 0;
|
|
}
|
|
.input-value-border {
|
|
border: none;
|
|
}
|
|
.uni-date-editor--x {
|
|
.uni-date-x {
|
|
}
|
|
.uni-icons {
|
|
position: absolute;
|
|
right: 0;
|
|
top: 0;
|
|
&:before {
|
|
font-size: 32rpx;
|
|
}
|
|
}
|
|
}
|
|
.uni-date-x--border {
|
|
border: none;
|
|
}
|
|
|
|
.selected-area {
|
|
flex-direction: column;
|
|
text-align: right;
|
|
&.placeholder {
|
|
font-size: 28rpx;
|
|
color: #999999;
|
|
}
|
|
}
|
|
.selected-list {
|
|
flex-direction: column;
|
|
text-align: right;
|
|
}
|
|
}
|
|
|
|
.v-pages-operation {
|
|
position: fixed;
|
|
left: 0;
|
|
width: 100%;
|
|
padding: 20rpx;
|
|
box-shadow: -8rpx 0 20rpx 0 rgba(0, 0, 0, 0.05);
|
|
background-color: #fff;
|
|
transition: all 0.4s;
|
|
|
|
&.show {
|
|
bottom: -100rpx;
|
|
}
|
|
&.hide {
|
|
bottom: 0;
|
|
}
|
|
.v-pages-operation-item {
|
|
text-align: center;
|
|
}
|
|
}
|
|
// 页面 产品头部
|
|
.v-pages-product {
|
|
padding: 60rpx 0 100rpx 0;
|
|
background-color: $v-primary;
|
|
.v-product-name {
|
|
color: #fff;
|
|
font-size: 32rpx;
|
|
text-align: center;
|
|
}
|
|
.v-product-code {
|
|
border-radius: 60rpx;
|
|
color: #fff;
|
|
font-family: DIN Alternate;
|
|
font-size: 32rpx;
|
|
text-align: center;
|
|
}
|
|
}
|
|
// 页面 表单
|
|
.v-page-form.small {
|
|
.v-form-item {
|
|
position: relative;
|
|
font-size: 24rpx;
|
|
.label {
|
|
margin-right: 8rpx;
|
|
color: #999999;
|
|
}
|
|
|
|
.content {
|
|
.iconfont {
|
|
font-size: 24rpx;
|
|
}
|
|
font-family: DINAlternate;
|
|
}
|
|
&.boder::after {
|
|
content: '';
|
|
position: absolute;
|
|
left: 50%;
|
|
transform: translate(-50%, 0);
|
|
top: 0;
|
|
height: 32rpx;
|
|
width: 2rpx;
|
|
background-color: rgba(0, 0, 0, 0.05);
|
|
}
|
|
}
|
|
}
|
|
|
|
// 页面 溯源码
|
|
.v-pages-code {
|
|
width: 100%;
|
|
height: 400rpx;
|
|
.v-code-image {
|
|
width: 100%;
|
|
image {
|
|
width: 100%;
|
|
}
|
|
}
|
|
.v-code-top {
|
|
position: absolute;
|
|
top: 40rpx;
|
|
z-index: 2;
|
|
padding: 40rpx 40rpx 20rpx 60rpx;
|
|
.text {
|
|
font-size: 28rpx;
|
|
}
|
|
.number {
|
|
color: rgba(20, 193, 113, 1);
|
|
text {
|
|
font-size: 56rpx;
|
|
font-weight: 600;
|
|
}
|
|
}
|
|
}
|
|
.v-code-data {
|
|
position: absolute;
|
|
top: 200rpx;
|
|
z-index: 2;
|
|
width: 100%;
|
|
padding: 0 40rpx;
|
|
.v-code-data-box {
|
|
background-color: #edfff8;
|
|
border-radius: 20rpx;
|
|
padding: 32rpx;
|
|
}
|
|
|
|
.text {
|
|
font-size: 24rpx;
|
|
text-align: center;
|
|
}
|
|
|
|
.number {
|
|
text-align: center;
|
|
font-weight: 600;
|
|
text {
|
|
font-size: 44rpx;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
.v-pages-l {
|
|
background: #f5f5f5;
|
|
min-height: 100vh;
|
|
height: fit-content;
|
|
}
|
|
|