diff --git a/sub-operation-service/src/assets/images/carton.png b/sub-operation-service/src/assets/images/carton.png new file mode 100644 index 0000000..7c68fae Binary files /dev/null and b/sub-operation-service/src/assets/images/carton.png differ diff --git a/sub-operation-service/src/assets/images/film.png b/sub-operation-service/src/assets/images/film.png new file mode 100644 index 0000000..40004c3 Binary files /dev/null and b/sub-operation-service/src/assets/images/film.png differ diff --git a/sub-operation-service/src/assets/images/fruit.png b/sub-operation-service/src/assets/images/fruit.png new file mode 100644 index 0000000..856ccbb Binary files /dev/null and b/sub-operation-service/src/assets/images/fruit.png differ diff --git a/sub-operation-service/src/assets/images/metal.png b/sub-operation-service/src/assets/images/metal.png new file mode 100644 index 0000000..2ef6874 Binary files /dev/null and b/sub-operation-service/src/assets/images/metal.png differ diff --git a/sub-operation-service/src/assets/images/plastics.png b/sub-operation-service/src/assets/images/plastics.png new file mode 100644 index 0000000..ad37172 Binary files /dev/null and b/sub-operation-service/src/assets/images/plastics.png differ diff --git a/sub-operation-service/src/assets/images/vegetable.png b/sub-operation-service/src/assets/images/vegetable.png new file mode 100644 index 0000000..a6f453c Binary files /dev/null and b/sub-operation-service/src/assets/images/vegetable.png differ diff --git a/sub-operation-service/src/views/packaging/components/leftMenu.vue b/sub-operation-service/src/views/packaging/components/leftMenu.vue index a644a56..434d587 100644 --- a/sub-operation-service/src/views/packaging/components/leftMenu.vue +++ b/sub-operation-service/src/views/packaging/components/leftMenu.vue @@ -66,7 +66,7 @@ const leftMenu = reactive([ name: 'control', title: '包装', icon: 'menu3.png', - path: '/sub-operation-service/packaging/sorting', + path: '/sub-operation-service/packaging/index', isOpen: false, children: [], }, diff --git a/sub-operation-service/src/views/packaging/index.vue b/sub-operation-service/src/views/packaging/index.vue index 8626435..edad294 100644 --- a/sub-operation-service/src/views/packaging/index.vue +++ b/sub-operation-service/src/views/packaging/index.vue @@ -1,19 +1,474 @@ + + +// 弹窗整体样式 +:deep(.custom-inquiry-dialog) { + border-radius: 8px; + box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); + + .el-dialog__header { + padding: 20px; + border-bottom: 1px solid #f2f6fc; + .el-dialog__title { + font-size: 18px; + color: $text-dark; + font-weight: 600; + } + } + + .el-dialog__body { + padding: 20px 28px; + } + + .el-form-item__label { + color: $text-regular; + font-size: 14px; + padding-bottom: 6px; + } +} + +.info-section { + padding: 0px 50px; + margin-bottom: 24px; + .info-item { + margin-bottom: 12px; + .label { + color: $text-regular; + margin-right: 8px; + font-size: 20px; + } + .value { + color: $text-dark; + font-weight: 500; + font-size: 20px; + } + } +} + +// 输入框样式覆盖 +:deep(.el-input) { + .el-input__inner { + height: 40px; + line-height: 40px; + border-radius: 4px; + &:focus { + border-color: $primary-color; + } + } + .el-input__suffix { + color: $text-regular; + right: 12px; + } +} + +// 下拉菜单样式 +:deep(.custom-select-dropdown) { + .el-select-dropdown__item { + color: $text-regular; + &.selected { + color: $primary-color; + } + } +} + +// 按钮组样式 +.dialog-footer { + text-align: right; + .el-button { + padding: 10px 24px; + border-radius: 4px; + font-size: 14px; + } + .cancel-btn { + color: $text-regular; + &:hover { + color: $primary-color; + border-color: $primary-color; + } + } + .submit-btn { + color: #fff; + background: $primary-color; + &:hover { + background: mix($primary-color, #fff, 85%); + } + } +} +.tabs { + height: 160px; + line-height: 50px; + display: flex; + flex-direction: column; + font-size: 18px; + align-items: flex-start; + justify-content: space-between; + padding: 0 20px; +} +.tab { + height: 100px; + width: 850px; + display: flex; + align-items: center; + justify-content: flex-start; + overflow-x: auto; + overflow: auto; /* 启用滚动 */ + white-space: nowrap; /* 强制单行显示 */ + -ms-overflow-style: none; /* IE/Edge 兼容 */ + scrollbar-width: none; /* 隐藏滚动条 */ + .tab_list { + color: #999999; + font-size: 20px; + font-weight: 400; + } + .tab_list_li { + margin-left: 40px; + color: #000000; + font-size: 20px; + font-weight: 400; + } + .tab_list_li.active { + color: rgba(37, 191, 130, 1); + } +} +.cursor { + cursor: pointer; +} +.active { + color: rgba(37, 191, 130, 1); +} +.storage-card { + position: relative; + overflow: hidden; + margin-bottom: 20px; + border: 0; + border-radius: 24px; +} +.storage-content { + @include flex-column; + + gap: 16px; + &-top { + @include flex-row; + + align-items: center; + } +} +.storage-image { + margin-right: 16px; + width: 120px; + height: 120px; + border-radius: 8px; + object-fit: cover; +} +.storage-info { + padding-right: 50px; + flex: 1; + cursor: pointer; +} +.storage-title, +.storage-desc, +.storage-tags, +.storage-location { + overflow: hidden; + margin: 10px 0; + width: 100%; + text-align: left; +} +.storage-title { + font-size: 20px; + font-weight: 700; + color: #000000; + @include ellipsis; +} +.storage-desc { + font-size: 16px; + color: #999999; + @include ellipsis; + i { + display: inline-block; + width: 20px; + height: 20px; + } +} +.storage-tags { + span { + margin-right: 10px; + } +} +.storage-location { + display: flex; + align-items: center; + font-size: 16px; + font-weight: 400; + color: #000000; +} +.storage-price { + display: flex; + justify-content: space-between; + align-items: center; + &-left { + color: #25bf82; + } +} +.price-label { + margin-right: 10px; + font-size: 16px; + color: #999999; +} +.price-amount { + font-size: 20px; + font-weight: 700; + color: #25bf82; +} +.contact-btn { + width: 152px; + height: 48px; + font-size: 20px; + border-radius: 8px; + background: #25bf82 !important; + :deep(.el-icon) { + margin-right: 10px; + } +} +.rank-badge { + position: absolute; + top: 0; + right: 20px; + width: 80px; + height: 80px; +} + diff --git a/sub-operation-service/src/views/packaging/sorting.vue b/sub-operation-service/src/views/packaging/sorting.vue index 1583740..320c0bc 100644 --- a/sub-operation-service/src/views/packaging/sorting.vue +++ b/sub-operation-service/src/views/packaging/sorting.vue @@ -1,16 +1,88 @@