From 3f1684e57a18d6b6ca8467ba0bfe1787a944435c Mon Sep 17 00:00:00 2001 From: andy Date: Wed, 17 Jun 2026 15:41:20 +0800 Subject: [PATCH] =?UTF-8?q?=E7=AC=AC=E4=B8=80=E6=AC=A1=E8=BF=AD=E4=BB=A3?= =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.production | 3 +- .env.test | 3 +- src/views/events/EventCreateView.vue | 6 +- src/views/events/EventListView.vue | 22 +-- src/views/login/LoginView.vue | 2 +- src/views/mine/MineView.vue | 12 +- src/views/orders/OrderDetailView.vue | 7 +- src/views/orders/OrderListView.vue | 57 +------- src/views/verify/VerifyView.vue | 210 +++++++++++++++++++++------ 9 files changed, 186 insertions(+), 136 deletions(-) diff --git a/.env.production b/.env.production index 94a593f..bc2a177 100644 --- a/.env.production +++ b/.env.production @@ -1,6 +1,7 @@ VITE_USE_MOCK=false VITE_PROXY_TARGET= -VITE_API_BASE_URL=https://biz.nianxx.cn/ +#VITE_API_BASE_URL=https://biz.nianxx.cn/ +VITE_API_BASE_URL= VITE_AUTH_BASE=/auth VITE_ADMIN_BASE=/admin VITE_STAFF_BASE=/hotelStaff diff --git a/.env.test b/.env.test index 8dd73f3..1ab81b8 100644 --- a/.env.test +++ b/.env.test @@ -1,6 +1,7 @@ VITE_USE_MOCK=false VITE_PROXY_TARGET= -VITE_API_BASE_URL=http://8.138.234.141/ingress +# VITE_API_BASE_URL=http://8.138.234.141/ingress +VITE_API_BASE_URL= VITE_AUTH_BASE=/auth VITE_ADMIN_BASE=/admin VITE_STAFF_BASE=/hotelStaff diff --git a/src/views/events/EventCreateView.vue b/src/views/events/EventCreateView.vue index 148f365..38c1f7e 100644 --- a/src/views/events/EventCreateView.vue +++ b/src/views/events/EventCreateView.vue @@ -38,7 +38,7 @@ const afterRead = async (fileItem: UploaderFileListItem | UploaderFileListItem[] const submit = async () => { if (!form.entityName.trim()) { - showToast('请输入实体名称') + showToast('请输入事件标题') return } if (!form.eventDescription.trim()) { @@ -73,7 +73,7 @@ const submit = async () => {
- + {
- + diff --git a/src/views/verify/VerifyView.vue b/src/views/verify/VerifyView.vue index 79bde92..4f2f643 100644 --- a/src/views/verify/VerifyView.vue +++ b/src/views/verify/VerifyView.vue @@ -1,63 +1,141 @@ @@ -70,6 +148,57 @@ const scanPlaceholder = () => { var(--surface); } +.scanner-live { + position: relative; + overflow: hidden; + min-height: 260px; + border-radius: var(--radius); + background: #111827; +} + +.scanner-live video { + display: block; + width: 100%; + height: 260px; + object-fit: cover; +} + +.scan-frame { + position: absolute; + inset: 50% auto auto 50%; + width: min(68vw, 230px); + height: min(68vw, 230px); + border: 2px solid rgba(255, 255, 255, 0.92); + border-radius: 12px; + box-shadow: 0 0 0 999px rgba(0, 0, 0, 0.22); + transform: translate(-50%, -50%); +} + +.scan-frame::after { + position: absolute; + top: 50%; + right: 14px; + left: 14px; + height: 2px; + background: var(--primary); + box-shadow: 0 0 16px rgba(15, 139, 114, 0.9); + content: ''; +} + +.stop-button { + position: absolute; + top: 10px; + right: 10px; + display: grid; + width: 34px; + height: 34px; + border: 0; + border-radius: 999px; + background: rgba(17, 24, 39, 0.68); + color: #fff; + place-items: center; +} + .scan-button { display: grid; width: 100%; @@ -79,21 +208,18 @@ const scanPlaceholder = () => { background: rgba(255, 255, 255, 0.78); color: var(--primary-deep); font-weight: 750; + gap: 10px; place-items: center; } -.scan-button span { - margin-top: 10px; +.scan-button:disabled { + opacity: 0.72; } -.form-panel { - display: grid; - gap: 12px; - margin-top: 12px; -} - -.form-panel :deep(.van-cell) { - border: 1px solid var(--line); - border-radius: var(--radius); +.scan-error { + margin: 10px 0 0; + color: var(--rose); + font-size: 12px; + line-height: 1.5; }