diff --git a/src/pages/sys/workbench/index.vue b/src/pages/sys/workbench/index.vue index 4bcc4a4..d901a91 100644 --- a/src/pages/sys/workbench/index.vue +++ b/src/pages/sys/workbench/index.vue @@ -26,7 +26,8 @@ hover-class="menu-card--active" @click="navTo(item.url)" > - + + “ {{ item.name }} @@ -147,6 +148,13 @@ export default { } }, methods: { + staticSrc(path) { + let base = ''; + // #ifdef H5 + base = (process.env.BASE_URL || '/').replace(/\/$/, ''); + // #endif + return `${base}${path}`; + }, // 自定义扫码处理回调 - 处理本页面特有的扫码逻辑 handleScanCode(scanResult) { console.log('工作台-扫码结果:', scanResult); @@ -327,16 +335,29 @@ page { .card-background { position: absolute; + z-index: 0; + top: 18rpx; + right: -4rpx; + width: 150rpx; + height: 120rpx; + opacity: 0.72; + pointer-events: none; +} + +.card-scrim { + position: absolute; + z-index: 1; top: 0; right: 0; - width: 100%; - height: 100%; - opacity: 0.72; + bottom: 0; + left: 0; + background: linear-gradient(105deg, rgba(0, 0, 0, 0.16) 0%, rgba(0, 0, 0, 0.02) 58%); pointer-events: none; } .card-mark { position: absolute; + z-index: 2; top: 10rpx; left: 18rpx; color: rgba(255, 255, 255, 0.2); @@ -348,7 +369,7 @@ page { .card-content { position: absolute; - z-index: 1; + z-index: 2; right: 16rpx; bottom: 42rpx; left: 22rpx; @@ -374,7 +395,7 @@ page { .card-arrow { position: absolute; - z-index: 2; + z-index: 3; right: 0; bottom: 0; display: flex; diff --git a/static/workbench/finished-goods.png b/src/static/workbench/finished-goods.png similarity index 100% rename from static/workbench/finished-goods.png rename to src/static/workbench/finished-goods.png diff --git a/static/workbench/processing-in.png b/src/static/workbench/processing-in.png similarity index 100% rename from static/workbench/processing-in.png rename to src/static/workbench/processing-in.png diff --git a/static/workbench/processing-out.png b/src/static/workbench/processing-out.png similarity index 100% rename from static/workbench/processing-out.png rename to src/static/workbench/processing-out.png diff --git a/static/workbench/purchase-entry.png b/src/static/workbench/purchase-entry.png similarity index 100% rename from static/workbench/purchase-entry.png rename to src/static/workbench/purchase-entry.png diff --git a/static/workbench/return-entry.png b/src/static/workbench/return-entry.png similarity index 100% rename from static/workbench/return-entry.png rename to src/static/workbench/return-entry.png